[packages/python3-zope.hookable] - python-zope.hookable.spec updated to 7.0 for python 3.8+
qboosh
qboosh at pld-linux.org
Mon Apr 28 21:53:24 CEST 2025
commit 5640d9a75a8338c6c159d8aae66c16d222ee55e5
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Mon Apr 28 21:48:10 2025 +0200
- python-zope.hookable.spec updated to 7.0 for python 3.8+
...ope.hookable.spec => python3-zope.hookable.spec | 85 +++++-----------------
1 file changed, 18 insertions(+), 67 deletions(-)
---
diff --git a/python-zope.hookable.spec b/python3-zope.hookable.spec
similarity index 50%
rename from python-zope.hookable.spec
rename to python3-zope.hookable.spec
index a5be570..a1cdd51 100644
--- a/python-zope.hookable.spec
+++ b/python3-zope.hookable.spec
@@ -1,45 +1,33 @@
#
# 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
+%bcond_without tests # unit tests
%define module zope.hookable
Summary: Zope hookable module
Summary(pl.UTF-8): Moduł Zope hookable
-Name: python-%{module}
-Version: 5.4
-Release: 3
+Name: python3-%{module}
+Version: 7.0
+Release: 1
License: ZPL v2.1
Group: Libraries/Python
-Source0: https://files.pythonhosted.org/packages/source/z/zope.hookable/zope.hookable-%{version}.tar.gz
-# Source0-md5: 2d7a36d27b53c8c33cb938fdcdf62796
+Source0: https://files.pythonhosted.org/packages/source/z/zope.hookable/zope_hookable-%{version}.tar.gz
+# Source0-md5: e257047373df230a484c38b03674ee40
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.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-zope.testing
BuildRequires: python3-zope.testrunner
%endif
-%endif
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.714
%if %{with doc}
-BuildRequires: sphinx-pdg
+BuildRequires: python3-sphinx_rtd_theme >= 1
+BuildRequires: sphinx-pdg-3
%endif
-Requires: python-modules >= 1:2.7
+Requires: python3-modules >= 1:3.8
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -50,20 +38,6 @@ which are callable objects that are meant to be optionally replaced.
Ten pakiet pozwala wydajnie tworzyć obiekty "podczepialne", będące
obiektami wywoływalnymi, które opcjonalnie mogą być podmieniane.
-%package -n python3-%{module}
-Summary: Zope hookable module
-Summary(pl.UTF-8): Moduł Zope hookable
-Group: Libraries/Python
-Requires: python3-modules >= 1:3.5
-
-%description -n python3-%{module}
-This package supports the efficient creation of "hookable" objects,
-which are callable objects that are meant to be optionally replaced.
-
-%description -n python3-%{module} -l pl.UTF-8
-Ten pakiet pozwala wydajnie tworzyć obiekty "podczepialne", będące
-obiektami wywoływalnymi, które opcjonalnie mogą być podmieniane.
-
%package apidocs
Summary: API documentation for Python zope.hookable module
Summary(pl.UTF-8): Dokumentacja API modułu Pythona zope.hookable
@@ -76,65 +50,42 @@ API documentation for Python zope.hookable module.
Dokumentacja API modułu Pythona zope.hookable.
%prep
-%setup -q -n %{module}-%{version}
+%setup -q -n zope_hookable-%{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=$(echo $(pwd)/build-3/lib.*) \
+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
-%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/zope/hookable/*.[ch]
-%{__rm} -r $RPM_BUILD_ROOT%{py_sitedir}/zope/hookable/tests
-%endif
-
-%if %{with python3}
%py3_install
%{__rm} $RPM_BUILD_ROOT%{py3_sitedir}/zope/hookable/*.[ch]
%{__rm} -r $RPM_BUILD_ROOT%{py3_sitedir}/zope/hookable/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
-%dir %{py_sitedir}/zope/hookable
-%{py_sitedir}/zope/hookable/*.py[co]
-%attr(755,root,root) %{py_sitedir}/zope/hookable/_zope_hookable.so
-%{py_sitedir}/zope.hookable-*.egg-info
-%{py_sitedir}/zope.hookable-*-nspkg.pth
-%endif
-
-%if %{with python3}
-%files -n python3-%{module}
-%defattr(644,root,root,755)
-%doc CHANGES.rst COPYRIGHT.txt LICENSE.txt README.rst
%dir %{py3_sitedir}/zope/hookable
%{py3_sitedir}/zope/hookable/*.py
%{py3_sitedir}/zope/hookable/__pycache__
%attr(755,root,root) %{py3_sitedir}/zope/hookable/_zope_hookable.cpython-*.so
%{py3_sitedir}/zope.hookable-*.egg-info
%{py3_sitedir}/zope.hookable-*-nspkg.pth
-%endif
%if %{with doc}
%files apidocs
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-zope.hookable.git/commitdiff/5640d9a75a8338c6c159d8aae66c16d222ee55e5
More information about the pld-cvs-commit
mailing list