From 40e7755fe8f02ca4f2cc7c74a4ea1d4f2eb0b0a7 Mon Sep 17 00:00:00 2001 From: Alfredo Moralejo Date: Sep 11 2021 12:50:13 +0000 Subject: Import python-sphinxcontrib-programoutput-0.16-1.el9 in CloudSIG xena --- diff --git a/.python-sphinxcontrib-programoutput.metadata b/.python-sphinxcontrib-programoutput.metadata new file mode 100644 index 0000000..dd89b65 --- /dev/null +++ b/.python-sphinxcontrib-programoutput.metadata @@ -0,0 +1 @@ +918081ef6562242c46e89517876c7c3e3ea55219 SOURCES/sphinxcontrib-programoutput-0.16.tar.gz diff --git a/SOURCES/0001-Fix-compat-with-sphinx-2.0.patch b/SOURCES/0001-Fix-compat-with-sphinx-2.0.patch new file mode 100644 index 0000000..1fc898e --- /dev/null +++ b/SOURCES/0001-Fix-compat-with-sphinx-2.0.patch @@ -0,0 +1,25 @@ +From ce57642afe4eac41b6acda9e57251bc35f579351 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= +Date: Mon, 3 Jun 2019 22:10:40 +0200 +Subject: [PATCH] Fix compat with sphinx 2.0 + +C.f. https://github.com/pytest-dev/pytest/pull/4922/files. +--- + doc/conf.py | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/doc/conf.py b/doc/conf.py +index 13661f8830..3be3f81db9 100644 +--- a/doc/conf.py ++++ b/doc/conf.py +@@ -62,5 +62,5 @@ extlinks = { + } + + def setup(app): +- app.add_description_unit('confval', 'confval', +- 'pair: %s; configuration value') ++ app.add_object_type('confval', 'confval', ++ 'pair: %s; configuration value') +-- +2.20.1 + diff --git a/SPECS/python-sphinxcontrib-programoutput.spec b/SPECS/python-sphinxcontrib-programoutput.spec new file mode 100644 index 0000000..0a4867a --- /dev/null +++ b/SPECS/python-sphinxcontrib-programoutput.spec @@ -0,0 +1,164 @@ +%{?python_enable_dependency_generator} +%global srcname sphinxcontrib-programoutput +%global _docdir_fmt %{name} + +Name: python-sphinxcontrib-programoutput +Version: 0.16 +Release: 1%{?dist} +Summary: Extension to insert output of commands into documents + +License: BSD +URL: https://pypi.python.org/pypi/sphinxcontrib-programoutput +Source0: https://github.com/NextThought/sphinxcontrib-programoutput/archive/%{version}/%{srcname}-%{version}.tar.gz + +BuildArch: noarch +BuildRequires: python3-sphinx + +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3dist(sphinx) >= 1.3.5 +BuildRequires: python3-pytest +# The documentation runs commands like 'python -V' and 'python --help'. +# Any python version is fine. +BuildRequires: python-unversioned-command +BuildRequires: git +BuildRequires: web-assets-devel + +%description +A Sphinx extension to literally insert the output of arbitrary +commands into documents, helping you to keep your command examples +up to date. + +%package -n python3-%{srcname} +Summary: %{summary} + +Requires: js-jquery +%{?python_provide:%python_provide python3-%{srcname}} + +%description -n python3-%{srcname} +A Sphinx extension to literally insert the output of arbitrary +commands into documents, helping you to keep your command examples +up to date. + +%prep +%autosetup -n %{srcname}-%{version} -p1 +sed -r -i s/python/python3/ src/sphinxcontrib/programoutput/tests/{test_directive.py,test_command.py,test_cache.py} + +%build +%py3_build +PYTHONPATH=build/lib sphinx-build -b html doc build/html + +rm -r build/html/.buildinfo build/html/.doctrees + +# Seems not needed with python3.10+. Remove when older version don't need to be supported. +rm -rf build/lib/sphinxcontrib/__pycache__ + +%install +%py3_install +mkdir -p %{buildroot}%{_pkgdocdir} +cp -rv build/html %{buildroot}%{_pkgdocdir}/ +ln -vsf %{_jsdir}/jquery/latest/jquery.min.js %{buildroot}%{_pkgdocdir}/html/_static/jquery.js + +# remove .pth file which is useless under python3 and breaks namespace modules +rm %{buildroot}%{python3_sitelib}/sphinxcontrib_programoutput-*-nspkg.pth + +%check +%pytest -v %{buildroot}%{python3_sitelib}/sphinxcontrib -k 'not test_standard_error_disabled' + + +%files -n python3-%{srcname} +%license LICENSE +%doc %{_pkgdocdir} +%{python3_sitelib}/sphinxcontrib/* +%{python3_sitelib}/sphinxcontrib_programoutput*info/ + +%changelog +* Mon Feb 1 2021 Zbigniew Jędrzejewski-Szmek - 0.16-1 +- Latest version (#1752563) + +* Wed Jan 27 2021 Fedora Release Engineering - 0.14-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 0.14-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue May 26 2020 Miro Hrončok - 0.14-6 +- Rebuilt for Python 3.9 + +* Thu Jan 30 2020 Fedora Release Engineering - 0.14-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Oct 03 2019 Miro Hrončok - 0.14-4 +- Rebuilt for Python 3.8.0rc1 (#1748018) + +* Mon Aug 19 2019 Miro Hrončok - 0.14-3 +- Rebuilt for Python 3.8 + +* Fri Jul 26 2019 Fedora Release Engineering - 0.14-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Mon Jun 3 2019 Zbigniew Jędrzejewski-Szmek - 0.14-1 +- Fix compatibility with sphinx 2.0 (#1716531) + +* Fri Apr 26 2019 Yatin Karel - 0.14-1 +- Update to 0.14 (#1697058) + +* Sat Feb 02 2019 Fedora Release Engineering - 0.11-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sat Dec 29 2018 Igor Gnatenko - 0.11-6 +- Enable python dependency generator + +* Fri Dec 28 2018 Zbigniew Jędrzejewski-Szmek - 0.11-5 +- Subpackage python2-sphinxcontrib-programoutput has been removed + See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal + +* Sat Jul 14 2018 Fedora Release Engineering - 0.11-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Tue Jun 19 2018 Miro Hrončok - 0.11-3 +- Rebuilt for Python 3.7 + +* Wed Feb 28 2018 Iryna Shcherbina - 0.11-2 +- Update Python 2 dependency declarations to new packaging standards + (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) + +* Sat Feb 24 2018 Zbigniew Jędrzejewski-Szmek - 0.11-1 +- Switch upstream, update to latest version + +* Fri Feb 09 2018 Fedora Release Engineering - 0.8-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 0.8-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Fri Mar 24 2017 Zbigniew Jędrzejewski-Szmek - 0.8-10 +- Drop useless .pth files under python3 + +* Sat Feb 11 2017 Fedora Release Engineering - 0.8-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Tue Jan 10 2017 Zbigniew Jędrzejewski-Szmek - 0.8-8 +- Fix build with new pytest and sphinx-1.5 + +* Mon Dec 19 2016 Miro Hrončok - 0.8-7 +- Rebuild for Python 3.6 + +* Thu Feb 04 2016 Fedora Release Engineering - 0.8-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Thu Dec 03 2015 Robert Buchholz - 0.8-5 +- epel7: Only build python2 package + +* Mon Nov 16 2015 Zbigniew Jędrzejewski-Szmek - 0.8-4 +- Update to latest packaging guidelines + +* Mon Jul 27 2015 Zbigniew Jędrzejewski-Szmek - 0.8-3 +- Make provides versioned + +* Fri Jul 24 2015 Zbigniew Jędrzejewski-Szmek - 0.8-2 +- Remove stray __pycache__ dir +- Add web-assets-devel to BR and Provide python2-* + +* Tue Jul 21 2015 Zbigniew Jędrzejewski-Szmek - 0.8-1 +- Initial packaging