[packages/python-PyPDF2] merge two conditions
glen
glen at pld-linux.org
Fri May 20 14:38:06 CEST 2016
commit eb4f9807529e45284fc916763ee41b943fe31b84
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Fri May 20 15:37:59 2016 +0300
merge two conditions
python-PyPDF2.spec | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/python-PyPDF2.spec b/python-PyPDF2.spec
index 2132919..864fe47 100644
--- a/python-PyPDF2.spec
+++ b/python-PyPDF2.spec
@@ -97,19 +97,16 @@ rm -rf $RPM_BUILD_ROOT
%if %{with python2}
%py_install
%py_postclean
-%endif
-
-%if %{with python3}
-%py3_install
-%endif
-%if %{with python2}
install -d $RPM_BUILD_ROOT%{_examplesdir}/python-%{module}-%{version}
cp -a Sample_Code/* $RPM_BUILD_ROOT%{_examplesdir}/python-%{module}-%{version}
find $RPM_BUILD_ROOT%{_examplesdir}/python-%{module}-%{version} -name '*.py' \
| xargs sed -i '1s|^#!.*python\b|#!%{__python}|'
%endif
+
%if %{with python3}
+%py3_install
+
install -d $RPM_BUILD_ROOT%{_examplesdir}/python3-%{module}-%{version}
cp -a Sample_Code/* $RPM_BUILD_ROOT%{_examplesdir}/python3-%{module}-%{version}
find $RPM_BUILD_ROOT%{_examplesdir}/python3-%{module}-%{version} -name '*.py' \
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-PyPDF2.git/commitdiff/eb4f9807529e45284fc916763ee41b943fe31b84
More information about the pld-cvs-commit
mailing list