X-Git-Url: https://git.tld-linux.org/?p=packages%2Fvirt-manager.git;a=blobdiff_plain;f=virt-manager.spec;h=329a185453a866855dd1ba181b1679dd3584990c;hp=14f156334b14dc69cf7992177a68362dfd4741f5;hb=ff6378e5cee9e0d40230f3e23cc462159ffbf565;hpb=55a1257df568371268b63c341f5e072d47135529 diff --git a/virt-manager.spec b/virt-manager.spec index 14f1563..329a185 100644 --- a/virt-manager.spec +++ b/virt-manager.spec @@ -1,34 +1,33 @@ Summary: Virtual Machine Manager Summary(pl.UTF-8): Zarządca maszyn wirtualnych Name: virt-manager -Version: 1.1.0 +Version: 1.5.1 Release: 1 Epoch: 1 License: GPL v2+ Group: Applications/Emulators -Source0: https://fedorahosted.org/released/virt-manager/%{name}-%{version}.tar.gz -# Source0-md5: baf6eaa88b02bdd7a3c2fdd293eeb6ac +Source0: https://virt-manager.org/download/sources/virt-manager/%{name}-%{version}.tar.gz +# Source0-md5: 32a929fd91fca9767730abaefb94661d URL: http://virt-manager.org/ BuildRequires: gettext-devel >= 0.14.1 BuildRequires: glib2-devel +BuildRequires: gtk-update-icon-cache BuildRequires: intltool >= 0.35.0 BuildRequires: perl-tools-pod -BuildRequires: python-devel >= 1:2.6 +BuildRequires: python-devel >= 1:2.7 BuildRequires: rpmbuild(macros) >= 1.592 Requires(post,postun): glib2 Requires(post,postun): gtk-update-icon-cache -Requires: gtk+3 >= 3.0 +Requires: gtk+3 >= 3.14 Requires: gtk3-vnc >= 0.4.3 Requires: hicolor-icon-theme -Requires: libosinfo +Requires: libosinfo >= 0.2.10 Requires: libvirt-glib Requires: python-dbus >= 0.84.0 -Requires: python-gnome-desktop-librsvg >= 2.32.0 -Requires: python-gnome-gconf >= 2.28.1 Requires: python-ipaddr Requires: python-libvirt >= 0.9.6 -Requires: python-libvirt-glib -Requires: python-pygobject3 +Requires: python-pygobject3 >= 3.14 +Requires: python-requests Requires: python-virtinst = %{epoch}:%{version}-%{release} Requires: spice-gtk Requires: vte >= 0.34 @@ -84,6 +83,7 @@ virt-clone (klonujący istniejącą maszynę wirtualną). %build %{__python} setup.py configure \ + --prefix=%{_prefix} \ --libvirt-package-names=libvirt \ --kvm-package-names=qemu-lvm @@ -101,6 +101,13 @@ rm -rf $RPM_BUILD_ROOT # requires patching(?) #%%py_postclean %{_datadir}/%{name} +# Replace '#!/usr/bin/env python2' with '#!/usr/bin/python2' +# The format is ideal for upstream, but not a distro. See: +# https://fedoraproject.org/wiki/Features/SystemPythonExecutablesUseSystemPython +for f in $(find $RPM_BUILD_ROOT -type f -executable -print); do + sed -i "1 s|^#!/usr/bin/env python2|#!%{__python}|" $f || : +done + %find_lang %{name} %clean @@ -118,7 +125,7 @@ fi %files %defattr(644,root,root,755) -%doc NEWS README +%doc NEWS.md README.md %attr(755,root,root) %{_bindir}/virt-manager %{_datadir}/%{name}/icons %{_datadir}/%{name}/ui @@ -135,7 +142,6 @@ fi %defattr(644,root,root,755) %attr(755,root,root) %{_bindir}/virt-clone %attr(755,root,root) %{_bindir}/virt-convert -#%attr(755,root,root) %{_bindir}/virt-image %attr(755,root,root) %{_bindir}/virt-install %attr(755,root,root) %{_bindir}/virt-xml %dir %{_datadir}/%{name} @@ -148,12 +154,9 @@ fi %{_datadir}/%{name}/virtinst/*.py* %attr(755,root,root) %{_datadir}/%{name}/virt-clone %attr(755,root,root) %{_datadir}/%{name}/virt-convert -#%attr(755,root,root) %{_datadir}/%{name}/virt-image %attr(755,root,root) %{_datadir}/%{name}/virt-install %attr(755,root,root) %{_datadir}/%{name}/virt-xml %{_mandir}/man1/virt-clone.1* %{_mandir}/man1/virt-convert.1* -#%{_mandir}/man1/virt-image.1* %{_mandir}/man1/virt-install.1* %{_mandir}/man1/virt-xml.1* -#%{_mandir}/man5/virt-image.5*