[packages/python-zope.interface] - updated to 4.7.1 - added apidocs

qboosh qboosh at pld-linux.org
Mon Dec 30 16:20:07 CET 2019


commit 2cf0ce461b2a66465293d169662716eeed2c4fd6
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Mon Dec 30 16:20:59 2019 +0100

    - updated to 4.7.1
    - added apidocs

 python-zope.interface.spec | 42 +++++++++++++++++++++++++++++-------------
 1 file changed, 29 insertions(+), 13 deletions(-)
---
diff --git a/python-zope.interface.spec b/python-zope.interface.spec
index 75a87c7..d802364 100644
--- a/python-zope.interface.spec
+++ b/python-zope.interface.spec
@@ -1,7 +1,6 @@
-# TODO: finish docs build (requires Sphinx repoze.sphinx.autointerface extension)
 #
 # Conditional build:
-%bcond_with	doc	# Sphinx documentation
+%bcond_without	doc	# Sphinx documentation
 %bcond_without	python2 # CPython 2.x module
 %bcond_without	python3 # CPython 3.x module
 %bcond_without	tests	# unit tests
@@ -10,16 +9,14 @@
 Summary:	Python 'interface' concept implementation
 Summary(pl.UTF-8):	Implementacja interfejsów dla języka Python
 Name:		python-%{module}
-Version:	4.5.0
-Release:	3
-License:	ZPL 2.1
+Version:	4.7.1
+Release:	1
+License:	ZPL v2.1
 Group:		Libraries/Python
 #Source0Download: https://pypi.org/simple/zope.interface/
 Source0:	https://files.pythonhosted.org/packages/source/z/zope.interface/zope.interface-%{version}.tar.gz
-# Source0-md5:	7b669cd692d817772c61d2e3ad0f1e71
-URL:		http://docs.zope.org/zope.interface/
-BuildRequires:	rpm-pythonprov
-BuildRequires:	rpmbuild(macros) >= 1.710
+# Source0-md5:	1bc66758275c5eb66d169acba3c8e50e
+URL:		https://zopeinterface.readthedocs.io/
 %if %{with python2}
 BuildRequires:	python >= 1:2.7
 BuildRequires:	python-devel >= 1:2.7
@@ -27,11 +24,13 @@ BuildRequires:	python-setuptools
 %{?with_tests:BuildRequires:	python-zope.event}
 %endif
 %if %{with python3}
-BuildRequires:	python3 >= 1:3.4
-BuildRequires:	python3-devel >= 1:3.4
+BuildRequires:	python3 >= 1:3.5
+BuildRequires:	python3-devel >= 1:3.5
 BuildRequires:	python3-setuptools
 %{?with_tests:BuildRequires:	python3-zope.event}
 %endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
 %if %{with doc}
 BuildRequires:	python3-repoze.sphinx.autointerface
 BuildRequires:	sphinx-pdg-3
@@ -55,7 +54,7 @@ języka Python.
 Summary:	Python 'interface' concept implementation
 Summary(pl.UTF-8):	Implementacja interfejsów dla języka Python
 Group:		Libraries/Python
-Requires:	python3-modules >= 1:3.4
+Requires:	python3-modules >= 1:3.5
 Requires:	python3-zope-base
 
 %description -n python3-%{module}
@@ -65,6 +64,17 @@ Python 'interface' concept implementation.
 Implementacja interfejsów (abstrakcyjnych reprezentacji klas) dla
 języka Python.
 
+%package apidocs
+Summary:	API documentation for Python zope.interface module
+Summary(pl.UTF-8):	Dokumentacja API modułu Pythona zope.interface
+Group:		Documentation
+
+%description apidocs
+API documentation for Python zope.interface module.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API modułu Pythona zope.interface.
+
 %prep
 %setup -q -n %{module}-%{version}
 
@@ -80,7 +90,7 @@ języka Python.
 %if %{with doc}
 PYTHONPATH=$(pwd)/src \
 %{__make} -C docs html \
-	SPHINXBUILD=sphinx-build-2
+	SPHINXBUILD=sphinx-build-3
 %endif
 
 %install
@@ -128,3 +138,9 @@ rm -rf $RPM_BUILD_ROOT
 %{py3_sitedir}/zope.interface-%{version}-py*.egg-info
 %{py3_sitedir}/zope.interface-%{version}-py*-nspkg.pth
 %endif
+
+%if %{with doc}
+%files apidocs
+%defattr(644,root,root,755)
+%doc docs/_build/html/{_modules,_static,api,*.html,*.js}
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-zope.interface.git/commitdiff/2cf0ce461b2a66465293d169662716eeed2c4fd6



More information about the pld-cvs-commit mailing list