[packages/python-sphinx-notfound-page] - python3 moved to its own package, rel 7

baggins baggins at pld-linux.org
Thu Mar 13 21:31:05 CET 2025


commit 003f3868a1cbd8aa3fc5c75546f10f8022aeac7c
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Thu Mar 13 22:23:01 2025 +0100

    - python3 moved to its own package, rel 7

 python-sphinx-notfound-page.spec | 57 +---------------------------------------
 1 file changed, 1 insertion(+), 56 deletions(-)
---
diff --git a/python-sphinx-notfound-page.spec b/python-sphinx-notfound-page.spec
index f5841cf..3d3be11 100644
--- a/python-sphinx-notfound-page.spec
+++ b/python-sphinx-notfound-page.spec
@@ -2,21 +2,18 @@
 # Conditional build:
 %bcond_without	doc	# Sphinx documentation
 %bcond_with	tests	# unit tests (cannot find app fixture)
-%bcond_without	python2 # CPython 2.x module
-%bcond_without	python3 # CPython 3.x module
 
 Summary:	Sphinx extension to build a 404 page with absolute URLs
 Summary(pl.UTF-8):	Rozszerzenie Sphinksa do tworzenia strony 404 z bezwzględnymi URL-ami
 Name:		python-sphinx-notfound-page
 Version:	0.8
-Release:	6
+Release:	7
 License:	MIT
 Group:		Libraries/Python
 #Source0Download: https://pypi.org/simple/sphinx-notfound-page/
 Source0:	https://files.pythonhosted.org/packages/source/s/sphinx-notfound-page/sphinx-notfound-page-%{version}.tar.gz
 # Source0-md5:	2e1563e824b14391a065dae6dca39f91
 URL:		https://pypi.org/project/sphinx-notfound-page/
-%if %{with python2}
 BuildRequires:	python-modules >= 1:2.7
 BuildRequires:	python-setuptools
 %if %{with tests}
@@ -24,16 +21,6 @@ BuildRequires:	python-Sphinx
 BuildRequires:	python-pytest
 BuildRequires:	sphinx-pdg
 %endif
-%endif
-%if %{with python3}
-BuildRequires:	python3-modules >= 1:3.2
-BuildRequires:	python3-setuptools
-%if %{with tests}
-BuildRequires:	python3-Sphinx
-BuildRequires:	python3-pytest
-BuildRequires:	sphinx-pdg
-%endif
-%endif
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.714
 # generated docs are incluced in sdist, so regeneration is disabled
@@ -57,20 +44,6 @@ hardcoded.
 Rozszerzenie Sphinksa do tworzenia własnej strony 404 z zakodowanymi
 bezwzględnymi URL-ami.
 
-%package -n python3-sphinx-notfound-page
-Summary:	Sphinx extension to build a 404 page with absolute URLs
-Summary(pl.UTF-8):	Rozszerzenie Sphinksa do tworzenia strony 404 z bezwzględnymi URL-ami
-Group:		Libraries/Python
-Requires:	python3-modules >= 1:3.2
-
-%description -n python3-sphinx-notfound-page
-Sphinx extension to create a custom 404 page with absolute URLs
-hardcoded.
-
-%description -n python3-sphinx-notfound-page -l pl.UTF-8
-Rozszerzenie Sphinksa do tworzenia własnej strony 404 z zakodowanymi
-bezwzględnymi URL-ami.
-
 %package apidocs
 Summary:	API documentation for Python sphinx-notfound-page module
 Summary(pl.UTF-8):	Dokumentacja API modułu Pythona sphinx-notfound-page
@@ -86,7 +59,6 @@ Dokumentacja API modułu Pythona sphinx-notfound-page.
 %setup -q -n sphinx-notfound-page-%{version}
 
 %build
-%if %{with python2}
 %py_build
 
 %if %{with tests}
@@ -94,17 +66,6 @@ PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
 PYTHONPATH=$(pwd) \
 %{__python} -m pytest tests
 %endif
-%endif
-
-%if %{with python3}
-%py3_build
-
-%if %{with tests}
-PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-PYTHONPATH=$(pwd) \
-%{__python3} -m pytest tests
-%endif
-%endif
 
 %if %{with rebuild_doc}
 %{__make} -C docs html
@@ -113,34 +74,18 @@ PYTHONPATH=$(pwd) \
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%if %{with python2}
 %py_install
 
 %py_postclean
-%endif
-
-%if %{with python3}
-%py3_install
-%endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%if %{with python2}
 %files
 %defattr(644,root,root,755)
 %doc LICENSE README.rst
 %{py_sitescriptdir}/notfound
 %{py_sitescriptdir}/sphinx_notfound_page-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-sphinx-notfound-page
-%defattr(644,root,root,755)
-%doc LICENSE README.rst
-%{py3_sitescriptdir}/notfound
-%{py3_sitescriptdir}/sphinx_notfound_page-%{version}-py*.egg-info
-%endif
 
 %if %{with doc}
 %files apidocs
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-sphinx-notfound-page.git/commitdiff/003f3868a1cbd8aa3fc5c75546f10f8022aeac7c



More information about the pld-cvs-commit mailing list