2013-03-04 03:32:01 +00:00
|
|
|
%if ! (0%{?rhel} >= 6 || 0%{?fedora})
|
|
|
|
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
|
|
|
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
|
|
|
%endif
|
|
|
|
|
2013-02-11 05:03:22 +00:00
|
|
|
%global upstream_name sphinxcontrib-httpdomain
|
|
|
|
|
|
|
|
Name: python-%{upstream_name}
|
2015-09-27 10:26:11 +00:00
|
|
|
Version: 1.4.0
|
|
|
|
Release: 1%{?dist}
|
2013-02-11 05:03:22 +00:00
|
|
|
Summary: Sphinx domain for documenting HTTP APIs
|
|
|
|
License: BSD
|
|
|
|
URL: http://packages.python.org/sphinxcontrib-httpdomain/
|
|
|
|
Source0: http://pypi.python.org/packages/source/s/%{upstream_name}/%{upstream_name}-%{version}.tar.gz
|
2015-09-27 10:26:11 +00:00
|
|
|
Patch1: 0001-httpdomain-bump-domain-data-version.patch
|
2013-02-11 05:03:22 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: python2-devel
|
|
|
|
BuildRequires: python-setuptools
|
2013-03-04 03:32:01 +00:00
|
|
|
%if ! (0%{?rhel} >= 6 || 0%{?fedora})
|
|
|
|
Group: Development/Libraries
|
|
|
|
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
|
|
|
%endif
|
2013-02-11 05:03:22 +00:00
|
|
|
|
2014-02-10 23:29:17 +00:00
|
|
|
%if 0%{?rhel} > 0 && 0%{?rhel} <= 6
|
2014-02-10 17:53:30 +00:00
|
|
|
# This extension does not work with Sphinx 0.6 as shipped in RHEL6,
|
2013-10-09 01:39:02 +00:00
|
|
|
# only with Sphinx 1.0 in EPEL.
|
|
|
|
Requires: python-sphinx10
|
|
|
|
%else
|
2013-04-22 01:27:37 +00:00
|
|
|
Requires: python-sphinx
|
|
|
|
%endif
|
2015-09-27 10:26:11 +00:00
|
|
|
Requires: python-six
|
2013-04-22 01:27:37 +00:00
|
|
|
|
2013-02-11 05:03:22 +00:00
|
|
|
%description
|
|
|
|
Using this Sphinx domain you can document your HTTP API. It includes support
|
|
|
|
for generating documentation from Flask routing tables.
|
|
|
|
|
2013-03-04 03:32:01 +00:00
|
|
|
%if ! (0%{?rhel} >= 6 || 0%{?fedora})
|
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
%endif
|
|
|
|
|
2013-02-11 05:03:22 +00:00
|
|
|
%prep
|
|
|
|
%setup -q -n %{upstream_name}-%{version}
|
2015-09-27 10:26:11 +00:00
|
|
|
%patch1 -p2
|
2013-04-22 01:27:37 +00:00
|
|
|
rm -r *.egg-info
|
2013-02-11 05:03:22 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%{__python} setup.py build
|
|
|
|
|
|
|
|
%install
|
2013-03-04 03:32:01 +00:00
|
|
|
%if ! (0%{?rhel} >= 6 || 0%{?fedora})
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
%endif
|
2013-02-11 05:03:22 +00:00
|
|
|
%{__python} setup.py install --skip-build --root %{buildroot}
|
|
|
|
|
|
|
|
%files
|
2015-09-27 10:26:11 +00:00
|
|
|
%{!?_licensedir:%global license %doc}
|
|
|
|
%doc README.rst
|
|
|
|
%license LICENSE
|
2013-02-11 05:03:22 +00:00
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
%changelog
|
2015-09-27 10:26:11 +00:00
|
|
|
* Sun Sep 27 2015 Dan Callaghan <dcallagh@redhat.com> - 1.4.0-1
|
|
|
|
- upstream release 1.4.0: http://pythonhosted.org/sphinxcontrib-httpdomain/#version-1-4-0
|
|
|
|
|
2015-06-18 20:53:38 +00:00
|
|
|
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2015-01-20 02:27:25 +00:00
|
|
|
* Tue Jan 20 2015 Dan Callaghan <dcallagh@redhat.com> - 1.3.0-1
|
|
|
|
- upstream release 1.3.0: http://pythonhosted.org/sphinxcontrib-httpdomain/#version-1-3-0
|
|
|
|
|
2014-06-07 23:16:42 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.8-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-02-10 23:29:17 +00:00
|
|
|
* Tue Feb 11 2014 Dan Callaghan <dcallagh@redhat.com> - 1.1.8-5
|
|
|
|
- really fix sphinx requirement
|
|
|
|
|
2014-02-10 17:53:30 +00:00
|
|
|
* Mon Feb 10 2014 Pádraig Brady <pbrady@redhat.com> - 1.1.8-4
|
|
|
|
- fix sphinx requirement on RHEL 7
|
|
|
|
|
2013-10-09 01:39:02 +00:00
|
|
|
* Wed Oct 09 2013 Dan Callaghan <dcallagh@redhat.com> - 1.1.8-3
|
|
|
|
- require python-sphinx10 on EPEL
|
|
|
|
|
2013-08-04 09:53:58 +00:00
|
|
|
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.8-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-04-22 01:27:37 +00:00
|
|
|
* Mon Apr 22 2013 Dan Callaghan <dcallagh@redhat.com> - 1.1.8-1
|
|
|
|
- new upstream release 1.1.8
|
|
|
|
- require python-sphinx (except on EPEL5/6)
|
|
|
|
|
2013-03-04 03:32:01 +00:00
|
|
|
* Mon Mar 04 2013 Dan Callaghan <dcallagh@redhat.com> - 1.1.7-2
|
|
|
|
- support EPEL5 and EPEL6
|
|
|
|
|
2013-02-11 05:03:22 +00:00
|
|
|
* Mon Feb 11 2013 Dan Callaghan <dcallagh@redhat.com> - 1.1.7-1
|
|
|
|
- initial version
|