rebuilt with python3 [release 3.1.0-2mamba;Fri Nov 27 2020]

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

View File

@ -1,5 +1,5 @@
Name: virt-manager Name: virt-manager
Version: 2.2.1 Version: 3.1.0
Release: 2mamba Release: 2mamba
Summary: Virtual Machine Manager Summary: Virtual Machine Manager
Group: Applications/Emulators Group: Applications/Emulators
@ -15,16 +15,17 @@ License: GPL
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
## AUTOBUILDREQ-END ## AUTOBUILDREQ-END
BuildRequires: libvirt-glib-devel >= 1.0.0-1mamba BuildRequires: libvirt-glib-devel >= 1.0.0-1mamba
BuildRequires: python-docutils-py3
Conflicts: python-virtinst Conflicts: python-virtinst
Requires: libvirt Requires: libvirt
Requires: python-libvirt-py36 Requires: python-libvirt-py3
Requires: python-libxml2-py36 Requires: python-libxml2-py3
Requires: python-urllib3-py36 Requires: python-urllib3-py3
Requires: python-chardet-py36 Requires: python-chardet-py3
Requires: python-certifi-py36 Requires: python-certifi-py3
Requires: python-idna-py36 Requires: python-idna-py3
Requires: python-requests-py36 Requires: python-requests-py3
Requires: pygobject-py36 Requires: pygobject-py3
#Requires: python-urlgrabber #Requires: python-urlgrabber
Requires: bridge-utils Requires: bridge-utils
Requires: python-gnome Requires: python-gnome
@ -54,21 +55,21 @@ An embedded VNC client viewer presents a full graphical console to the guest dom
#%patch2 -p1 #%patch2 -p1
%build %build
CFLAGS="%{optflags}" %{__python36} setup.py build CFLAGS="%{optflags}" %{__python3} setup.py build
%install %install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%{__python36} setup.py \ %{__python3} setup.py \
--no-update-icon-cache --no-compile-schemas install \ --no-update-icon-cache --no-compile-schemas install \
--root="%{buildroot}" \ --root="%{buildroot}" \
--install-headers=%{_includedir}/python%{python36_version} \ --install-headers=%{_includedir}/python%{python3_version} \
--install-lib=%{python36_sitearch} --install-lib=%{python3_sitearch}
# Replace '#!/usr/bin/env python3' with '#!/usr/bin/python3' # Replace '#!/usr/bin/env python3' with '#!/usr/bin/python3'
# The format is ideal for upstream, but not a distro. See: # The format is ideal for upstream, but not a distro. See:
# https://fedoraproject.org/wiki/Features/SystemPythonExecutablesUseSystemPython # https://fedoraproject.org/wiki/Features/SystemPythonExecutablesUseSystemPython
for f in $(find %{buildroot} -type f -executable -print); do for f in $(find %{buildroot} -type f -executable -print); do
sed -i "1 s|^#\!/usr/bin/env python3|#\!%{__python36}|" $f || : sed -i "1 s|^#\!/usr/bin/env python3|#\!%{__python3}|" $f || :
done done
%find_lang %{name} %find_lang %{name}
@ -95,39 +96,29 @@ exit 0
%files -f %{name}.lang %files -f %{name}.lang
%defattr(-,root,root) %defattr(-,root,root)
%{_bindir}/virt-clone %{_bindir}/virt-clone
%{_bindir}/virt-convert #%{_bindir}/virt-convert
#%{_bindir}/virt-image
%{_bindir}/virt-install %{_bindir}/virt-install
%{_bindir}/virt-manager %{_bindir}/virt-manager
%{_bindir}/virt-xml %{_bindir}/virt-xml
%{_datadir}/applications/virt-manager.desktop
%{_datadir}/metainfo/virt-manager.appdata.xml
%{_datadir}/bash-completion/completions/virt-* %{_datadir}/bash-completion/completions/virt-*
%{_datadir}/glib-2.0/schemas/org.virt-manager.virt-manager.gschema.xml %{_datadir}/glib-2.0/schemas/org.virt-manager.virt-manager.gschema.xml
%dir %{_datadir}/virt-manager %dir %{_datadir}/virt-manager
%dir %{_datadir}/virt-manager/ui %dir %{_datadir}/virt-manager/ui
%{_datadir}/virt-manager/ui/*.ui %{_datadir}/virt-manager/ui/*.ui
%{_datadir}/virt-manager/virt-clone
%{_datadir}/virt-manager/virt-convert
#%{_datadir}/virt-manager/virt-image
%{_datadir}/virt-manager/virtinst
%{_datadir}/virt-manager/virt-install
%{_datadir}/virt-manager/virt-manager
%{_datadir}/virt-manager/virt-xml
%dir %{_datadir}/virt-manager/virtManager %dir %{_datadir}/virt-manager/virtManager
%{_datadir}/virt-manager/virtManager/* %{_datadir}/virt-manager/virtManager/*
%dir %{_datadir}/virt-manager/virtconv #%dir %{_datadir}/virt-manager/virtconv
%{_datadir}/virt-manager/virtconv/*.py #%{_datadir}/virt-manager/virtconv/*.py
%dir %{_datadir}/virt-manager/virtinst %dir %{_datadir}/virt-manager/virtinst
%{_datadir}/virt-manager/virtinst/*.py %{_datadir}/virt-manager/virtinst/*
%dir %{_datadir}/%{name}/virtManager
%{_datadir}/%{name}/virtManager/*.py
%{_datadir}/appdata/virt-manager.appdata.xml
%{_datadir}/applications/virt-manager.desktop
%{_datadir}/icons/hicolor/*/apps/virt-manager.png %{_datadir}/icons/hicolor/*/apps/virt-manager.png
%dir %{_datadir}/virt-manager/icons %dir %{_datadir}/virt-manager/icons
%dir %{_datadir}/virt-manager/icons/hicolor %dir %{_datadir}/virt-manager/icons/hicolor
%{_datadir}/virt-manager/icons/hicolor/* %{_datadir}/virt-manager/icons/hicolor/*
%{_mandir}/man1/virt-clone.1* %{_mandir}/man1/virt-clone.1*
%{_mandir}/man1/virt-convert.1* #%{_mandir}/man1/virt-convert.1*
%{_mandir}/man1/virt-install.1* %{_mandir}/man1/virt-install.1*
%{_mandir}/man1/virt-manager.1* %{_mandir}/man1/virt-manager.1*
%{_mandir}/man1/virt-xml.1* %{_mandir}/man1/virt-xml.1*
@ -135,6 +126,12 @@ exit 0
# ChangeLog NEWS README TODO # ChangeLog NEWS README TODO
%changelog %changelog
* Fri Nov 27 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 3.1.0-2mamba
- rebuilt with python3
* Tue Oct 20 2020 Automatic Build System <autodist@mambasoft.it> 3.1.0-1mamba
- automatic version update by autodist
* Thu Dec 12 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 2.2.1-2mamba * Thu Dec 12 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 2.2.1-2mamba
- fix for python36 shebang replacements - fix for python36 shebang replacements