[packages/python3-zope.copy] - python-zope.copy.spec updated to 5.0 for python 3.8+

qboosh qboosh at pld-linux.org
Fri May 30 20:30:45 CEST 2025


commit c285a7e3513bc8f2dd688a3e6b1812596535069c
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri May 30 20:18:52 2025 +0200

    - python-zope.copy.spec updated to 5.0 for python 3.8+

 python-zope.copy.spec => python3-zope.copy.spec | 83 +++++--------------------
 1 file changed, 14 insertions(+), 69 deletions(-)
---
diff --git a/python-zope.copy.spec b/python3-zope.copy.spec
similarity index 54%
rename from python-zope.copy.spec
rename to python3-zope.copy.spec
index ecf3da7..32b1004 100644
--- a/python-zope.copy.spec
+++ b/python3-zope.copy.spec
@@ -2,51 +2,41 @@
 # Conditional build:
 %bcond_without	doc	# Sphinx documentation
 %bcond_with	tests	# unit tests (circular dependencies)
-%bcond_without	python2 # CPython 2.x module
-%bcond_without	python3 # CPython 3.x module
 
 %define module	zope.copy
 Summary:	Pluggable object copying mechanism
 Summary(pl.UTF-8):	Mechanizm kopiowania obiektów z obsługą wtyczek
-Name:		python-%{module}
-Version:	4.3
-Release:	3
+Name:		python3-%{module}
+Version:	5.0
+Release:	1
 License:	ZPL v2.1
 Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/zope-copy/
 Source0:	https://files.pythonhosted.org/packages/source/z/zope.copy/zope.copy-%{version}.tar.gz
-# Source0-md5:	f4d53472086a1261c7f1ccb6738b9db8
+# Source0-md5:	f4823dba82a8ef82f382db8bc0c9eb36
 URL:		https://www.zope.dev/
-%if %{with python2}
-BuildRequires:	python >= 1:2.7
-BuildRequires:	python-devel >= 1:2.7
-BuildRequires:	python-setuptools
-%if %{with tests}
-BuildRequires:	python-zope.component
-BuildRequires:	python-zope.interface
-BuildRequires:	python-zope.location
-BuildRequires:	python-zope.testing
-BuildRequires:	python-zope.testrunner
-%endif
-%endif
-%if %{with python3}
-BuildRequires:	python3 >= 1:3.5
-BuildRequires:	python3-devel >= 1:3.5
+BuildRequires:	python3 >= 1:3.8
+BuildRequires:	python3-devel >= 1:3.8
 BuildRequires:	python3-setuptools
 %if %{with tests}
+BuildRequires:	python3-zodbpickle
 BuildRequires:	python3-zope.component
 BuildRequires:	python3-zope.interface
 BuildRequires:	python3-zope.location
 BuildRequires:	python3-zope.testing
 BuildRequires:	python3-zope.testrunner
 %endif
-%endif
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.714
 %if %{with doc}
 BuildRequires:	python3-repoze.sphinx.autointerface
+BuildRequires:	python3-zodbpickle
+# already installed package due to package namespace issues (required for "_modules" docs subdir)
+BuildRequires:	python3-zope.copy
+BuildRequires:	python3-zope.interface
 BuildRequires:	sphinx-pdg-3
 %endif
-Requires:	python-modules >= 1:2.7
+Requires:	python3-modules >= 1:3.8
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -58,20 +48,6 @@ objects.
 Ten pakiet zapewnia mechanizm kopiowania trwałych obiektów z
 obsługą wtyczek.
 
-%package -n python3-%{module}
-Summary:	Pluggable object copying mechanism
-Summary(pl.UTF-8):	Mechanizm kopiowania obiektów z obsługą wtyczek
-Group:		Libraries/Python
-Requires:	python3-modules >= 1:3.5
-
-%description -n python3-%{module}
-This package provides a pluggable mechanism for copying persistent
-objects.
-
-%description -n python3-%{module} -l pl.UTF-8
-Ten pakiet zapewnia mechanizm kopiowania trwałych obiektów z
-obsługą wtyczek.
-
 %package apidocs
 Summary:	API documentation for Python zope.copy module
 Summary(pl.UTF-8):	Dokumentacja API modułu Pythona zope.copy
@@ -87,23 +63,12 @@ Dokumentacja API modułu Pythona zope.copy.
 %setup -q -n %{module}-%{version}
 
 %build
-%if %{with python2}
-%py_build
-
-%if %{with tests}
-PYTHONPATH=$(pwd)/src \
-zope-testrunner-2 --test-path=src -v
-%endif
-%endif
-
-%if %{with python3}
 %py3_build
 
 %if %{with tests}
 PYTHONPATH=$(pwd)/src \
 zope-testrunner-3 --test-path=src -v
 %endif
-%endif
 
 %if %{with doc}
 PYTHONPATH=$(pwd)/src \
@@ -114,42 +79,22 @@ PYTHONPATH=$(pwd)/src \
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%if %{with python2}
-%py_install
-
-%py_postclean
-%{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/zope/copy/tests
-%endif
-
-%if %{with python3}
 %py3_install
 
 %{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/zope/copy/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
-%{py_sitescriptdir}/zope/copy
-%{py_sitescriptdir}/zope.copy-%{version}-py*.egg-info
-%{py_sitescriptdir}/zope.copy-%{version}-py*-nspkg.pth
-%endif
-
-%if %{with python3}
-%files -n python3-%{module}
-%defattr(644,root,root,755)
-%doc CHANGES.rst COPYRIGHT.txt LICENSE.txt README.rst
 %{py3_sitescriptdir}/zope/copy
 %{py3_sitescriptdir}/zope.copy-%{version}-py*.egg-info
 %{py3_sitescriptdir}/zope.copy-%{version}-py*-nspkg.pth
-%endif
 
 %if %{with doc}
 %files apidocs
 %defattr(644,root,root,755)
-%doc docs/_build/html/{_static,*.html,*.js}
+%doc docs/_build/html/{_modules,_static,*.html,*.js}
 %endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-zope.copy.git/commitdiff/c285a7e3513bc8f2dd688a3e6b1812596535069c



More information about the pld-cvs-commit mailing list