]> TLD Linux GIT Repositories - packages/virt-manager.git/commitdiff
- updated to 1.4.0
authorMarcin Krol <hawk@tld-linux.org>
Sat, 11 Feb 2017 19:41:57 +0000 (19:41 +0000)
committerMarcin Krol <hawk@tld-linux.org>
Sat, 11 Feb 2017 19:41:57 +0000 (19:41 +0000)
virt-manager.spec

index 3434c6d37ec1011969ccced7016ce5484d308e1d..508683422fbc0fae5beec446d2c3ed285913730a 100644 (file)
@@ -1,32 +1,32 @@
 Summary:       Virtual Machine Manager
 Summary(pl.UTF-8):     Zarządca maszyn wirtualnych
 Name:          virt-manager
-Version:       1.3.2
-Release:       2
+Version:       1.4.0
+Release:       1
 Epoch:         1
 License:       GPL v2+
 Group:         Applications/Emulators
 Source0:       https://fedorahosted.org/released/virt-manager/%{name}-%{version}.tar.gz
-# Source0-md5: 6d0436939769b66457034b1ae7040b85
+# Source0-md5: 3cb69f1d108ae6d16bab2fce7ec639ea
 URL:           http://virt-manager.org/
 BuildRequires: gettext-devel >= 0.14.1
 BuildRequires: glib2-devel
 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-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
@@ -83,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
 
@@ -100,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