From 357fc89f36cd7ac8c0b55241fb1e7f3decd31583 Mon Sep 17 00:00:00 2001 From: Toshaan Bharvani Date: Thu, 19 May 2022 00:30:06 +0200 Subject: [PATCH] initial package creation Signed-off-by: Toshaan Bharvani --- ...-httpdomain-bump-domain-data-version.patch | 28 ++++ SPECS/python-sphinxcontrib-httpdomain.spec | 152 ++++++++++++++++++ 2 files changed, 180 insertions(+) create mode 100644 SOURCES/0004-httpdomain-bump-domain-data-version.patch create mode 100644 SPECS/python-sphinxcontrib-httpdomain.spec diff --git a/SOURCES/0004-httpdomain-bump-domain-data-version.patch b/SOURCES/0004-httpdomain-bump-domain-data-version.patch new file mode 100644 index 0000000..9f0c67e --- /dev/null +++ b/SOURCES/0004-httpdomain-bump-domain-data-version.patch @@ -0,0 +1,28 @@ +From 1f6c4251d23ba6117943440bc1e3f43fe691da3a Mon Sep 17 00:00:00 2001 +From: Dan Callaghan +Date: Sun, 27 Sep 2015 20:21:49 +1000 +Subject: [PATCH 4/4] httpdomain: bump domain data version + +Upstream should have bumped this to 1 (or something greater than 0) for +the 1.4.0 release since the expected contents of the data dict changed. +Using '0.1' here in Fedora with the expectation that it will be bumped +properly in a future upstream release. +--- + httpdomain/sphinxcontrib/httpdomain.py | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/httpdomain/sphinxcontrib/httpdomain.py b/httpdomain/sphinxcontrib/httpdomain.py +index faa50f2..27f5871 100644 +--- a/httpdomain/sphinxcontrib/httpdomain.py ++++ b/httpdomain/sphinxcontrib/httpdomain.py +@@ -628,6 +628,7 @@ class HTTPDomain(Domain): + 'copy': {}, + 'any': {} + } ++ data_version = '0.1' + + indices = [HTTPIndex] + +-- +2.9.4 + diff --git a/SPECS/python-sphinxcontrib-httpdomain.spec b/SPECS/python-sphinxcontrib-httpdomain.spec new file mode 100644 index 0000000..2b2b9d6 --- /dev/null +++ b/SPECS/python-sphinxcontrib-httpdomain.spec @@ -0,0 +1,152 @@ + +%global upstream_name sphinxcontrib-httpdomain + +Name: python-%{upstream_name} +Version: 1.7.0 +Release: 13%{?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 +# issue to be filed(?) +Patch4: 0004-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 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. + + +%prep +%setup -q -n %{upstream_name}-%{version} +%patch4 -p2 +rm -r *.egg-info + +%build +%{py3_build} + +%install +%{py3_install} + +%files -n python3-%{upstream_name} +%doc README.rst +%license LICENSE +%{python3_sitelib}/sphinxcontrib* + +%changelog +* Tue Aug 10 2021 Mohan Boddu - 1.7.0-13 +- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags + Related: rhbz#1991688 + +* Fri Apr 16 2021 Mohan Boddu - 1.7.0-12 +- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937 + +* Wed Jan 27 2021 Fedora Release Engineering - 1.7.0-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 1.7.0-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Sat May 23 2020 Miro Hrončok - 1.7.0-9 +- Rebuilt for Python 3.9 + +* Thu Jan 30 2020 Fedora Release Engineering - 1.7.0-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Oct 03 2019 Miro Hrončok - 1.7.0-7 +- Rebuilt for Python 3.8.0rc1 (#1748018) + +* Fri Aug 16 2019 Miro Hrončok - 1.7.0-6 +- Rebuilt for Python 3.8 + +* Fri Jul 26 2019 Fedora Release Engineering - 1.7.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Wed Mar 06 2019 Miro Hrončok - 1.7.0-4 +- Subpackage python2-sphinxcontrib-httpdomain has been removed + See https://fedoraproject.org/wiki/Changes/Sphinx2 + +* Sat Feb 02 2019 Fedora Release Engineering - 1.7.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sat Jul 14 2018 Fedora Release Engineering - 1.7.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Tue Jul 10 2018 Dan Callaghan - 1.7.0-1 +- upstream release 1.7.0: https://sphinxcontrib-httpdomain.readthedocs.io/en/stable/#version-1-7-0 + +* Tue Jun 19 2018 Miro Hrončok - 1.6.1-2 +- Rebuilt for Python 3.7 + +* Mon Mar 05 2018 Dan Callaghan - 1.6.1-1 +- Update to 1.6.1 bug fix release (RHBZ#1551209) + +* Fri Feb 09 2018 Fedora Release Engineering - 1.6.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Mon Jan 15 2018 Dan Callaghan - 1.6.0-1 +- Update to 1.6.0 bug fix release (RHBZ#1534132) + +* Thu Jul 27 2017 Fedora Release Engineering - 1.5.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Mon Jul 24 2017 Dan Callaghan - 1.5.0-4 +- fix for Sphinx 1.6 compatibility (RHBZ#1473447) + +* 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