[packages/python-persistent] Rel 4; drop python3 support (see python3-persistent.spec)

arekm arekm at pld-linux.org
Sun May 4 15:49:38 CEST 2025


commit 1d6cb5feb89900a5a7a75c02d76b4d3adbc05858
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sun May 4 15:10:51 2025 +0200

    Rel 4; drop python3 support (see python3-persistent.spec)

 python-persistent.spec | 83 +-------------------------------------------------
 1 file changed, 1 insertion(+), 82 deletions(-)
---
diff --git a/python-persistent.spec b/python-persistent.spec
index 7770d22..d4f5673 100644
--- a/python-persistent.spec
+++ b/python-persistent.spec
@@ -2,8 +2,6 @@
 # Conditional build:
 %bcond_without	doc	# Sphinx documentation
 %bcond_without	tests	# unit tests
-%bcond_without	python2 # CPython 2.x module
-%bcond_without	python3 # CPython 3.x module
 
 %define		module	persistent
 Summary:	Automatic persistence for Python objects
@@ -11,7 +9,7 @@ Summary(pl.UTF-8):	Automatyczne trwałe obiekty w Pythonie
 Name:		python-%{module}
 # keep 4.x here for python2 support
 Version:	4.9.3
-Release:	3
+Release:	4
 License:	ZPL v2.1
 Group:		Libraries/Python
 #Source0Download: https://pypi.org/simple/persistent/
@@ -19,7 +17,6 @@ Source0:	https://files.pythonhosted.org/packages/source/p/persistent/%{module}-%
 # Source0-md5:	8bc80f8c548f45631c85efb775a85dc1
 Patch0:		missing-header.patch
 URL:		https://www.zope.dev/
-%if %{with python2}
 BuildRequires:	python-cffi
 BuildRequires:	python-devel >= 1:2.7
 BuildRequires:	python-setuptools
@@ -28,17 +25,6 @@ BuildRequires:	python-manuel
 BuildRequires:	python-zope.interface
 BuildRequires:	python-zope.testrunner
 %endif
-%endif
-%if %{with python3}
-BuildRequires:	python3-cffi
-BuildRequires:	python3-devel >= 1:3.5
-BuildRequires:	python3-setuptools
-%if %{with tests}
-BuildRequires:	python3-manuel
-BuildRequires:	python3-zope.interface
-BuildRequires:	python3-zope.testrunner
-%endif
-%endif
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.714
 %if %{with doc}
@@ -72,36 +58,6 @@ Header files for C extensions using persisteny module.
 Pliki nagłówkowe dla rozszerzeń w C korzystających z modułu
 persistent.
 
-%package -n python3-%{module}
-Summary:	Automatic persistence for Python objects
-Summary(pl.UTF-8):	Automatyczne trwałe obiekty w Pythonie
-Group:		Libraries/Python
-Requires:	python3-modules >= 1:3.5
-
-%description -n python3-%{module}
-This package contains a generic persistence implementation for Python.
-It forms the core protocol for making objects interact "transparently"
-with a database such as the ZODB.
-
-%description -n python3-%{module} -l pl.UTF-8
-Ten pakiet zawiera ogólną implementację trwałych danych dla Pythona.
-Tworzy główny protokół, pozwalający obiektom w sposób przezroczysty
-współpracować z bazą danych taką jak ZODB.
-
-%package -n python3-%{module}-devel
-Summary:	Header files for C extensions using persisteny module
-Summary(pl.UTF-8):	Pliki nagłówkowe dla rozszerzeń w C korzystających z modułu persistent
-Group:		Development/Libraries
-Requires:	python3-%{module} = %{version}-%{release}
-Requires:	python3-devel >= 1:3.5
-
-%description -n python3-%{module}-devel
-Header files for C extensions using persisteny module.
-
-%description -n python3-%{module}-devel -l pl.UTF-8
-Pliki nagłówkowe dla rozszerzeń w C korzystających z modułu
-persistent.
-
 %package apidocs
 Summary:	API documentation for Python persistent module
 Summary(pl.UTF-8):	Dokumentacja API modułu Pythona persistent
@@ -118,23 +74,12 @@ Dokumentacja API modułu Pythona persistent.
 %patch -P 0 -p1
 
 %build
-%if %{with python2}
 %py_build
 
 %if %{with tests}
 PYTHONPATH=$(echo $(pwd)/build-2/lib.*) \
 zope-testrunner-2 --test-path=src -v
 %endif
-%endif
-
-%if %{with python3}
-%py3_build
-
-%if %{with tests}
-PYTHONPATH=$(echo $(pwd)/build-3/lib.*) \
-zope-testrunner-3 --test-path=src -v
-%endif
-%endif
 
 %if %{with doc}
 PYTHONPATH=$(pwd) \
@@ -145,25 +90,15 @@ PYTHONPATH=$(pwd) \
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%if %{with python2}
 %py_install
 
 %py_postclean
 %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/persistent/*.[ch]
 %{__rm} -r $RPM_BUILD_ROOT%{py_sitedir}/persistent/tests
-%endif
-
-%if %{with python3}
-%py3_install
-
-%{__rm} $RPM_BUILD_ROOT%{py3_sitedir}/persistent/*.[ch]
-%{__rm} -r $RPM_BUILD_ROOT%{py3_sitedir}/persistent/tests
-%endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%if %{with python2}
 %files
 %defattr(644,root,root,755)
 %doc CHANGES.rst COPYRIGHT.txt LICENSE.txt README.rst
@@ -175,22 +110,6 @@ rm -rf $RPM_BUILD_ROOT
 %files devel
 %defattr(644,root,root,755)
 %{py_incdir}/persistent
-%endif
-
-%if %{with python3}
-%files -n python3-%{module}
-%defattr(644,root,root,755)
-%doc CHANGES.rst COPYRIGHT.txt LICENSE.txt README.rst
-%dir %{py3_sitedir}/persistent
-%{py3_sitedir}/persistent/*.py
-%attr(755,root,root) %{py3_sitedir}/persistent/*.so
-%{py3_sitedir}/persistent/__pycache__
-%{py3_sitedir}/persistent-%{version}-py*.egg-info
-
-%files -n python3-%{module}-devel
-%defattr(644,root,root,755)
-%{py3_incdir}/persistent
-%endif
 
 %if %{with doc}
 %files apidocs
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-persistent.git/commitdiff/1d6cb5feb89900a5a7a75c02d76b4d3adbc05858



More information about the pld-cvs-commit mailing list