added Python 3 subpackage (RHBZ#1459474)
This commit is contained in:
parent
476599e3e8
commit
c4a85f8496
@ -3,47 +3,89 @@
|
|||||||
|
|
||||||
Name: python-%{upstream_name}
|
Name: python-%{upstream_name}
|
||||||
Version: 1.5.0
|
Version: 1.5.0
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
Summary: Sphinx domain for documenting HTTP APIs
|
Summary: Sphinx domain for documenting HTTP APIs
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: http://packages.python.org/sphinxcontrib-httpdomain/
|
URL: http://packages.python.org/sphinxcontrib-httpdomain/
|
||||||
Source0: https://files.pythonhosted.org/packages/source/s/%{upstream_name}/%{upstream_name}-%{version}.tar.gz
|
Source0: https://files.pythonhosted.org/packages/source/s/%{upstream_name}/%{upstream_name}-%{version}.tar.gz
|
||||||
Patch1: 0001-httpdomain-bump-domain-data-version.patch
|
Patch1: 0001-httpdomain-bump-domain-data-version.patch
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: python2-devel
|
|
||||||
BuildRequires: python-setuptools
|
|
||||||
|
|
||||||
%if 0%{?rhel} > 0 && 0%{?rhel} <= 6
|
|
||||||
# This extension does not work with Sphinx 0.6 as shipped in RHEL6,
|
|
||||||
# only with Sphinx 1.0 in EPEL.
|
|
||||||
Requires: python-sphinx10
|
|
||||||
%else
|
|
||||||
Requires: python-sphinx
|
|
||||||
%endif
|
|
||||||
Requires: python-six
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Using this Sphinx domain you can document your HTTP API. It includes support
|
Using this Sphinx domain you can document your HTTP API. It includes support
|
||||||
for generating documentation from Flask routing tables.
|
for generating documentation from Flask routing tables.
|
||||||
|
|
||||||
|
%package -n python2-%{upstream_name}
|
||||||
|
Summary: %{summary}
|
||||||
|
%{?python_provide:%python_provide python2-%{upstream_name}}
|
||||||
|
BuildRequires: python2-devel
|
||||||
|
%if 0%{?fedora} || 0%{?rhel} > 7
|
||||||
|
BuildRequires: python2-setuptools
|
||||||
|
Requires: python2-six
|
||||||
|
Requires: python2-sphinx
|
||||||
|
%else
|
||||||
|
BuildRequires: python-setuptools
|
||||||
|
Requires: python-six
|
||||||
|
%if 0%{?rhel} > 6
|
||||||
|
Requires: python-sphinx
|
||||||
|
%else
|
||||||
|
# This extension does not work with Sphinx 0.6 as shipped in RHEL6,
|
||||||
|
# only with Sphinx 1.0 in EPEL.
|
||||||
|
Requires: python-sphinx10
|
||||||
|
%endif
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%description -n python2-%{upstream_name}
|
||||||
|
Using this Sphinx domain you can document your HTTP API. It includes support
|
||||||
|
for generating documentation from Flask routing tables.
|
||||||
|
|
||||||
|
%if 0%{?fedora} || 0%{?rhel} > 7
|
||||||
|
%package -n python3-%{upstream_name}
|
||||||
|
Summary: %{summary}
|
||||||
|
%{?python_provide:%python_provide python3-%{upstream_name}}
|
||||||
|
BuildRequires: python3-devel
|
||||||
|
BuildRequires: python3-setuptools
|
||||||
|
Requires: python3-sphinx
|
||||||
|
Requires: python3-six
|
||||||
|
|
||||||
|
%description -n python3-%{upstream_name}
|
||||||
|
Using this Sphinx domain you can document your HTTP API. It includes support
|
||||||
|
for generating documentation from Flask routing tables.
|
||||||
|
%endif
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{upstream_name}-%{version}
|
%setup -q -n %{upstream_name}-%{version}
|
||||||
%patch1 -p2
|
%patch1 -p2
|
||||||
rm -r *.egg-info
|
rm -r *.egg-info
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{__python} setup.py build
|
%{py2_build}
|
||||||
|
%if 0%{?fedora} || 0%{?rhel} > 7
|
||||||
|
%{py3_build}
|
||||||
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%{__python} setup.py install --skip-build --root %{buildroot}
|
%{py2_install}
|
||||||
|
%if 0%{?fedora} || 0%{?rhel} > 7
|
||||||
|
%{py3_install}
|
||||||
|
%endif
|
||||||
|
|
||||||
%files
|
%files -n python2-%{upstream_name}
|
||||||
%{!?_licensedir:%global license %doc}
|
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{python_sitelib}/*
|
%{python2_sitelib}/*
|
||||||
|
|
||||||
|
%if 0%{?fedora} || 0%{?rhel} > 7
|
||||||
|
%files -n python3-%{upstream_name}
|
||||||
|
%doc README.rst
|
||||||
|
%license LICENSE
|
||||||
|
%{python3_sitelib}/*
|
||||||
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jun 23 2017 Dan Callaghan <dcallagh@redhat.com> - 1.5.0-3
|
||||||
|
- added Python 3 subpackage (RHBZ#1459474)
|
||||||
|
|
||||||
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-2
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-2
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user