]> git.pld-linux.org Git - packages/virt-viewer.git/blame - virt-viewer.spec
up to 6.0
[packages/virt-viewer.git] / virt-viewer.spec
CommitLineData
ea70cf2b
JR
1#
2# Conditional build:
cf859d29 3%bcond_without spice # SPICE support
e40546e4 4%bcond_without ovirt # oVirt support
ea70cf2b
JR
5#
6Summary: Virtual Machine Viewer
cf859d29 7Summary(pl.UTF-8): Przeglądarka maszyny wirtualnej
ea70cf2b 8Name: virt-viewer
7112ba6b
JP
9Version: 6.0
10Release: 1
ea70cf2b
JR
11License: GPL v2+
12Group: X11/Applications/Networking
7112ba6b
JP
13Source0: https://virt-manager.org/download/sources/virt-viewer/%{name}-%{version}.tar.gz
14# Source0-md5: 4ed1a71013fa32326861b4710e231ab4
15Patch0: remove-spice-controller.patch
ea70cf2b 16URL: http://virt-manager.org/
cf859d29 17BuildRequires: autoconf >= 2.50
7dbcbbfc 18BuildRequires: automake
33221185 19BuildRequires: gettext-tools >= 0.14.1
7112ba6b
JP
20BuildRequires: glib2-devel >= 1:2.38.0
21BuildRequires: gtk+3-devel >= 3.12
22BuildRequires: gtk3-vnc-devel >= 0.4.3
7dbcbbfc 23BuildRequires: intltool >= 0.35.0
ca82e499 24%{?with_ovirt:BuildRequires: libgovirt-devel >= 0.3.2}
d89521ba
JB
25BuildRequires: libtool >= 2:2
26BuildRequires: libvirt-devel >= 0.10.0
7112ba6b 27BuildRequires: libvirt-glib-devel >= 0.1.8
cf859d29
JB
28BuildRequires: libxml2-devel >= 1:2.6.0
29BuildRequires: perl-tools-pod
e8280816 30BuildRequires: rpmbuild(macros) >= 1.596
cf859d29 31BuildRequires: sed >= 4.0
7112ba6b
JP
32%{?with_spice:BuildRequires: spice-gtk-devel >= 0.33}
33BuildRequires: spice-protocol >= 0.12.7
7dbcbbfc 34Requires(post,postun): gtk-update-icon-cache
e8280816 35Requires(post,postun): shared-mime-info
7112ba6b
JP
36Requires: glib2 >= 1:2.38.0
37Requires: gtk+3 >= 3.12
38Requires: gtk3-vnc >= 0.4.3
7dbcbbfc 39Requires: hicolor-icon-theme
7112ba6b 40%{?with_ovirt:Requires: libgovirt >= 0.3.2}
d89521ba 41Requires: libvirt >= 0.10.0
7112ba6b 42Requires: libvirt-glib >= 0.1.8
cf859d29 43Requires: libxml2 >= 1:2.6.0
7112ba6b 44%{?with_spice:Requires: spice-gtk >= 0.33}
ea70cf2b 45Suggests: gnome-keyring >= 0.4.9
7112ba6b 46Suggests: openssh-clients
f97258db
JB
47# let it obsolete withdrawn spice client from spice-space package
48%{?with_spice:Obsoletes: spice-client}
c6cb2ee2 49Obsoletes: virt-viewer-plugin
cf859d29 50ExclusiveArch: %{ix86} %{x8664} ia64
ea70cf2b
JR
51BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
52
53%description
54Virtual Machine Viewer provides a graphical console client for
55connecting to virtual machines. It uses the GTK-VNC or SPICE-GTK
56widgets to provide the display, and libvirt for looking up VNC/SPICE
57server details.
58
cf859d29
JB
59%description -l pl.UTF-8
60Virtual Machine Viewer udostępnia klienta graficznej konsoli do
61łączenia z maszynami wirtualnymi. Wykorzystuje widgety GTK-VNC lub
62SPICE-GTK do zapewnienia obrazu oraz libvirt do odczytu szczegółów
63serwera VNC/SPICE.
ea70cf2b 64
ea70cf2b
JR
65%prep
66%setup -q
7112ba6b 67%patch0 -p1
ea70cf2b 68
7dbcbbfc
JR
69%{__sed} -i -e 's|PWD|shell pwd|g' icons/*/Makefile.am
70
ea70cf2b 71%build
7dbcbbfc
JR
72%{__libtoolize}
73%{__aclocal}
74%{__autoconf}
cf859d29 75%{__autoheader}
7dbcbbfc 76%{__automake}
ea70cf2b 77%configure \
cf859d29 78 --disable-silent-rules \
e8280816 79 --disable-update-mimedb \
ea70cf2b 80 %{__with_without spice spice-gtk} \
c6cb2ee2 81 %{!?with_ovirt:--without-ovirt}
ea70cf2b
JR
82
83%{__make}
84
85%install
86rm -rf $RPM_BUILD_ROOT
87
88%{__make} install \
c6cb2ee2 89 DESTDIR=$RPM_BUILD_ROOT
ea70cf2b
JR
90
91%find_lang %{name}
92
93%clean
94rm -rf $RPM_BUILD_ROOT
95
7dbcbbfc
JR
96%post
97%update_icon_cache hicolor
e8280816 98%update_mime_database
7dbcbbfc
JR
99
100%postun
101%update_icon_cache hicolor
e8280816 102%update_mime_database
7dbcbbfc 103
ea70cf2b
JR
104%files -f %{name}.lang
105%defattr(644,root,root,755)
7112ba6b 106%doc AUTHORS ChangeLog NEWS README.md
7dbcbbfc
JR
107%attr(755,root,root) %{_bindir}/virt-viewer
108%attr(755,root,root) %{_bindir}/remote-viewer
7112ba6b 109%{_datadir}/appdata/remote-viewer.appdata.xml
c6cb2ee2 110%{_datadir}/mime/packages/virt-viewer-mime.xml
8f932bad 111%{_desktopdir}/remote-viewer.desktop
7dbcbbfc 112%{_iconsdir}/hicolor/*/apps/virt-viewer.png
ca82e499 113%{_iconsdir}/hicolor/24x24/devices/virt-viewer-usb.png
e40546e4 114%{_iconsdir}/hicolor/24x24/devices/virt-viewer-usb.svg
7dbcbbfc
JR
115%{_mandir}/man1/virt-viewer.1*
116%{_mandir}/man1/remote-viewer.1*
This page took 1.055173 seconds and 4 git commands to generate.