fix for python36 shebang replacements [release 2.2.1-2mamba;Thu Dec 12 2019]

This commit is contained in:
Silvan Calarco 2024-01-05 19:06:17 +01:00
parent 72b613d43d
commit ceb7000b8e

View File

@ -1,6 +1,6 @@
Name: virt-manager
Version: 2.2.1
Release: 1mamba
Release: 2mamba
Summary: Virtual Machine Manager
Group: Applications/Emulators
Vendor: openmamba
@ -53,13 +53,6 @@ An embedded VNC client viewer presents a full graphical console to the guest dom
#%patch1 -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
CFLAGS="%{optflags}" %{__python36} setup.py build
@ -71,6 +64,13 @@ CFLAGS="%{optflags}" %{__python36} setup.py build
--install-headers=%{_includedir}/python%{python36_version} \
--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}
#rm -fr %{buildroot}/var/scrollkeeper
@ -135,6 +135,9 @@ exit 0
# ChangeLog NEWS README TODO
%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
- automatic version update by autodist