[packages/python3-zope.deprecation] - python-zope.deprecation.spec updated to 5.1 for python 3.9+

qboosh qboosh at pld-linux.org
Mon Apr 28 21:32:32 CEST 2025


commit ad3536b7495eb90c193f4a677b493f73d9c6518d
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Mon Apr 28 21:25:23 2025 +0200

    - python-zope.deprecation.spec updated to 5.1 for python 3.9+

 ...precation.spec => python3-zope.deprecation.spec | 79 ++++------------------
 1 file changed, 15 insertions(+), 64 deletions(-)
---
diff --git a/python-zope.deprecation.spec b/python3-zope.deprecation.spec
similarity index 51%
rename from python-zope.deprecation.spec
rename to python3-zope.deprecation.spec
index cfa8ca9..8bfc34e 100644
--- a/python-zope.deprecation.spec
+++ b/python3-zope.deprecation.spec
@@ -2,43 +2,29 @@
 # 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	zope.deprecation
 Summary:	Deprecation library for Python code
 Summary(pl.UTF-8):	Biblioteka odradzająca dla kodu w Pythonie
-Name:		python-%{module}
-# keep 4.x here for python2 support
-Version:	4.4.0
-Release:	5
+Name:		python3-%{module}
+Version:	5.1
+Release:	1
 License:	ZPL v2.1
 Group:		Libraries/Python
-Source0:	https://files.pythonhosted.org/packages/source/z/zope.deprecation/zope.deprecation-%{version}.tar.gz
-# Source0-md5:	6915a92473e2658b3954f8490938455c
+Source0:	https://files.pythonhosted.org/packages/source/z/zope.deprecation/zope_deprecation-%{version}.tar.gz
+# Source0-md5:	a971b204cf636bf65ba8418a317b3245
 URL:		https://www.zope.dev/
-%if %{with python2}
-BuildRequires:	python >= 1:2.7
-BuildRequires:	python-setuptools
-%if %{with tests}
-BuildRequires:	python-zope.testrunner
-%endif
-%endif
-%if %{with python3}
-BuildRequires:	python3 >= 1:3.4
+BuildRequires:	python3 >= 1:3.9
 BuildRequires:	python3-setuptools
 %if %{with tests}
 BuildRequires:	python3-zope.testrunner
 %endif
-%endif
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.714
 %if %{with doc}
-BuildRequires:	sphinx-pdg
+BuildRequires:	sphinx-pdg-3
 %endif
-Requires:	python-modules >= 1:2.7
-Provides:	Zope-Deprecation
-Obsoletes:	Zope-Deprecation < 4.1.0
+Requires:	python3-modules >= 1:3.9
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -52,22 +38,6 @@ Ten pakiet udostępnia prostą funkcję o nazwie deprecated(names,
 reason), służącą do oznaczania przestarzałych modułów, klas, funkcji,
 metod i własności.
 
-%package -n python3-%{module}
-Summary:	Deprecation library for Python code
-Summary(pl.UTF-8):	Biblioteka odradzająca dla kodu w Pythonie
-Group:		Libraries/Python
-Requires:	python3-modules >= 1:3.4
-
-%description -n python3-%{module}
-This package provides a simple function called deprecated(names,
-reason) to mark deprecated modules, classes, functions, methods and
-properties.
-
-%description -n python3-%{module} -l pl.UTF-8
-Ten pakiet udostępnia prostą funkcję o nazwie deprecated(names,
-reason), służącą do oznaczania przestarzałych modułów, klas, funkcji,
-metod i własności.
-
 %package apidocs
 Summary:	API documentation for Python zope.deprecation module
 Summary(pl.UTF-8):	Dokumentacja API modułu Pythona zope.deprecation
@@ -80,55 +50,36 @@ API documentation for Python zope.deprecation module.
 Dokumentacja API modułu Pythona zope.deprecation.
 
 %prep
-%setup -q -n zope.deprecation-%{version}
+%setup -q -n zope_deprecation-%{version}
 
 %build
-%if %{with python2}
-%py_build %{?with_tests:test}
-%endif
+%py3_build
 
-%if %{with python3}
-%py3_build %{?with_tests:test}
+%if %{with tests}
+PYTHONPATH=$(pwd)/src \
+zope-testrunner-3 --test-path=src
 %endif
 
 %if %{with doc}
 PYTHONPATH=$(pwd)/src \
-%{__make} -C docs html
+%{__make} -C docs html \
+	SPHINXBUILD=sphinx-build-3
 %endif
 
 %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 CHANGES.rst COPYRIGHT.txt LICENSE.txt README.rst
-%{py_sitescriptdir}/zope/deprecation
-%{py_sitescriptdir}/zope.deprecation-*.egg-info
-%{py_sitescriptdir}/zope.deprecation-*-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/deprecation
 %{py3_sitescriptdir}/zope.deprecation-*.egg-info
 %{py3_sitescriptdir}/zope.deprecation-*-nspkg.pth
-%endif
 
 %if %{with doc}
 %files apidocs
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-zope.deprecation.git/commitdiff/ad3536b7495eb90c193f4a677b493f73d9c6518d



More information about the pld-cvs-commit mailing list