]> git.pld-linux.org Git - packages/python-xlrd.git/commitdiff
fix runxlrd shebang if building with both python2 and python3; rel 5 master auto/th/python-xlrd-2.0.1-5
authorJan Palus <atler@pld-linux.org>
Tue, 13 Sep 2022 16:10:13 +0000 (18:10 +0200)
committerJan Palus <atler@pld-linux.org>
Tue, 13 Sep 2022 16:10:13 +0000 (18:10 +0200)
python-xlrd.spec

index bacbd6d2aee7fc3175ba55bde5d6394ab893ce27..5d512f15cd81787df77aa6eac3c7b26b01d5cf1f 100644 (file)
@@ -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}
This page took 0.259684 seconds and 4 git commands to generate.