]>
Commit | Line | Data |
---|---|---|
ea70cf2b JR |
1 | # |
2 | # Conditional build: | |
cf859d29 | 3 | %bcond_without spice # SPICE support |
e40546e4 | 4 | %bcond_without ovirt # oVirt support |
ea70cf2b JR |
5 | # |
6 | Summary: Virtual Machine Viewer | |
cf859d29 | 7 | Summary(pl.UTF-8): Przeglądarka maszyny wirtualnej |
ea70cf2b | 8 | Name: virt-viewer |
7112ba6b JP |
9 | Version: 6.0 |
10 | Release: 1 | |
ea70cf2b JR |
11 | License: GPL v2+ |
12 | Group: X11/Applications/Networking | |
7112ba6b JP |
13 | Source0: https://virt-manager.org/download/sources/virt-viewer/%{name}-%{version}.tar.gz |
14 | # Source0-md5: 4ed1a71013fa32326861b4710e231ab4 | |
15 | Patch0: remove-spice-controller.patch | |
ea70cf2b | 16 | URL: http://virt-manager.org/ |
cf859d29 | 17 | BuildRequires: autoconf >= 2.50 |
7dbcbbfc | 18 | BuildRequires: automake |
33221185 | 19 | BuildRequires: gettext-tools >= 0.14.1 |
7112ba6b JP |
20 | BuildRequires: glib2-devel >= 1:2.38.0 |
21 | BuildRequires: gtk+3-devel >= 3.12 | |
22 | BuildRequires: gtk3-vnc-devel >= 0.4.3 | |
7dbcbbfc | 23 | BuildRequires: intltool >= 0.35.0 |
ca82e499 | 24 | %{?with_ovirt:BuildRequires: libgovirt-devel >= 0.3.2} |
d89521ba JB |
25 | BuildRequires: libtool >= 2:2 |
26 | BuildRequires: libvirt-devel >= 0.10.0 | |
7112ba6b | 27 | BuildRequires: libvirt-glib-devel >= 0.1.8 |
cf859d29 JB |
28 | BuildRequires: libxml2-devel >= 1:2.6.0 |
29 | BuildRequires: perl-tools-pod | |
e8280816 | 30 | BuildRequires: rpmbuild(macros) >= 1.596 |
cf859d29 | 31 | BuildRequires: sed >= 4.0 |
7112ba6b JP |
32 | %{?with_spice:BuildRequires: spice-gtk-devel >= 0.33} |
33 | BuildRequires: spice-protocol >= 0.12.7 | |
7dbcbbfc | 34 | Requires(post,postun): gtk-update-icon-cache |
e8280816 | 35 | Requires(post,postun): shared-mime-info |
7112ba6b JP |
36 | Requires: glib2 >= 1:2.38.0 |
37 | Requires: gtk+3 >= 3.12 | |
38 | Requires: gtk3-vnc >= 0.4.3 | |
7dbcbbfc | 39 | Requires: hicolor-icon-theme |
7112ba6b | 40 | %{?with_ovirt:Requires: libgovirt >= 0.3.2} |
d89521ba | 41 | Requires: libvirt >= 0.10.0 |
7112ba6b | 42 | Requires: libvirt-glib >= 0.1.8 |
cf859d29 | 43 | Requires: libxml2 >= 1:2.6.0 |
7112ba6b | 44 | %{?with_spice:Requires: spice-gtk >= 0.33} |
ea70cf2b | 45 | Suggests: gnome-keyring >= 0.4.9 |
7112ba6b | 46 | Suggests: openssh-clients |
f97258db JB |
47 | # let it obsolete withdrawn spice client from spice-space package |
48 | %{?with_spice:Obsoletes: spice-client} | |
c6cb2ee2 | 49 | Obsoletes: virt-viewer-plugin |
cf859d29 | 50 | ExclusiveArch: %{ix86} %{x8664} ia64 |
ea70cf2b JR |
51 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
52 | ||
53 | %description | |
54 | Virtual Machine Viewer provides a graphical console client for | |
55 | connecting to virtual machines. It uses the GTK-VNC or SPICE-GTK | |
56 | widgets to provide the display, and libvirt for looking up VNC/SPICE | |
57 | server details. | |
58 | ||
cf859d29 JB |
59 | %description -l pl.UTF-8 |
60 | Virtual Machine Viewer udostępnia klienta graficznej konsoli do | |
61 | łączenia z maszynami wirtualnymi. Wykorzystuje widgety GTK-VNC lub | |
62 | SPICE-GTK do zapewnienia obrazu oraz libvirt do odczytu szczegółów | |
63 | serwera 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 | |
86 | rm -rf $RPM_BUILD_ROOT | |
87 | ||
88 | %{__make} install \ | |
c6cb2ee2 | 89 | DESTDIR=$RPM_BUILD_ROOT |
ea70cf2b JR |
90 | |
91 | %find_lang %{name} | |
92 | ||
93 | %clean | |
94 | rm -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* |