python-sphinx-issues/python-sphinx-issues.spec
Alexander Stefanov 4993b417da cleanup
2020-10-12 10:19:45 +00:00

84 lines
2.3 KiB
RPMSpec
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

%define module sphinx-issues
Summary: A Sphinx extension for linking to your projects 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 projects 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 projects issue tracke
Group: Development/Python
%description -n python2-%{module}
A Sphinx extension for linking to your projects 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 projects 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 projects 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