%global upstream_name sphinxcontrib-httpdomain Name: python-%{upstream_name} Version: 1.5.0 Release: 3%{?dist} Summary: Sphinx domain for documenting HTTP APIs License: BSD URL: http://packages.python.org/sphinxcontrib-httpdomain/ Source0: https://files.pythonhosted.org/packages/source/s/%{upstream_name}/%{upstream_name}-%{version}.tar.gz Patch1: 0001-httpdomain-bump-domain-data-version.patch BuildArch: noarch %description Using this Sphinx domain you can document your HTTP API. It includes support 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 %setup -q -n %{upstream_name}-%{version} %patch1 -p2 rm -r *.egg-info %build %{py2_build} %if 0%{?fedora} || 0%{?rhel} > 7 %{py3_build} %endif %install %{py2_install} %if 0%{?fedora} || 0%{?rhel} > 7 %{py3_install} %endif %files -n python2-%{upstream_name} %doc README.rst %license LICENSE %{python2_sitelib}/* %if 0%{?fedora} || 0%{?rhel} > 7 %files -n python3-%{upstream_name} %doc README.rst %license LICENSE %{python3_sitelib}/* %endif %changelog * Fri Jun 23 2017 Dan Callaghan - 1.5.0-3 - added Python 3 subpackage (RHBZ#1459474) * Sat Feb 11 2017 Fedora Release Engineering - 1.5.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Aug 15 2016 Dan Callaghan - 1.5.0-1 - upstream release 1.5.0: http://pythonhosted.org/sphinxcontrib-httpdomain/#version-1-5-0 * Thu Feb 04 2016 Fedora Release Engineering - 1.4.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Sun Sep 27 2015 Dan Callaghan - 1.4.0-1 - upstream release 1.4.0: http://pythonhosted.org/sphinxcontrib-httpdomain/#version-1-4-0 * Thu Jun 18 2015 Fedora Release Engineering - 1.3.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Tue Jan 20 2015 Dan Callaghan - 1.3.0-1 - upstream release 1.3.0: http://pythonhosted.org/sphinxcontrib-httpdomain/#version-1-3-0 * Sat Jun 07 2014 Fedora Release Engineering - 1.1.8-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Tue Feb 11 2014 Dan Callaghan - 1.1.8-5 - really fix sphinx requirement * Mon Feb 10 2014 Pádraig Brady - 1.1.8-4 - fix sphinx requirement on RHEL 7 * Wed Oct 09 2013 Dan Callaghan - 1.1.8-3 - require python-sphinx10 on EPEL * Sun Aug 04 2013 Fedora Release Engineering - 1.1.8-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Mon Apr 22 2013 Dan Callaghan - 1.1.8-1 - new upstream release 1.1.8 - require python-sphinx (except on EPEL5/6) * Mon Mar 04 2013 Dan Callaghan - 1.1.7-2 - support EPEL5 and EPEL6 * Mon Feb 11 2013 Dan Callaghan - 1.1.7-1 - initial version