From 32e45115210e4b4028d1039c64315d1686fe22ae Mon Sep 17 00:00:00 2001 From: tigro Date: Sat, 4 Jan 2025 21:59:31 +0300 Subject: [PATCH] import python-repoze-sphinx-autointerface-1.0.0-0.el10 --- .gitignore | 1 + .python-repoze-sphinx-autointerface.metadata | 1 + SOURCES/22.patch | 21 ++ SPECS/python-repoze-sphinx-autointerface.spec | 192 ++++++++++++++++++ 4 files changed, 215 insertions(+) create mode 100644 .gitignore create mode 100644 .python-repoze-sphinx-autointerface.metadata create mode 100644 SOURCES/22.patch create mode 100644 SPECS/python-repoze-sphinx-autointerface.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2c6d9f6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/repoze.sphinx.autointerface-1.0.0.tar.gz diff --git a/.python-repoze-sphinx-autointerface.metadata b/.python-repoze-sphinx-autointerface.metadata new file mode 100644 index 0000000..1a59a22 --- /dev/null +++ b/.python-repoze-sphinx-autointerface.metadata @@ -0,0 +1 @@ +25a58c871eb30dd238ac9e789210dee1111cf2cd SOURCES/repoze.sphinx.autointerface-1.0.0.tar.gz diff --git a/SOURCES/22.patch b/SOURCES/22.patch new file mode 100644 index 0000000..32e3fc6 --- /dev/null +++ b/SOURCES/22.patch @@ -0,0 +1,21 @@ +From e5ede84cda723335e6dbd803d5602d7355d56cf0 Mon Sep 17 00:00:00 2001 +From: Jerry James +Date: Mon, 29 Jan 2024 09:28:30 -0700 +Subject: [PATCH] Fix tests with Sphinx 7.2.x + +--- + repoze/sphinx/tests/test_autointerface.py | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/repoze/sphinx/tests/test_autointerface.py b/repoze/sphinx/tests/test_autointerface.py +index d2682f9..64ae46b 100644 +--- a/repoze/sphinx/tests/test_autointerface.py ++++ b/repoze/sphinx/tests/test_autointerface.py +@@ -29,6 +29,7 @@ class Options(dict): + imported_members = False + show_inheritance = False + noindex = False ++ no_index = False + annotation = None + synopsis = '' + platform = '' diff --git a/SPECS/python-repoze-sphinx-autointerface.spec b/SPECS/python-repoze-sphinx-autointerface.spec new file mode 100644 index 0000000..801405c --- /dev/null +++ b/SPECS/python-repoze-sphinx-autointerface.spec @@ -0,0 +1,192 @@ +%global pkgname repoze.sphinx.autointerface +%global srcname %(tr . - <<< %{pkgname}) + +Name: python-%{srcname} +Version: 1.0.0 +Release: 0%{?dist} +Summary: Auto-generate Sphinx API docs from Zope interfaces + +License: BSD-3-Clause-Modification +URL: https://github.com/repoze/%{pkgname} +Source0: https://github.com/repoze/%{pkgname}/archive/%{version}/%{pkgname}-%{version}.tar.gz +# Adapt to Sphinx 7.2+ +Patch0: https://github.com/repoze/repoze.sphinx.autointerface/pull/22.patch + +BuildArch: noarch + +BuildRequires: python3-devel + +# There is a test dependency loop, so we need a way to build this without tests +# repoze.sphinx.autointerface -> zope.testrunner -> zope.exceptions -> repoze.sphinx.autointerface +%bcond tests 0 + +%global common_desc %{expand: +This package defines an extension for the Sphinx documentation system. +The extension allows generation of API documentation by introspection of +zope.interface instances in code.} + +%description %{common_desc} + +%package -n python3-%{srcname} +Summary: Auto-generate Sphinx API docs from Zope interfaces + +%description -n python3-%{srcname} %{common_desc} + +%prep +%autosetup -n %{pkgname}-%{version} -p1 + +%generate_buildrequires +%pyproject_buildrequires %{?with_tests:-x test} + +%build +%pyproject_wheel +rst2html --no-datestamp CHANGES.rst CHANGES.html +rst2html --no-datestamp README.rst README.html + +%install +%pyproject_install +%pyproject_save_files repoze + +%check +%pyproject_check_import +%if %{with tests} +export PYTHONPATH=$PWD/build/lib +zope-testrunner --test-path=$PWD/build/lib +%endif + +%files -n python3-%{srcname} +%doc CHANGES.html CONTRIBUTORS.txt README.html +%license COPYRIGHT.txt LICENSE.txt +%{python3_sitelib}/repoze* + +%changelog +* Sat Jan 04 2025 Arkady L. Shane - 1.0.0-0 +- Rebuilt for MSVSphere 10 + +* Fri Jul 19 2024 Fedora Release Engineering - 1.0.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Sun Jun 09 2024 Python Maint - 1.0.0-3 +- Rebuilt for Python 3.13 + +* Fri Jun 07 2024 Python Maint - 1.0.0-2 +- Bootstrap for Python 3.13 + +* Mon Jan 29 2024 Jerry James - 1.0.0-1 +- Version 1.0.0 +- Drop upstreamed Sphinx 4 patch +- Convert License tag to SPDX +- Run the tests now that upstream provides some +- Add patch for compatibility with Sphinx 7.2.x + +* Fri Jan 26 2024 Fedora Release Engineering - 0.8-29 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Jan 22 2024 Fedora Release Engineering - 0.8-28 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jul 21 2023 Fedora Release Engineering - 0.8-27 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Wed Jun 14 2023 Python Maint - 0.8-26 +- Rebuilt for Python 3.12 + +* Fri Jan 20 2023 Fedora Release Engineering - 0.8-25 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Jul 22 2022 Fedora Release Engineering - 0.8-24 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Mon Jun 13 2022 Python Maint - 0.8-23 +- Rebuilt for Python 3.11 + +* Fri Jan 21 2022 Fedora Release Engineering - 0.8-22 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 0.8-21 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Wed Jun 23 2021 Jerry James - 0.8-20 +- Add upstream patch for Sphinx 4 compatibility + +* Fri Jun 04 2021 Python Maint - 0.8-19 +- Rebuilt for Python 3.10 + +* Wed Jan 27 2021 Fedora Release Engineering - 0.8-18 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 0.8-17 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue May 26 2020 Miro Hrončok - 0.8-16 +- Rebuilt for Python 3.9 + +* Thu Jan 30 2020 Fedora Release Engineering - 0.8-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Oct 03 2019 Miro Hrončok - 0.8-14 +- Rebuilt for Python 3.8.0rc1 (#1748018) + +* Mon Aug 19 2019 Miro Hrončok - 0.8-13 +- Rebuilt for Python 3.8 + +* Fri Jul 26 2019 Fedora Release Engineering - 0.8-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sat Feb 02 2019 Fedora Release Engineering - 0.8-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Wed Jan 09 2019 Miro Hrončok - 0.8-10 +- Subpackage python2-repoze-sphinx-autointerface has been removed + See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal + +* Sat Jul 14 2018 Fedora Release Engineering - 0.8-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Tue Jun 19 2018 Miro Hrončok - 0.8-8 +- Rebuilt for Python 3.7 + +* Mon Feb 12 2018 Iryna Shcherbina - 0.8-7 +- Update Python 2 dependency declarations to new packaging standards + (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) + +* Fri Feb 09 2018 Fedora Release Engineering - 0.8-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 0.8-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 0.8-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Mon Dec 19 2016 Miro Hrončok - 0.8-3 +- Rebuild for Python 3.6 + +* Tue Jul 19 2016 Fedora Release Engineering - 0.8-2 +- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages + +* Tue Mar 29 2016 Jerry James - 0.8-1 +- New upstream version +- Use the license macro + +* Thu Feb 04 2016 Fedora Release Engineering - 0.7.1-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Tue Feb 2 2016 Jerry James - 0.7.1-5 +- Comply with latest python packaging guidelines + +* Tue Nov 10 2015 Fedora Release Engineering - 0.7.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 + +* Thu Jun 18 2015 Fedora Release Engineering - 0.7.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Tue Jun 3 2014 Jerry James - 0.7.1-3 +- Do not use the py3dir macro; see https://fedorahosted.org/fpc/ticket/435 +- Remove the %%clean script + +* Mon Jun 2 2014 Jerry James - 0.7.1-2 +- Conditionalize the python3 package + +* Thu May 29 2014 Jerry James - 0.7.1-1 +- Initial RPM (bz 1102858)