]> git.pld-linux.org Git - packages/virt-manager.git/blobdiff - virt-manager.spec
up to 2.2.1
[packages/virt-manager.git] / virt-manager.spec
index d999d84f92589569f18851b0045fd84e93b5606e..aa7ad6e094be7c603ebb86766538ca233c95151b 100644 (file)
@@ -1,60 +1,39 @@
-# TODO
-# - pldize spec (use pld macros in post scriptes, fix deps)
-# - --disable-static instead of building and removing static libraries
-# - fix BR python 2.14
 Summary:       Virtual Machine Manager
+Summary(pl.UTF-8):     Zarządca maszyn wirtualnych
 Name:          virt-manager
-Version:       0.8.4
-Release:       0.1
+Version:       2.2.1
+Release:       1
+Epoch:         1
 License:       GPL v2+
 Group:         Applications/Emulators
-URL:           http://virt-manager.et.redhat.com/
-Source0:       http://virt-manager.et.redhat.com/download/sources/virt-manager/%{name}-%{version}.tar.gz
-BuildRequires: atk-devel
-BuildRequires: cairo-devel
-BuildRequires: gettext-devel
+Source0:       https://releases.pagure.org/virt-manager/%{name}-%{version}.tar.gz
+# Source0-md5: adb4fa436d60b62a8e18a7b3a1667d97
+URL:           http://virt-manager.org/
+BuildRequires: gettext-tools >= 0.14.1
 BuildRequires: glib2-devel
-#BuildRequires: gtk2-devel
-BuildRequires: intltool
-BuildRequires: pango-devel
+BuildRequires: intltool >= 0.35.0
 BuildRequires: perl-tools-pod
-# ???? so far 2.6 is latest python, and python has epoch 1
-BuildRequires: python-devel >= 2.14
-BuildRequires: python-pygobject-devel >= 2.14
-BuildRequires: python-pygtk-devel >= 2.14
-BuildRequires: scrollkeeper
-Requires(post):        GConf2
-Requires(pre): GConf2
-Requires(preun):       GConf2
-# These two are just the oldest version tested
-Requires:      python-gnome-gconf >= 1.99.11-7
-Requires:      python-pygtk-gtk >= 1.99.12-6
-# Absolutely require this version or newer
-Requires:      python-libvirt >= 0.4.5
-# Definitely does not work with earlier due to python API changes
-Requires:      python-dbus >= 0.61
-Requires:      python-gnome-vfs >= 2.15.4
-# Minimum we've tested with
-# Required for loading the glade UI
-# Required for our graphics which are currently SVG format
-# Required to install Xen & QEMU guests
-Requires:      python-gnome-desktop-librsvg >= 2.14
-Requires:      python-libxml2 >= 2.6.23
-Requires:      python-pygtk-glade >= 2.12
-Requires:      python-virtinst >= 0.500.1
-# Earlier vte had broken python binding module
-Requires:      vte >= 0.12.2
-# For online help
-Requires:      scrollkeeper
-# For console widget
-Requires:      python-gtk-vnc >= 0.3.4
-# For local authentication against PolicyKit
-Requires:      PolicyKit-gnome
-Requires:      python-urlgrabber
-Requires:      python-vte
+BuildRequires: python3-devel
+BuildRequires: python3-libvirt >= 0.9.6
+BuildRequires: python3-libxml2 >= 1:2.7.8
+BuildRequires: rpmbuild(macros) >= 1.592
+Requires(post,postun): glib2
+Requires(post,postun): gtk-update-icon-cache
+Requires:      gtk+3 >= 3.14
+Requires:      gtk3-vnc >= 0.4.3
+Requires:      gtksourceview4
+Requires:      hicolor-icon-theme
+Requires:      libosinfo >= 0.2.10
+Requires:      libvirt-glib >= 0.0.9
+Requires:      python3-libvirt >= 0.9.6
+Requires:      python3-pygobject3 >= 3.14
+Requires:      python3-virtinst = %{epoch}:%{version}-%{release}
+Requires:      spice-gtk
+Requires:      vte >= 0.34
 Suggests:      gnome-keyring >= 0.4.9
