[packages/python-pyasn1] - updated to 0.2.3
qboosh
qboosh at pld-linux.org
Fri Mar 3 21:55:36 CET 2017
commit 80c47c791109432a4e9a78906985aab6d0cd1218
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Fri Mar 3 21:57:39 2017 +0100
- updated to 0.2.3
python-pyasn1.spec | 46 ++++++++++++++++++++++++++++++++++++++--------
1 file changed, 38 insertions(+), 8 deletions(-)
---
diff --git a/python-pyasn1.spec b/python-pyasn1.spec
index f8c7971..af793fd 100644
--- a/python-pyasn1.spec
+++ b/python-pyasn1.spec
@@ -1,5 +1,6 @@
#
# Conditional build:
+%bcond_without apidocs # Sphinx documentation
%bcond_without tests # do not perform "make test"
%bcond_without python2 # CPython 2.x module
%bcond_without python3 # CPython 3.x module
@@ -9,15 +10,16 @@
Summary: ASN.1 tools for Python
Summary(pl.UTF-8): Narzędzia ASN.1 dla Pythona
Name: python-%{module}
-Version: 0.1.9
-Release: 3
+Version: 0.2.3
+Release: 1
License: BSD-like
Group: Libraries/Python
#Source0Download: https://pypi.python.org/simple/pyasn1/
-Source0: https://pypi.python.org/packages/source/p/pyasn1/%{module}-%{version}.tar.gz
-# Source0-md5: f00a02a631d4016818659d1cc38d229a
+Source0: https://files.pythonhosted.org/packages/source/p/pyasn1/%{module}-%{version}.tar.gz
+# Source0-md5: 79f98135071c8dd5c37b6c923c51be45
+Patch0: %{name}-missing.patch
URL: http://pyasn1.sourceforge.net/
-BuildRequires: rpmbuild(macros) >= 1.710
+BuildRequires: rpmbuild(macros) >= 1.714
%if %{with python2}
BuildRequires: python >= 1:2.5
BuildRequires: python-modules >= 1:2.5
@@ -32,7 +34,11 @@ BuildRequires: python3 >= 1:3.3
BuildRequires: python3-modules >= 1:3.3
%endif
BuildRequires: rpm-pythonprov
-%pyrequires_eq python-modules
+%if %{with apidocs}
+BuildRequires: python3-sphinx_rtd_theme
+BuildRequires: sphinx-pdg
+%endif
+Requires: python-modules >= 1:2.5
Obsoletes: python-pyasn1-examples
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -51,6 +57,7 @@ Python.
Summary: ASN.1 tools for Python
Summary(pl.UTF-8): Narzędzia ASN.1 dla Pythona
Group: Libraries/Python
+Requires: python3-modules >= 1:3.3
%description -n python3-%{module}
This project is dedicated to implementation of ASN.1 types (concrete
@@ -62,8 +69,20 @@ Celem tego projektu jest implementacja typów (konkretnej składni) i
kodowania (składni przesyłania) ASN.1 dla środowiska programowania
Python.
+%package apidocs
+Summary: Documentation for ASN.1 Python module
+Summary(pl.UTF-8): Dokumentacja do modułu Pythona ASN.1
+Group: Documentation
+
+%description apidocs
+Documentation for ASN.1 Python module.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja do modułu Pythona ASN.1.
+
%prep
%setup -q -n %{module}-%{version}
+%patch0 -p1
%build
%if %{with python2}
@@ -73,6 +92,11 @@ Python.
%py3_build %{?with_tests:test}
%endif
+%if %{with apidocs}
+PYTHONPATH=$(pwd)/build-py3/lib \
+%{__make} -C doc html
+%endif
+
%install
rm -rf $RPM_BUILD_ROOT
@@ -92,7 +116,7 @@ rm -rf $RPM_BUILD_ROOT
%if %{with python2}
%files
%defattr(644,root,root,755)
-%doc CHANGES.txt LICENSE.txt README.txt THANKS.txt TODO.txt doc/*.html
+%doc CHANGES.rst LICENSE.rst README.md THANKS.txt TODO.rst
%{py_sitescriptdir}/%{module}
%{py_sitescriptdir}/pyasn1-%{version}-py*.egg-info
%endif
@@ -100,7 +124,13 @@ rm -rf $RPM_BUILD_ROOT
%if %{with python3}
%files -n python3-%{module}
%defattr(644,root,root,755)
-%doc CHANGES.txt LICENSE.txt README.txt THANKS.txt TODO.txt doc/*.html
+%doc CHANGES.rst LICENSE.rst README.md THANKS.txt TODO.rst
%{py3_sitescriptdir}/%{module}
%{py3_sitescriptdir}/pyasn1-%{version}-py*.egg-info
%endif
+
+%if %{with apidocs}
+%files apidocs
+%defattr(644,root,root,755)
+%doc doc/build/html/{_static,docs,*.html,*.js}
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-pyasn1.git/commitdiff/80c47c791109432a4e9a78906985aab6d0cd1218
More information about the pld-cvs-commit
mailing list