[packages/python-zope.component] - updated to 4.6.2, finished package

qboosh qboosh at pld-linux.org
Tue Apr 26 22:54:42 CEST 2022


commit 89dbe564439c1b0beeab72335c4a93495f03e8e2
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Apr 26 22:55:00 2022 +0200

    - updated to 4.6.2, finished package

 python-zope.component.spec | 113 +++++++++++++++++++++++++++++++++++----------
 1 file changed, 88 insertions(+), 25 deletions(-)
---
diff --git a/python-zope.component.spec b/python-zope.component.spec
index 1d8d50d..e6acd00 100644
--- a/python-zope.component.spec
+++ b/python-zope.component.spec
@@ -1,41 +1,81 @@
 #
 # 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		_enable_debug_packages	0
-
 %define module	zope.component
 Summary:	Core of the Zope Component Architecture
 Summary(pl.UTF-8):	Rdzeń Zope Component Architecture
 Name:		python-%{module}
-Version:	4.4.1
-Release:	10
-License:	ZPL 2.1
+Version:	4.6.2
+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:	dc43aca08995751159e4b0f98f5afc5a
+# Source0-md5:	a2ff90ec57119f0e568fa4aa64a57ebd
+URL:		https://www.zope.dev/
 %if %{with python2}
 BuildRequires:	python >= 1:2.5
 BuildRequires:	python-devel >= 1:2.5
 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 >= 4.1.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.2
 BuildRequires:	python3-devel >= 1:3.2
 BuildRequires:	python3-setuptools
+%if %{with tests}
+BuildRequires:	python3-persistent
+BuildRequires:	python3-zope.configuration
+BuildRequires:	python3-zope.deferredimport >= 4.2.1
+BuildRequires:	python3-zope.deprecation >= 4.3.0
+BuildRequires:	python3-zope.event
+BuildRequires:	python3-zope.hookable >= 4.2.0
+BuildRequires:	python3-zope.i18nmessageid
+BuildRequires:	python3-zope.interface >= 4.1.0
+BuildRequires:	python3-zope.location
+BuildRequires:	python3-zope.proxy
+BuildRequires:	python3-zope.security
+BuildRequires:	python3-zope.testing
+BuildRequires:	python3-zope.testrunner
+%endif
 %endif
 BuildRequires:	rpm-pythonprov
-BuildRequires:	rpmbuild(macros) >= 1.710
-Requires:	python-zope.deferredimport
-Requires:	python-zope.deprecation
-Requires:	python-zope.event
-Requires:	python-zope.interface
-Requires:	python-zope.proxy
-Requires:	python-zope.testing
-Requires:	python-modules
-Obsoletes:	Zope-Component
+BuildRequires:	rpmbuild(macros) >= 1.714
+%if %{with doc}
+BuildRequires:	python3-repoze.sphinx.autointerface
+BuildRequires:	python3-zope.deferredimport >= 4.2.1
+BuildRequires:	python3-zope.deprecation >= 4.3.0
+BuildRequires:	python3-zope.event
+BuildRequires:	python3-zope.hookable >= 4.2.0
+BuildRequires:	python3-zope.interface >= 4.1.0
+BuildRequires:	sphinx-pdg-3
+%endif
+#Requires:	python-zope.deferredimport
+#Requires:	python-zope.deprecation
+#Requires:	python-zope.event
+#Requires:	python-zope.interface
+#Requires:	python-zope.proxy
+#Requires:	python-zope.testing
+Requires:	python-modules >= 1:2.5
 Provides:	Zope-Component
+Obsoletes:	Zope-Component < 4
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -49,6 +89,7 @@ Rdzeń architektury komponentowej Zope Component Architecture.
 Summary:	Core of the Zope Component Architecture
 Summary(pl.UTF-8):	Rdzeń Zope Component Architecture
 Group:		Libraries/Python
+Requires:	python3-modules >= 1:3.2
 
 %description -n python3-zope.component
 Core of the Zope Component Architecture.
@@ -56,6 +97,17 @@ 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
+Group:		Documentation
+
+%description apidocs
+API documentation for Python zope.deferredimport module.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API modułu Pythona zope.deferredimport.
+
 %prep
 %setup -q -n zope.component-%{version}
 
@@ -68,36 +120,47 @@ Rdzeń architektury komponentowej Zope Component Architecture.
 %py3_build %{?with_tests:test}
 %endif
 
+%if %{with doc}
+PYTHONPATH=$(pwd)/src \
+%{__make} -C docs html
+%endif
+
 %install
 rm -rf $RPM_BUILD_ROOT
 
 %if %{with python2}
-%py_install \
-	--install-purelib=%{py_sitescriptdir}
+%py_install
 
 %py_postclean
 %endif
 
 %if %{with python3}
-%py3_install \
-	--install-purelib=%{py3_sitescriptdir}
+%py3_install
 %endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%if %{with python2}
 %files
 %defattr(644,root,root,755)
-%if %{with python2}
+%doc CHANGES.rst COPYRIGHT.txt LICENSE.txt README.rst
 %{py_sitescriptdir}/zope/component
-%{py_sitescriptdir}/zope.component-*.egg-info
-%{py_sitescriptdir}/zope.component-*-nspkg.pth
+%{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)
-%if %{with python3}
+%doc CHANGES.rst COPYRIGHT.txt LICENSE.txt README.rst
 %{py3_sitescriptdir}/zope/component
-%{py3_sitescriptdir}/zope.component-*.egg-info
-%{py3_sitescriptdir}/zope.component-*-nspkg.pth
+%{py3_sitescriptdir}/zope.component-%{version}-py*.egg-info
+%{py3_sitescriptdir}/zope.component-%{version}-py*-nspkg.pth
+%endif
+
+%if %{with doc}
+%files apidocs
+%defattr(644,root,root,755)
+%doc docs/_build/html/{_modules,_static,*.html,*.js}
 %endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-zope.component.git/commitdiff/89dbe564439c1b0beeab72335c4a93495f03e8e2



More information about the pld-cvs-commit mailing list