[packages/python-persistent] - updated to 4.7.0

qboosh qboosh at pld-linux.org
Wed Feb 23 21:38:06 CET 2022


commit e8337ec19feb4e2df15e76535efdb7548d80dd49
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Wed Feb 23 21:39:38 2022 +0100

    - updated to 4.7.0

 python-persistent.spec | 124 ++++++++++++++++++++++++++++++-------------------
 1 file changed, 75 insertions(+), 49 deletions(-)
---
diff --git a/python-persistent.spec b/python-persistent.spec
index 78b31c4..0867c02 100644
--- a/python-persistent.spec
+++ b/python-persistent.spec
@@ -1,64 +1,87 @@
-# TODO:
-# - check test failures: FAIL: test_ring_impl (persistent.tests.test_picklecache.PickleCacheTests)
-# - fix docs: Could not import extension repoze.sphinx.autointerface (exception: No module named 'repoze')
-# - delete/packages /usr/lib64/python*/site-packages/persistent/tests/
+#
 # Conditional build:
-%bcond_with	doc	# don't build doc
-%bcond_with	tests	# do not perform "make test"
+%bcond_without	doc	# Sphinx documentation
+%bcond_without	tests	# unit tests
 %bcond_without	python2 # CPython 2.x module
 %bcond_without	python3 # CPython 3.x module
 
 %define 	module	persistent
-%define		pypi_name	%{module}
-
 Summary:	Automatic persistence for Python objects
-Summary(pl.UTF-8):	Automytczne trwałe obiekty w Pythonie
+Summary(pl.UTF-8):	Automatyczne trwałe obiekty w Pythonie
 Name:		python-%{module}
-Version:	4.6.4
-Release:	2
-License:	ZPL 2.1
+Version:	4.7.0
+Release:	1
+License:	ZPL v2.1
 Group:		Libraries/Python
 #Source0Download: https://pypi.org/simple/persistent/
-Source0:	https://files.pythonhosted.org/packages/source/p/persistent/%{pypi_name}-%{version}.tar.gz
-# Source0-md5:	6878fd3a3008fb5b7da7a374155fd6c2
-URL:		http://www.zope.org/Products/ZODB
-BuildRequires:	rpm-pythonprov
-BuildRequires:	rpmbuild(macros) >= 1.714
+Source0:	https://files.pythonhosted.org/packages/source/p/persistent/%{module}-%{version}.tar.gz
+# Source0-md5:	dedb296b74082edf246fe48333065f46
+URL:		https://www.zope.dev/
 %if %{with python2}
-BuildRequires:	python-devel
+BuildRequires:	python-cffi
+BuildRequires:	python-devel >= 1:2.7
 BuildRequires:	python-setuptools
+%if %{with tests}
+BuildRequires:	python-manuel
+BuildRequires:	python-zope.interface
+BuildRequires:	python-zope.testrunner
+%endif
 %endif
 %if %{with python3}
-BuildRequires:	python3-devel
+BuildRequires:	python3-cffi
+BuildRequires:	python3-devel >= 1:3.5
 BuildRequires:	python3-setuptools
+%if %{with tests}
+BuildRequires:	python3-manuel
+BuildRequires:	python3-zope.interface
+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
+Requires:	python-modules >= 1:2.7
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
+This package contains a generic persistence implementation for Python.
+It forms the core protocol for making objects interact "transparently"
+with a database such as the ZODB.
 
 %description -l pl.UTF-8
+Ten pakiet zawiera ogólną implementację trwałych danych dla Pythona.
+Tworzy główny protokół, pozwalający obiektom w sposób przezroczysty
+współpracować z bazą danych taką jak ZODB.
 
 %package -n python3-%{module}
 Summary:	Automatic persistence for Python objects
-Summary(pl.UTF-8):	Automytczne trwałe obiekty w Pythonie
+Summary(pl.UTF-8):	Automatyczne trwałe obiekty w Pythonie
 Group:		Libraries/Python
-Requires:	python3-modules
+Requires:	python3-modules >= 1:3.5
 
 %description -n python3-%{module}
+This package contains a generic persistence implementation for Python.
+It forms the core protocol for making objects interact "transparently"
+with a database such as the ZODB.
 
 %description -n python3-%{module} -l pl.UTF-8
