[packages/python-pyOpenSSL] apidocs subpackage
glen
glen at pld-linux.org
Fri Dec 4 13:17:30 CET 2015
commit 0508ae5bc0c5a1dea3007b13dafe097f7f3f181a
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Fri Dec 4 14:17:20 2015 +0200
apidocs subpackage
python-pyOpenSSL.spec | 21 +++++++++++++++++++--
1 file changed, 19 insertions(+), 2 deletions(-)
---
diff --git a/python-pyOpenSSL.spec b/python-pyOpenSSL.spec
index 17aeb6f..31a5885 100644
--- a/python-pyOpenSSL.spec
+++ b/python-pyOpenSSL.spec
@@ -94,6 +94,17 @@ This package contains example files for pyOpenSSL Python module.
%description examples -l pl.UTF-8
Pakiet zawierający przykładowe skrypty dla modułu Pythona pyOpenSSL.
+%package apidocs
+Summary: %{module} API documentation
+Summary(pl.UTF-8): Dokumentacja API %{module}
+Group: Documentation
+
+%description apidocs
+API documentation for %{module}.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API %{module}.
+
%prep
%setup -q -n %{module}-%{version}
@@ -130,7 +141,7 @@ rm -rf $RPM_BUILD_ROOT
%if %{with python2}
%files
%defattr(644,root,root,755)
-%doc ChangeLog README.rst TODO %{?with_doc:doc/_build/html/{*.html,_static,api}}
+%doc ChangeLog README.rst TODO
%dir %{py_sitescriptdir}/OpenSSL
%{py_sitescriptdir}/OpenSSL/*.py[co]
%dir %{py_sitescriptdir}/OpenSSL/test
@@ -141,7 +152,7 @@ rm -rf $RPM_BUILD_ROOT
%if %{with python3}
%files -n python3-pyOpenSSL
%defattr(644,root,root,755)
-%doc ChangeLog README.rst TODO %{?with_doc:doc/_build/html/{*.html,_static,api}}
+%doc ChangeLog README.rst TODO
%dir %{py3_sitescriptdir}/OpenSSL
%{py3_sitescriptdir}/OpenSSL/*.py
%{py3_sitescriptdir}/OpenSSL/__pycache__
@@ -154,3 +165,9 @@ rm -rf $RPM_BUILD_ROOT
%files examples
%defattr(644,root,root,755)
%{_examplesdir}/%{name}-%{version}
+
+%if %{with doc}
+%files apidocs
+%defattr(644,root,root,755)
+%doc doc/_build/html/{*.html,_static,api}
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-pyOpenSSL.git/commitdiff/0508ae5bc0c5a1dea3007b13dafe097f7f3f181a
More information about the pld-cvs-commit
mailing list