fix for python36 shebang replacements [release 2.2.1-2mamba;Thu Dec 12 2019]
This commit is contained in:
parent
72b613d43d
commit
ceb7000b8e
@ -1,6 +1,6 @@
|
|||||||
Name: virt-manager
|
Name: virt-manager
|
||||||
Version: 2.2.1
|
Version: 2.2.1
|
||||||
Release: 1mamba
|
Release: 2mamba
|
||||||
Summary: Virtual Machine Manager
|
Summary: Virtual Machine Manager
|
||||||
Group: Applications/Emulators
|
Group: Applications/Emulators
|
||||||
Vendor: openmamba
|
Vendor: openmamba
|
||||||
@ -53,13 +53,6 @@ An embedded VNC client viewer presents a full graphical console to the guest dom
|
|||||||
#%patch1 -p1
|
#%patch1 -p1
|
||||||
#%patch2 -p1
|
#%patch2 -p1
|
||||||
|
|
||||||
# Replace '#!/usr/bin/env python3' with '#!/usr/bin/python3'
|
|
||||||
# The format is ideal for upstream, but not a distro. See:
|
|
||||||
# https://fedoraproject.org/wiki/Features/SystemPythonExecutablesUseSystemPython
|
|
||||||
for f in $(find %{buildroot} -type f -executable -print); do
|
|
||||||
sed -i "1 s|^#!/usr/bin/env python3|#!%{__python36}|" $f || :
|
|
||||||
done
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
CFLAGS="%{optflags}" %{__python36} setup.py build
|
CFLAGS="%{optflags}" %{__python36} setup.py build
|
||||||
|
|
||||||
@ -71,6 +64,13 @@ CFLAGS="%{optflags}" %{__python36} setup.py build
|
|||||||
--install-headers=%{_includedir}/python%{python36_version} \
|
--install-headers=%{_includedir}/python%{python36_version} \
|
||||||
--install-lib=%{python36_sitearch}
|
--install-lib=%{python36_sitearch}
|
||||||
|
|
||||||
|
# Replace '#!/usr/bin/env python3' with '#!/usr/bin/python3'
|
||||||
|
# The format is ideal for upstream, but not a distro. See:
|
||||||
|
# https://fedoraproject.org/wiki/Features/SystemPythonExecutablesUseSystemPython
|
||||||
|
for f in $(find %{buildroot} -type f -executable -print); do
|
||||||
|
sed -i "1 s|^#\!/usr/bin/env python3|#\!%{__python36}|" $f || :
|
||||||
|
done
|
||||||
|
|
||||||
%find_lang %{name}
|
%find_lang %{name}
|
||||||
|
|
||||||
#rm -fr %{buildroot}/var/scrollkeeper
|
#rm -fr %{buildroot}/var/scrollkeeper
|
||||||
@ -135,6 +135,9 @@ exit 0
|
|||||||
# ChangeLog NEWS README TODO
|
# ChangeLog NEWS README TODO
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Dec 12 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 2.2.1-2mamba
|
||||||
|
- fix for python36 shebang replacements
|
||||||
|
|
||||||
* Fri Oct 04 2019 Automatic Build System <autodist@mambasoft.it> 2.2.1-1mamba
|
* Fri Oct 04 2019 Automatic Build System <autodist@mambasoft.it> 2.2.1-1mamba
|
||||||
- automatic version update by autodist
|
- automatic version update by autodist
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user