[packages/python3-persistent] Up to 6.1

arekm arekm at pld-linux.org
Sun May 4 15:47:18 CEST 2025


commit 1ef25d7b61a1cd6131ebb266b72a0d0e6e0772ef
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sun May 4 15:08:18 2025 +0200

    Up to 6.1

 python-persistent.spec => python3-persistent.spec | 96 ++---------------------
 1 file changed, 7 insertions(+), 89 deletions(-)
---
diff --git a/python-persistent.spec b/python3-persistent.spec
similarity index 55%
rename from python-persistent.spec
rename to python3-persistent.spec
index 7770d22..aecd236 100644
--- a/python-persistent.spec
+++ b/python3-persistent.spec
@@ -2,34 +2,20 @@
 # 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
 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
+Name:		python3-%{module}
+Version:	6.1
+Release:	1
 License:	ZPL v2.1
 Group:		Libraries/Python
 #Source0Download: https://pypi.org/simple/persistent/
 Source0:	https://files.pythonhosted.org/packages/source/p/persistent/%{module}-%{version}.tar.gz
-# Source0-md5:	8bc80f8c548f45631c85efb775a85dc1
+# Source0-md5:	48ec39a6620f1f838d09b5a42014f4db
 Patch0:		missing-header.patch
 URL:		https://www.zope.dev/
-%if %{with python2}
-BuildRequires:	python-cffi
-BuildRequires:	python-devel >= 1:2.7
-BuildRequires:	python-setuptools
-%if %{with tests}
-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
@@ -38,14 +24,13 @@ BuildRequires:	python3-manuel
 BuildRequires:	python3-zope.interface
 BuildRequires:	python3-zope.testrunner
 %endif
-%endif
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.714
 %if %{with doc}
 BuildRequires:	python3-repoze.sphinx.autointerface
 BuildRequires:	sphinx-pdg-3
 %endif
-Requires:	python-modules >= 1:2.7
+Requires:	python3-modules >= 1:3.5
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -63,7 +48,7 @@ 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:	%{name} = %{version}-%{release}
-Requires:	python-devel >= 1:2.7
+Requires:	python3-devel >= 1:2.7
 
 %description devel
 Header files for C extensions using persisteny module.
@@ -72,36 +57,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 +73,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,52 +89,26 @@ 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
-%dir %{py_sitedir}/persistent
-%{py_sitedir}/persistent/*.py[co]
-%attr(755,root,root) %{py_sitedir}/persistent/*.so
-%{py_sitedir}/persistent-%{version}-py*.egg-info
-
-%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
+%files devel
 %defattr(644,root,root,755)
 %{py3_incdir}/persistent
-%endif
 
 %if %{with doc}
 %files apidocs
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-persistent.git/commitdiff/1ef25d7b61a1cd6131ebb266b72a0d0e6e0772ef



More information about the pld-cvs-commit mailing list