[packages/python3-zope.location] - python-zope.location.spec updated to 5.1 for python 3.9+
qboosh
qboosh at pld-linux.org
Sun May 4 22:19:30 CEST 2025
commit 6561e587ceac98377206074c302c495b0ef80a32
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun May 4 22:16:46 2025 +0200
- python-zope.location.spec updated to 5.1 for python 3.9+
...ope.location.spec => python3-zope.location.spec | 82 +++-------------------
1 file changed, 9 insertions(+), 73 deletions(-)
---
diff --git a/python-zope.location.spec b/python3-zope.location.spec
similarity index 53%
rename from python-zope.location.spec
rename to python3-zope.location.spec
index 22a5f1c..0ecbee1 100644
--- a/python-zope.location.spec
+++ b/python3-zope.location.spec
@@ -2,38 +2,20 @@
# 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.location
Summary: Zope location module
Summary(pl.UTF-8): Moduł Zope location
-Name: python-%{module}
-# keep 4.x here for python2 support
-Version: 4.3
-Release: 3
+Name: python3-%{module}
+Version: 5.1
+Release: 1
License: ZPL v2.1
Group: Libraries/Python
-Source0: https://files.pythonhosted.org/packages/source/z/zope.location/zope.location-%{version}.tar.gz
-# Source0-md5: cde53eb5cb53e55aaa45c1405a4b0fea
+Source0: https://files.pythonhosted.org/packages/source/z/zope.location/zope_location-%{version}.tar.gz
+# Source0-md5: 9f25225ed1cd679f5521fc83140b9537
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 >= 4.0.1
-BuildRequires: python-zope.configuration
-BuildRequires: python-zope.copy >= 4.0
-BuildRequires: python-zope.interface >= 4.0.2
-BuildRequires: python-zope.proxy >= 4.0.1
-BuildRequires: python-zope.schema >= 4.2.2
-BuildRequires: python-zope.testrunner
-%endif
-%endif
-%if %{with python3}
-BuildRequires: python3 >= 1:3.5
-BuildRequires: python3-devel >= 1:3.5
+BuildRequires: python3 >= 1:3.9
+BuildRequires: python3-devel >= 1:3.9
BuildRequires: python3-setuptools
%if %{with tests}
BuildRequires: python3-zope.component >= 4.0.1
@@ -44,14 +26,13 @@ BuildRequires: python3-zope.proxy >= 4.0.1
BuildRequires: python3-zope.schema >= 4.2.2
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.9
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -63,20 +44,6 @@ location, indicated with __name__ and __parent__ attributes.
W Zope obiekty "location" to specjalne obiekty, mające położenie
strukturalne, określane przez atrybuty __name__ i __parent__.
-%package -n python3-%{module}
-Summary: Zope location module
-Summary(pl.UTF-8): Moduł Zope location
-Group: Libraries/Python
-Requires: python3-modules >= 1:3.5
-
-%description -n python3-%{module}
-In Zope, "locations" are special objects that have a structural
-location, indicated with __name__ and __parent__ attributes.
-
-%description -n python3-%{module} -l pl.UTF-8
-W Zope obiekty "location" to specjalne obiekty, mające położenie
-strukturalne, określane przez atrybuty __name__ i __parent__.
-
%package apidocs
Summary: API documentation for Python zope.location module
Summary(pl.UTF-8): Dokumentacja API modułu Pythona zope.location
@@ -89,26 +56,15 @@ API documentation for Python zope.location module.
Dokumentacja API modułu Pythona zope.location.
%prep
-%setup -q -n %{module}-%{version}
+%setup -q -n zope_location-%{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 \
@@ -119,39 +75,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/location/tests
-%endif
-
-%if %{with python3}
%py3_install
%{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/zope/location/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/location
-%{py_sitescriptdir}/zope.location-%{version}-py*.egg-info
-%{py_sitescriptdir}/zope.location-%{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/location
%{py3_sitescriptdir}/zope.location-%{version}-py*.egg-info
%{py3_sitescriptdir}/zope.location-%{version}-py*-nspkg.pth
-%endif
%if %{with doc}
%files apidocs
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-zope.location.git/commitdiff/6561e587ceac98377206074c302c495b0ef80a32
More information about the pld-cvs-commit
mailing list