-Suggests:      python-gnome-desktop-keyring >= 2.15.4
-ExclusiveArch: %{ix86} x86_64 ia64
+Suggests:      python3-libguestfs >= 1.12.0
+ExclusiveArch: %{ix86} %{x8664} ia64
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 Virtual Machine Manager provides a graphical tool for administering
@@ -63,82 +42,117 @@ virtual devices, connect to a graphical or serial console, and see
 resource usage statistics for existing VMs on local or remote
 machines. Uses libvirt as the backend management API.
 
+%description -l pl.UTF-8
+Virtual Machine Manager udostępnia graficzne narzędzie do
+administrowania maszynami wirtualnymi dla środowisk KVM, Xen i QEmu.
+Pozwala uruchamiać, zatrzymywać, dodawać i usuwać urządzenia
+wirtualne, łączyć się z konsolą graficzną lub szeregową oraz oglądać
+statystyki wykorzystania zasobów istniejących maszyn wirtualnych na
+maszynach lokalnych i zdalnych. Wykorzystuje libvirt jako API do
+zarządzania.
+
+%package -n python3-virtinst
+Summary:       Python modules and utilities for installing virtual machines
+Summary(pl.UTF-8):     Moduły Pythona i narzędzia do instalowania maszyn wirtualnych
+Group:         Libraries/Python
+Requires:      python3-libvirt >= 0.9.6
+Requires:      python3-libxml2 >= 1:2.7.8
+Requires:      python3-modules
+Requires:      python3-requests
+Suggests:      python3-selinux
+Suggests:      virt-viewer >= 0.0.1
+Obsoletes:     python-virtinst < 2.0.0
+
+%description -n python3-virtinst
+virtinst is a module that helps build and install libvirt based
+virtual machines. Currently supports KVM, QEmu and Xen virtual
+machines. Package includes several command line utilities, including
+virt-install (build and install new VMs) and virt-clone (clone an
+existing virtual machine).
+
+%description -n python3-virtinst -l pl.UTF-8
+virtinst to moduł pomagający przy tworzeniu i instalowaniu maszyn
+wirtualnych opartych na libvirt. Obecnie obsługiwane są maszyny KVM,
+QEmu i Xen. Pakiet zawiera kilka działających z linii poleceń
+skryptów, w tym virt-install (tworzący i instalujący nowe VM-y) oraz
+virt-clone (klonujący istniejącą maszynę wirtualną).
+
 %prep
 %setup -q
 
 %build
-%configure
-%{__make}
+%{__python3} setup.py \
+       configure \
+       --prefix=%{_prefix}
+
+%py3_build
 
 %install
 rm -rf $RPM_BUILD_ROOT
-%{__make} install \
-       DESTDIR=$RPM_BUILD_ROOT
 
-rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/sparkline.a
-rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/sparkline.la
-%find_lang %{name}
+%py3_install
 