+Ten pakiet zawiera ogólną implementację trwałych danych dla Pythona.
+Tworzy główny protokół, pozwalający obiektom w sposób przezroczysty
+współpracować z bazą danych taką jak ZODB.
 
 %package apidocs
-Summary:	%{module} API documentation
-Summary(pl.UTF-8):	Dokumentacja API %{module}
+Summary:	API documentation for Python persistent module
+Summary(pl.UTF-8):	Dokumentacja API modułu Pythona persistent
 Group:		Documentation
 
 %description apidocs
-API documentation for %{module}.
+API documentation for Python persistent module.
 
 %description apidocs -l pl.UTF-8
-Dokumentacja API %{module}.
+Dokumentacja API modułu Pythona persistent.
 
 %prep
 %setup -q -n %{module}-%{version}
@@ -73,20 +96,31 @@ Dokumentacja API %{module}.
 %endif
 
 %if %{with doc}
-cd docs
-%{__make} -j1 html
-rm -rf _build/html/_sources
+PYTHONPATH=$(pwd) \
+%{__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}/persistent/*.[ch]
+%{__rm} -r $RPM_BUILD_ROOT%{py_sitedir}/persistent/tests
+# or package in -devel?
+%{__rm} -r $RPM_BUILD_ROOT%{py_incdir}/persistent
 %endif
 
 %if %{with python3}
 %py3_install
+
+%{__rm} $RPM_BUILD_ROOT%{py3_sitedir}/persistent/*.[ch]
+%{__rm} -r $RPM_BUILD_ROOT%{py3_sitedir}/persistent/tests
+# or package in -devel?
+%{__rm} -r $RPM_BUILD_ROOT%{py3_incdir}/persistent
 %endif
 
 %clean
@@ -95,34 +129,26 @@ rm -rf $RPM_BUILD_ROOT
 %if %{with python2}
 %files
 %defattr(644,root,root,755)
-%doc README.rst CHANGES.rst
-%dir %{py_sitedir}/%{module}
-%{py_sitedir}/%{module}/*.py[co]
-%{py_sitedir}/%{module}/*.[ch]
-%attr(755,root,root) %{py_sitedir}/%{module}/*.so
-%{py_sitedir}/%{module}-%{version}-py*.egg-info
-%dir %{py_incdir}/persistent/
-%{py_incdir}/persistent/cPersistence.h
-%{py_incdir}/persistent/ring.h
+%doc CHANGES.rst COPYRIGHT.txt LICENSE.txt README.rst
+%dir %{py_sitedir}/persistent
+%{py_sitedir}/persistent/*.py[co]
+%attr(755,root,root) %{py_sitedir}/persistent/*.so
+%{py_sitedir}/persistent-%{version}-py*.egg-info
 %endif
 
 %if %{with python3}
 %files -n python3-%{module}
 %defattr(644,root,root,755)
-%doc README.rst CHANGES.rst
-%dir %{py3_sitedir}/%{module}
-%{py3_sitedir}/%{module}/*.py
-%{py3_sitedir}/%{module}/*.[ch]
-%attr(755,root,root) %{py3_sitedir}/%{module}/*.so
-%{py3_sitedir}/%{module}/__pycache__
-%{py3_sitedir}/%{module}-%{version}-py*.egg-info
-%dir %{py3_incdir}/persistent/
-%{py3_incdir}/persistent/cPersistence.h
-%{py3_incdir}/persistent/ring.h
+%doc CHANGES.rst COPYRIGHT.txt LICENSE.txt README.rst
+%dir %{py3_sitedir}/persistent
+%{py3_sitedir}/persistent/*.py
+%attr(755,root,root) %{py3_sitedir}/persistent/*.so
+%{py3_sitedir}/persistent/__pycache__
+%{py3_sitedir}/persistent-%{version}-py*.egg-info
 %endif
 
 %if %{with doc}
 %files apidocs
 %defattr(644,root,root,755)
-%doc docs/_build/html/*
+%doc docs/_build/html/{_static,api,*.html,*.js}
 %endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-persistent.git/commitdiff/e8337ec19feb4e2df15e76535efdb7548d80dd49



More information about the pld-cvs-commit mailing list