[projects/template-specs] python: python3 examples handling fixes

jajcus jajcus at pld-linux.org
Tue Feb 18 10:51:20 CET 2014


commit f33c573bb9f560ff608b62384e6107f1de8f8cb2
Author: Jacek Konieczny <j.konieczny at eggsoft.pl>
Date:   Tue Feb 18 10:51:00 2014 +0100

    python: python3 examples handling fixes

 python.spec | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/python.spec b/python.spec
index 4892047..ddc9dd6 100644
--- a/python.spec
+++ b/python.spec
@@ -114,9 +114,9 @@ install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 %endif
 %if %{with python3}
-install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
-cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
-find $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} -name '*.py' \
+install -d $RPM_BUILD_ROOT%{_examplesdir}/python3-%{module}-%{version}
+cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/python3-%{module}-%{version}
+find $RPM_BUILD_ROOT%{_examplesdir}/python3-%{module}-%{version} -name '*.py' \
 	| xargs sed -i '1s|^#!.*python\b|#!%{__python3}|'
 %endif
 
@@ -149,7 +149,7 @@ rm -rf $RPM_BUILD_ROOT
 %doc AUTHORS CHANGES LICENSE
 %{py3_sitescriptdir}/%{module}
 %{py3_sitescriptdir}/%{module}-%{version}-py*.egg-info
-%{_examplesdir}/%{python3}-%{module}-%{version}
+%{_examplesdir}/python3-%{module}-%{version}
 %endif
 
 %if %{with doc}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/template-specs.git/commitdiff/f33c573bb9f560ff608b62384e6107f1de8f8cb2



More information about the pld-cvs-commit mailing list