python-sphinx-issues/python-sphinx-issues.spec
2020-04-06 12:48:24 +09:00

74 lines
2.2 KiB
Python
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 oname sphinx-issues
Summary: A Sphinx extension for linking to your projects issue tracker.
Name: python-%oname
Version: 1.2.0
Release: 1
Url: https://github.com/sloria/sphinx-issues
Source0: https://files.pythonhosted.org/packages/ae/0a/933847eed21964b5ab13836e90ea445a95915eaf222d45489c84e18afa07/sphinx-issues-1.2.0.tar.gz
License: BSD
Group: Development/Python
BuildArch: noarch
BuildRequires: python2-devel
BuildRequires: pythonegg(setuptools)
%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-%oname
Summary: A Sphinx extension for linking to your projects issue tracker.
%description -n python2-%oname
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-%oname
%doc python2/CHANGES.rst python2/LICENSE.rst python2/README.rst
%{python2_sitelib}/%{oname}/*
%{python2_sitelib}/*.egg-info/*
#==============================================================================
%package -n python3-%oname
Summary: A Sphinx extension for linking to your projects issue tracker.
BuildRequires: python3-devel
BuildRequires: python3egg(setuptools)
%description -n python3-%oname
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-%oname
%doc python3/CHANGES.rst python3/LICENSE.rst python3/README.rst
%{python3_sitelib}/%{oname}/*
%{python3_sitelib}/*.egg-info/*
#==============================================================================
%prep
%setup -qc -n %oname-%{version}
mv %oname-%{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