[projects/template-specs] - use the same module name for py2/py3 examples
qboosh
qboosh at pld-linux.org
Mon Jul 16 18:10:39 CEST 2018
commit 3dbbeb1f27fa36b9e792a627a75a095c263d9e4e
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Mon Jul 16 18:12:34 2018 +0200
- use the same module name for py2/py3 examples
python.spec | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/python.spec b/python.spec
index 4c39442..cb2fbd7 100644
--- a/python.spec
+++ b/python.spec
@@ -66,7 +66,7 @@ Summary(pl.UTF-8): Dokumentacja API modułu Pythona %{module}
Group: Documentation
%description apidocs
-API documentation for Pythona %{module} module.
+API documentation for Python %{module} module.
%description apidocs -l pl.UTF-8
Dokumentacja API modułu Pythona %{module}.
@@ -113,9 +113,9 @@ rm -rf $RPM_BUILD_ROOT
# in case there are examples provided
%if %{with python2}
-install -d $RPM_BUILD_ROOT%{_examplesdir}/python-%{module}-%{version}
-cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/python-%{module}-%{version}
-find $RPM_BUILD_ROOT%{_examplesdir}/python-%{module}-%{version} -name '*.py' \
+install -d $RPM_BUILD_ROOT%{_examplesdir}/python-%{pypi_name}-%{version}
+cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/python-%{pypi_name}-%{version}
+find $RPM_BUILD_ROOT%{_examplesdir}/python-%{pypi_name}-%{version} -name '*.py' \
| xargs sed -i '1s|^#!.*python\b|#!%{__python}|'
%endif
%if %{with python3}
@@ -134,7 +134,7 @@ rm -rf $RPM_BUILD_ROOT
%doc AUTHORS CREDITS ChangeLog NEWS README THANKS TODO
%{py_sitescriptdir}/%{module}
%{py_sitescriptdir}/%{egg_name}-%{version}-py*.egg-info
-%{_examplesdir}/python-%{module}-%{version}
+%{_examplesdir}/python-%{pypi_name}-%{version}
%endif
%if %{with python3}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/projects/template-specs.git/commitdiff/3dbbeb1f27fa36b9e792a627a75a095c263d9e4e
More information about the pld-cvs-commit
mailing list