mirror of
https://abf.rosa.ru/djam/python-sphinx-issues.git
synced 2025-02-24 05:52:55 +00:00
84 lines
2.3 KiB
RPMSpec
84 lines
2.3 KiB
RPMSpec
%define module sphinx-issues
|
||
|
||
Summary: A Sphinx extension for linking to your project’s issue tracker
|
||
Name: python-%{module}
|
||
Version: 1.2.0
|
||
Release: 2
|
||
License: BSD
|
||
Group: Development/Python
|
||
Url: https://github.com/sloria/sphinx-issues
|
||
Source0: https://pypi.io/packages/source/s/%{module}/%{module}-%{version}.tar.gz
|
||
BuildRequires: pkgconfig(python2)
|
||
BuildRequires: pythonegg(setuptools)
|
||
Provides: pythonegg(sphinx-issues)
|
||
Provides: pythonegg(sphinx_issues)
|
||
BuildArch: noarch
|
||
|
||
%description
|
||
A Sphinx extension for linking to your project’s issue tracker. Includes roles
|
||
for linking to issues, pull requests, user profiles, with built-in support for
|
||
GitHub (though this works with other services).
|
||
|
||
#----------------------------------------------------------------------------
|
||
|
||
%package -n python2-%{module}
|
||
Summary: A Sphinx extension for linking to your project’s issue tracke
|
||
Group: Development/Python
|
||
|
||
%description -n python2-%{module}
|
||
A Sphinx extension for linking to your project’s issue tracker. Includes roles
|
||
for linking to issues, pull requests, user profiles, with built-in support for
|
||
GitHub (though this works with other services).
|
||
|
||
%files -n python2-%{module}
|
||
%doc python2/LICENSE python2/README.rst
|
||
%{python2_sitelib}/*.egg-info/*
|
||
%{python2_sitelib}/sphinx_*.py*
|
||
%{python3_sitelib}/__pycache__/*
|
||
|
||
#----------------------------------------------------------------------------
|
||
|
||
%package -n python3-%{module}
|
||
Summary: A Sphinx extension for linking to your project’s issue tracker
|
||
Group: Development/Python
|
||
BuildRequires: pkgconfig(python3)
|
||
BuildRequires: python3egg(setuptools)
|
||
Provides: python3egg(sphinx-issues)
|
||
Provides: python3egg(sphinx_issues)
|
||
|
||
|
||
%description -n python3-%{module}
|
||
A Sphinx extension for linking to your project’s issue tracker. Includes roles
|
||
for linking to issues, pull requests, user profiles, with built-in support for
|
||
GitHub (though this works with other services).
|
||
|
||
%files -n python3-%{module}
|
||
%doc python3/LICENSE python3/README.rst
|
||
%{python3_sitelib}/*.egg-info/*
|
||
%{python3_sitelib}/sphinx_*.py*
|
||
%{python3_sitelib}/__pycache__/*
|
||
|
||
#----------------------------------------------------------------------------
|
||
|
||
%prep
|
||
%setup -qc -n %{module}-%{version}
|
||
mv %{module}-%{version} python2
|
||
cp -r python2 python3
|
||
|
||
%build
|
||
pushd python2
|
||
%py2_build
|
||
popd
|
||
|
||
pushd python3
|
||
%py3_build
|
||
popd
|
||
|
||
%install
|
||
pushd python3
|
||
%py3_install
|
||
popd
|
||
|
||
pushd python2
|
||
%py2_install
|
||
popd
|