[packages/python3-zope.schema] - python-zope.schema.spec updated to 7.0.1 for python 3.7+

qboosh qboosh at pld-linux.org
Tue Apr 29 21:31:55 CEST 2025


commit d6e0de548cfc442b5df9a0b3d03ac8f69fff5bf4
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Apr 29 21:24:44 2025 +0200

    - python-zope.schema.spec updated to 7.0.1 for python 3.7+

 ...on-zope.schema.spec => python3-zope.schema.spec | 74 ++--------------------
 1 file changed, 7 insertions(+), 67 deletions(-)
---
diff --git a/python-zope.schema.spec b/python3-zope.schema.spec
similarity index 55%
rename from python-zope.schema.spec
rename to python3-zope.schema.spec
index 0d445a5..bc2d7c6 100644
--- a/python-zope.schema.spec
+++ b/python3-zope.schema.spec
@@ -2,36 +2,20 @@
 # Conditional build:
 %bcond_without	doc	# Sphinx documentation
 %bcond_without	tests	# unit tests (installed package required)
-%bcond_without	python2 # CPython 2.x module
-%bcond_without	python3 # CPython 3.x module
 
 %define module	zope.schema
 Summary:	zope.interface extension for defining data schemas
 Summary(pl.UTF-8):	Rozszerzenie zope.interface do definiowania schematów danych
-Name:		python-%{module}
-# keep 6.x here for python2 support
-Version:	6.2.1
-Release:	3
+Name:		python3-%{module}
+Version:	7.0.1
+Release:	1
 License:	ZPL v2.1
 Group:		Libraries/Python
 Source0:	https://files.pythonhosted.org/packages/source/z/zope.schema/zope.schema-%{version}.tar.gz
-# Source0-md5:	4def0eb61a3d69a4ae262965bfded3a1
+# Source0-md5:	d938af4000a89fa101d2f48f7a8fdd75
 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.event
-BuildRequires:	python-zope.i18nmessageid
-BuildRequires:	python-zope.interface >= 5.0.0
-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.7
+BuildRequires:	python3-devel >= 1:3.7
 BuildRequires:	python3-setuptools
 %if %{with tests}
 BuildRequires:	python3-zope.event
@@ -40,14 +24,13 @@ BuildRequires:	python3-zope.interface >= 5.0.0
 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:	sphinx-pdg-3
 %endif
-Requires:	python-modules >= 1:2.7
+Requires:	python3-modules >= 1:3.7
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -57,18 +40,6 @@ zope.interface extension for defining data schemas.
 %description -l pl.UTF-8
 Rozszerzenie zope.interface do definiowania schematów danych.
 
-%package -n python3-%{module}
-Summary:	zope.interface extension for defining data schemas
-Summary(pl.UTF-8):	Rozszerzenie zope.interface do definiowania schematów danych
-Group:		Libraries/Python
-Requires:	python3-modules >= 1:3.5
-
-%description -n python3-%{module}
-zope.interface extension for defining data schemas.
-
-%description -n python3-%{module} -l pl.UTF-8
-Rozszerzenie zope.interface do definiowania schematów danych.
-
 %package apidocs
 Summary:	API documentation for Python zope.schema module
 Summary(pl.UTF-8):	Dokumentacja API modułu Pythona zope.schema
@@ -84,23 +55,12 @@ Dokumentacja API modułu Pythona zope.schema.
 %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 \
@@ -111,39 +71,19 @@ PYTHONPATH=$(pwd)/src \
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%if %{with python2}
-%py_install
-
-%py_postclean
-%{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/zope/schema/tests
-%endif
-
-%if %{with python3}
 %py3_install
 
 %{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/zope/schema/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/schema
-%{py_sitescriptdir}/zope.schema-%{version}-py*.egg-info
-%{py_sitescriptdir}/zope.schema-%{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/schema
 %{py3_sitescriptdir}/zope.schema-%{version}-py*.egg-info
 %{py3_sitescriptdir}/zope.schema-%{version}-py*-nspkg.pth
-%endif
 
 %if %{with doc}
 %files apidocs
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-zope.schema.git/commitdiff/d6e0de548cfc442b5df9a0b3d03ac8f69fff5bf4



More information about the pld-cvs-commit mailing list