-rm $RPM_BUILD_ROOT%{_datadir}/%{name}/pixmaps/*.svg
+%find_lang %{name}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%pre
-if [ "$1" -gt 1 ]; then
-       export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
-       gconftool-2 --makefile-uninstall-rule \
-         %{_sysconfdir}/gconf/schemas/%{name}.schemas > /dev/null || :
-fi
-
 %post
-export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
-gconftool-2 --makefile-install-rule \
-  %{_sysconfdir}/gconf/schemas/%{name}.schemas > /dev/null || :
-
-update-desktop-database %{_desktopdir}
-
-if which scrollkeeper-update>/dev/null 2>&1; then scrollkeeper-update -q -o %{_datadir}/omf/%{name}; fi
+%glib_compile_schemas
+%update_icon_cache hicolor
 
 %postun
-update-desktop-database %{_desktopdir}
-
-if which scrollkeeper-update>/dev/null 2>&1; then scrollkeeper-update -q; fi
-
-%preun
-if [ "$1" -eq 0 ]; then
-       export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
-       gconftool-2 --makefile-uninstall-rule \
-         %{_sysconfdir}/gconf/schemas/%{name}.schemas > /dev/null || :
+if [ "$1" = "0" ]; then
+       %glib_compile_schemas
 fi
+%update_icon_cache hicolor
 
-%files -f %{name}.lang
+%files
 %defattr(644,root,root,755)
-%doc README COPYING COPYING-DOCS AUTHORS ChangeLog NEWS
-%{_sysconfdir}/gconf/schemas/%{name}.schemas
-%attr(755,root,root) %{_bindir}/%{name}
-%{_libexecdir}/%{name}-launch
-
-%dir %{_datadir}/%{name}
-%{_datadir}/%{name}/*.glade
-%dir %{_datadir}/%{name}/pixmaps
-%{_datadir}/%{name}/pixmaps/*.png
-%{_datadir}/%{name}/pixmaps/hicolor/*/action/*.png
-
-# TODO: py_comp/py_ocomp in install (see template-specs/python.spec)
-%{_datadir}/%{name}/*.py
-#%{_datadir}/%{name}/*.pyc
-#%{_datadir}/%{name}/*.pyo
-
+%doc NEWS.md README.md
+%attr(755,root,root) %{_bindir}/virt-manager
+%{_datadir}/%{name}/icons
+%{_datadir}/%{name}/ui
 %dir %{_datadir}/%{name}/virtManager
-%{_datadir}/%{name}/virtManager/*.py
-#%{_datadir}/%{name}/virtManager/*.pyc
-#%{_datadir}/%{name}/virtManager/*.pyo
-
-%dir %{_datadir}/omf/%{name}
-%{_datadir}/omf/%{name}/*.omf
-%dir %{_datadir}/gnome/help
-%{_datadir}/gnome/help/%{name}
+%{_datadir}/%{name}/virtManager/*.py*
+%dir %{_datadir}/%{name}/virtManager/details
+%{_datadir}/%{name}/virtManager/details/*.py*
+%dir %{_datadir}/%{name}/virtManager/device
+%{_datadir}/%{name}/virtManager/device/*.py*
+%dir %{_datadir}/%{name}/virtManager/lib
+%{_datadir}/%{name}/virtManager/lib/*.py*
+%dir %{_datadir}/%{name}/virtManager/object
+%{_datadir}/%{name}/virtManager/object/*.py*
+%attr(755,root,root) %{_datadir}/%{name}/virt-manager
+%{_datadir}/appdata/virt-manager.appdata.xml
+%{_datadir}/glib-2.0/schemas/org.virt-manager.virt-manager.gschema.xml
 %{_desktopdir}/%{name}.desktop
-%{_datadir}/dbus-1/services/%{name}.service
-%{_mandir}/man1/%{name}.1*
+%{_iconsdir}/hicolor/*/apps/virt-manager.png
+%{_mandir}/man1/virt-manager.1*
+
+%files -n python3-virtinst -f %{name}.lang
+%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-install
+%attr(755,root,root) %{_bindir}/virt-xml
+%dir %{_datadir}/%{name}
+%dir %{_datadir}/%{name}/virtconv
+%{_datadir}/%{name}/virtconv/*.py*
+%dir %{_datadir}/%{name}/virtinst
+%{_datadir}/%{name}/virtinst/build.cfg
+%{_datadir}/%{name}/virtinst/*.py*
+%dir %{_datadir}/%{name}/virtinst/devices
+%{_datadir}/%{name}/virtinst/devices/*.py*
+%dir %{_datadir}/%{name}/virtinst/domain
+%{_datadir}/%{name}/virtinst/domain/*.py*
+%dir %{_datadir}/%{name}/virtinst/install
+%{_datadir}/%{name}/virtinst/install/*.py*
+%attr(755,root,root) %{_datadir}/%{name}/virt-clone
+%attr(755,root,root) %{_datadir}/%{name}/virt-convert
+%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-install.1*
+%{_mandir}/man1/virt-xml.1*
This page took 0.484396 seconds and 4 git commands to generate.