[projects/template-specs] - updated URLs, noarch apidocs
qboosh
qboosh at pld-linux.org
Fri Oct 4 16:29:37 CEST 2019
commit 8329d0fc61f49c7f9c0e300e512dc44213cc82a6
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Fri Oct 4 16:32:54 2019 +0200
- updated URLs, noarch apidocs
python-ext.spec | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/python-ext.spec b/python-ext.spec
index 0e845e2..bc9bf39 100644
--- a/python-ext.spec
+++ b/python-ext.spec
@@ -17,9 +17,11 @@ Version: _
Release: 0.1
License: - (enter GPL/GPL v2/GPL v3/LGPL/BSD/BSD-like/other license name here)
Group: Libraries/Python
-Source0: https://pypi.python.org/packages/source/M/MODULE/%{module}-%{version}.tar.gz
+# if pypi:
+#Source0Download: https://pypi.org/simple/MODULE/
+Source0: https://files.pythonhosted.org/packages/source/M/MODULE/%{module}-%{version}.tar.gz
# Source0-md5: -
-#URL: https://pypi.python.org/pypi/MODULE
+#URL: https://pypi.org/project/MODULE/
URL: -
BuildRequires: rpm-pythonprov
# for the py_build, py_install macros
@@ -56,6 +58,9 @@ Requires: python3-modules
Summary: %{module} API documentation
Summary(pl.UTF-8): Dokumentacja API %{module}
Group: Documentation
+%if "%{_rpmversion}" >= "5"
+BuildArch: noarch
+%endif
%description apidocs
API documentation for %{module}.
@@ -86,8 +91,10 @@ rm -rf _build/html/_sources
%install
rm -rf $RPM_BUILD_ROOT
+
%if %{with python2}
%py_install
+
%py_postclean
%endif
@@ -125,7 +132,7 @@ rm -rf $RPM_BUILD_ROOT
%if %{with python3}
%files -n python3-%{module}
%defattr(644,root,root,755)
-%doc AUTHORS CHANGES LICENSE
+# copy %doc from python2 package here
%dir %{py3_sitedir}/%{module}
%{py3_sitedir}/%{module}/*.py
%attr(755,root,root) %{py3_sitedir}/%{module}/*.so
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/projects/template-specs.git/commitdiff/8329d0fc61f49c7f9c0e300e512dc44213cc82a6
More information about the pld-cvs-commit
mailing list