]> git.pld-linux.org Git - projects/template-specs.git/commitdiff
python: python3 examples handling fixes
authorJacek Konieczny <j.konieczny@eggsoft.pl>
Tue, 18 Feb 2014 09:51:00 +0000 (10:51 +0100)
committerJacek Konieczny <j.konieczny@eggsoft.pl>
Tue, 18 Feb 2014 09:51:00 +0000 (10:51 +0100)
python.spec

index 4892047049f33a2bef26452b48796a87920f4daa..ddc9dd6a2f0e64efd85a386cde01c2ce751a108a 100644 (file)
@@ -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}
This page took 0.20393 seconds and 4 git commands to generate.