[packages/python-xlrd] fix runxlrd shebang if building with both python2 and python3; rel 5

atler atler at pld-linux.org
Tue Sep 13 18:10:40 CEST 2022


commit 690baa927c539b1a7ab3fdf7f9268d988727ac4f
Author: Jan Palus <atler at pld-linux.org>
Date:   Tue Sep 13 18:10:13 2022 +0200

    fix runxlrd shebang if building with both python2 and python3; rel 5

 python-xlrd.spec | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/python-xlrd.spec b/python-xlrd.spec
index bacbd6d..5d512f1 100644
--- a/python-xlrd.spec
+++ b/python-xlrd.spec
@@ -8,7 +8,7 @@ Summary:	Python interface to extracting data from Excel datasheets
 Summary(pl.UTF-8):	Pythonowy interfejs do odczytywania danych z arkuszy Excela
 Name:		python-%{module}
 Version:	2.0.1
-Release:	4
+Release:	5
 License:	BSD-style
 Group:		Development/Languages/Python
 Source0:	https://files.pythonhosted.org/packages/source/x/xlrd/%{module}-%{version}.tar.gz
@@ -63,7 +63,7 @@ rm -rf $RPM_BUILD_ROOT
 %if %{with python2}
 %py_install
 %py_postclean
-%{__sed} -i -e 's|/usr/bin/env python|%{__python}|' $RPM_BUILD_ROOT%{_bindir}/runxlrd.py
+%{!?with_python3:%{__sed} -i -e 's|/usr/bin/env python|%{__python}|' $RPM_BUILD_ROOT%{_bindir}/runxlrd.py}
 %endif
 
 %if %{with python3}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-xlrd.git/commitdiff/690baa927c539b1a7ab3fdf7f9268d988727ac4f



More information about the pld-cvs-commit mailing list