]> git.pld-linux.org Git - packages/python-configshell-fb.git/commitdiff
fix shebang in example; rel 3 auto/th/python-configshell-fb-1.1.fb25-3
authorJan Palus <atler@pld-linux.org>
Sat, 6 Mar 2021 15:34:08 +0000 (16:34 +0100)
committerJan Palus <atler@pld-linux.org>
Sat, 6 Mar 2021 15:34:08 +0000 (16:34 +0100)
python-configshell-fb.spec

index 8677e6bf00d831317f14fccb20055c2de028f90b..513fa523778e40aafb33f3e7c400947cdb13309c 100644 (file)
@@ -8,7 +8,7 @@ Summary:        ConfigShell - Python 2 library for building configuration shells
 Summary(pl.UTF-8):     ConfigShell - biblioteka Pythona 2 do tworzenia powłok konfiguracyjnych
 Name:          python-configshell-fb
 Version:       1.1.fb25
-Release:       2
+Release:       3
 License:       Apache v2.0
 Group:         Libraries/Python
 #Source0Download: https://github.com/open-iscsi/configshell-fb/releases
@@ -84,10 +84,12 @@ rm -rf $RPM_BUILD_ROOT
 %if %{with python2}
 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+%{__sed} -i -e '1s,/usr/bin/env python,%{__python},' $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/myshell
 %endif
 %if %{with python3}
 install -d $RPM_BUILD_ROOT%{_examplesdir}/python3-configshell-fb-%{version}
 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/python3-configshell-fb-%{version}
+%{__sed} -i -e '1s,/usr/bin/env python,%{__python3},' $RPM_BUILD_ROOT%{_examplesdir}/python3-configshell-fb-%{version}/myshell
 sed -i '1s|^#!.*python\b|#!%{__python3}|' $RPM_BUILD_ROOT%{_examplesdir}/python3-configshell-fb-%{version}/*
 %endif
 
This page took 0.076559 seconds and 4 git commands to generate.