]> git.pld-linux.org Git - projects/template-specs.git/commitdiff
- use the same module name for py2/py3 examples
authorJakub Bogusz <qboosh@pld-linux.org>
Mon, 16 Jul 2018 16:12:34 +0000 (18:12 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Mon, 16 Jul 2018 16:12:34 +0000 (18:12 +0200)
python.spec

index 4c39442328ae8f97fd244a463253c7cbc50f4b0c..cb2fbd7c62fe15ede2ec9c55a96b94ec569a2822 100644 (file)
@@ -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}
This page took 0.229847 seconds and 4 git commands to generate.