[packages/python3-zope.component] - python-zope.component.spec updated to 6.0 for python 3.7+
qboosh
qboosh at pld-linux.org
Mon May 5 21:45:50 CEST 2025
commit 0d8671c7041f22efd43ee35bf04e6f20a92ecd10
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Mon May 5 21:40:05 2025 +0200
- python-zope.component.spec updated to 6.0 for python 3.7+
...e.component.spec => python3-zope.component.spec | 81 +++-------------------
1 file changed, 9 insertions(+), 72 deletions(-)
---
diff --git a/python-zope.component.spec b/python3-zope.component.spec
similarity index 56%
rename from python-zope.component.spec
rename to python3-zope.component.spec
index a22da7b..a1ac9dc 100644
--- a/python-zope.component.spec
+++ b/python3-zope.component.spec
@@ -2,44 +2,20 @@
# Conditional build:
%bcond_without doc # Sphinx documentation
%bcond_with tests # unit tests (circular zope.security dependency)
-%bcond_without python2 # CPython 2.x module
-%bcond_without python3 # CPython 3.x module
%define module zope.component
Summary: Core of the Zope Component Architecture
Summary(pl.UTF-8): Rdzeń Zope Component Architecture
-Name: python-%{module}
-# keep 5.x here for python2 support
-Version: 5.1.0
-Release: 3
+Name: python3-%{module}
+Version: 6.0
+Release: 1
License: ZPL v2.1
Group: Libraries/Python
Source0: https://files.pythonhosted.org/packages/source/z/zope.component/zope.component-%{version}.tar.gz
-# Source0-md5: 40f0fa6d002d443dad7dab2e11f2d79f
+# Source0-md5: 55d4d24f425b18e2368a18c468f8cc47
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-persistent
-BuildRequires: python-zope.configuration
-BuildRequires: python-zope.deferredimport >= 4.2.1
-BuildRequires: python-zope.deprecation >= 4.3.0
-BuildRequires: python-zope.event
-BuildRequires: python-zope.hookable >= 4.2.0
-BuildRequires: python-zope.i18nmessageid
-BuildRequires: python-zope.interface >= 5.3.0
-BuildRequires: python-zope.location
-BuildRequires: python-zope.proxy
-BuildRequires: python-zope.security
-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-persistent
@@ -56,7 +32,6 @@ BuildRequires: python3-zope.security
BuildRequires: python3-zope.testing
BuildRequires: python3-zope.testrunner
%endif
-%endif
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.714
%if %{with doc}
@@ -68,9 +43,7 @@ BuildRequires: python3-zope.hookable >= 4.2.0
BuildRequires: python3-zope.interface >= 5.3.0
BuildRequires: sphinx-pdg-3
%endif
-Requires: python-modules >= 1:2.7
-Provides: Zope-Component
-Obsoletes: Zope-Component < 4
+Requires: python3-modules >= 1:3.7
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -80,18 +53,6 @@ Core of the Zope Component Architecture.
%description -l pl.UTF-8
Rdzeń architektury komponentowej Zope Component Architecture.
-%package -n python3-zope.component
-Summary: Core of the Zope Component Architecture
-Summary(pl.UTF-8): Rdzeń Zope Component Architecture
-Group: Libraries/Python
-Requires: python3-modules >= 1:3.5
-
-%description -n python3-zope.component
-Core of the Zope Component Architecture.
-
-%description -n python3-zope.component -l pl.UTF-8
-Rdzeń architektury komponentowej Zope Component Architecture.
-
%package apidocs
Summary: API documentation for Python zope.deferredimport module
Summary(pl.UTF-8): Dokumentacja API modułu Pythona zope.deferredimport
@@ -107,52 +68,28 @@ Dokumentacja API modułu Pythona zope.deferredimport.
%setup -q -n zope.component-%{version}
%build
-%if %{with python2}
-%py_build %{?with_tests:test}
-%endif
-
-%if %{with python3}
%py3_build %{?with_tests:test}
-%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/component
-%{py_sitescriptdir}/zope.component-%{version}-py*.egg-info
-%{py_sitescriptdir}/zope.component-%{version}-py*-nspkg.pth
-%endif
-
-%if %{with python3}
-%files -n python3-zope.component
-%defattr(644,root,root,755)
-%doc CHANGES.rst COPYRIGHT.txt LICENSE.txt README.rst
%{py3_sitescriptdir}/zope/component
%{py3_sitescriptdir}/zope.component-%{version}-py*.egg-info
%{py3_sitescriptdir}/zope.component-%{version}-py*-nspkg.pth
-%endif
%if %{with doc}
%files apidocs
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-zope.component.git/commitdiff/0d8671c7041f22efd43ee35bf04e6f20a92ecd10
More information about the pld-cvs-commit
mailing list