]>
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 |
5b11b8aa | 9 | Version: 11.0 |
7112ba6b | 10 | Release: 1 |
ea70cf2b JR |
11 | License: GPL v2+ |
12 | Group: X11/Applications/Networking | |
5b11b8aa KM |
13 | Source0: https://virt-manager.org/download/sources/virt-viewer/%{name}-%{version}.tar.xz |
14 | # Source0-md5: 06b80228aaf10e614aeb8ffa4814b03a | |
0028a915 | 15 | Patch0: meson.patch |
ea70cf2b | 16 | URL: http://virt-manager.org/ |
5b11b8aa KM |
17 | BuildRequires: bash-completion-devel |
18 | BuildRequires: cmake | |
33221185 | 19 | BuildRequires: gettext-tools >= 0.14.1 |
3a787549 | 20 | BuildRequires: glib2-devel >= 1:2.40.0 |
7112ba6b JP |
21 | BuildRequires: gtk+3-devel >= 3.12 |
22 | BuildRequires: gtk3-vnc-devel >= 0.4.3 | |
3a787549 | 23 | BuildRequires: icoutils |
7dbcbbfc | 24 | BuildRequires: intltool >= 0.35.0 |
5b11b8aa | 25 | %{?with_ovirt:BuildRequires: libgovirt-devel >= 0.3.7} |
d89521ba | 26 | BuildRequires: libtool >= 2:2 |
3a787549 | 27 | BuildRequires: libvirt-devel >= 1.2.8 |
7112ba6b | 28 | BuildRequires: libvirt-glib-devel >= 0.1.8 |
cf859d29 | 29 | BuildRequires: libxml2-devel >= 1:2.6.0 |
5b11b8aa KM |
30 | BuildRequires: meson |
31 | BuildRequires: ninja | |
cf859d29 | 32 | BuildRequires: perl-tools-pod |
3a787549 JP |
33 | BuildRequires: pkgconfig |
34 | %{?with_ovirt:BuildRequires: rest-devel >= 0.8} | |
5b11b8aa | 35 | BuildRequires: rpmbuild(macros) >= 2.000 |
cf859d29 | 36 | BuildRequires: sed >= 4.0 |
cff87869 | 37 | %{?with_spice:BuildRequires: spice-gtk-devel >= 0.35} |
7112ba6b | 38 | BuildRequires: spice-protocol >= 0.12.7 |
3a787549 | 39 | BuildRequires: vte-devel |
7dbcbbfc | 40 | Requires(post,postun): gtk-update-icon-cache |
e8280816 | 41 | Requires(post,postun): shared-mime-info |
3a787549 | 42 | Requires: glib2 >= 1:2.40.0 |
7112ba6b JP |
43 | Requires: gtk+3 >= 3.12 |
44 | Requires: gtk3-vnc >= 0.4.3 | |
7dbcbbfc | 45 | Requires: hicolor-icon-theme |
3a787549 JP |
46 | %{?with_ovirt:Requires: libgovirt >= 0.3.3} |
47 | Requires: libvirt >= 1.2.8 | |
7112ba6b | 48 | Requires: libvirt-glib >= 0.1.8 |
cf859d29 | 49 | Requires: libxml2 >= 1:2.6.0 |
3a787549 | 50 | %{?with_ovirt:Requires: rest >= 0.8} |
cff87869 | 51 | %{?with_spice:Requires: spice-gtk >= 0.35} |
ea70cf2b | 52 | Suggests: gnome-keyring >= 0.4.9 |
7112ba6b | 53 | Suggests: openssh-clients |
f97258db JB |
54 | # let it obsolete withdrawn spice client from spice-space package |
55 | %{?with_spice:Obsoletes: spice-client} | |
c6cb2ee2 | 56 | Obsoletes: virt-viewer-plugin |
ea70cf2b JR |
57 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
58 | ||
59 | %description | |
60 | Virtual Machine Viewer provides a graphical console client for | |
61 | connecting to virtual machines. It uses the GTK-VNC or SPICE-GTK | |
62 | widgets to provide the display, and libvirt for looking up VNC/SPICE | |
63 | server details. | |
64 | ||
cf859d29 JB |
65 | %description -l pl.UTF-8 |
66 | Virtual Machine Viewer udostępnia klienta graficznej konsoli do | |
67 | łączenia z maszynami wirtualnymi. Wykorzystuje widgety GTK-VNC lub | |
68 | SPICE-GTK do zapewnienia obrazu oraz libvirt do odczytu szczegółów | |
69 | serwera VNC/SPICE. | |
ea70cf2b | 70 | |
60cb6813 KM |
71 | %package -n bash-completion-virt-viewer |
72 | Summary: bash-completion for virt-viewer command | |
73 | Summary(pl.UTF-8): bashowe uzupełnianie parametrów polecenia virt-viewer | |
74 | Group: Applications/Shells | |
75 | Requires: %{name} = %{version}-%{release} | |
76 | Requires: bash-completion >= 2.0 | |
60cb6813 | 77 | BuildArch: noarch |
60cb6813 KM |
78 | |
79 | %description -n bash-completion-virt-viewer | |
80 | Bash-completion for virt-viewer command. | |
81 | ||
82 | %description -n bash-completion-virt-viewer -l pl.UTF-8 | |
83 | Bashowe uzupełnianie parametrów polecenia virt-viewer. | |
84 | ||
ea70cf2b JR |
85 | %prep |
86 | %setup -q | |
0028a915 | 87 | %patch0 -p1 |
ea70cf2b JR |
88 | |
89 | %build | |
5b11b8aa KM |
90 | %meson \ |
91 | %{!?with_ovirt:-Dovirt=disabled} \ | |
92 | %{?with_ovirt:-Dovirt=enabled} \ | |
93 | %{!?with_spice:-Dspice=disabled} \ | |
94 | %{?with_spice:-Dspice=enabled} \ | |
95 | build | |
96 | ||
97 | %ninja_build -C build | |
ea70cf2b JR |
98 | |
99 | %install | |
100 | rm -rf $RPM_BUILD_ROOT | |
101 | ||
5b11b8aa | 102 | %ninja_install -C build |
ea70cf2b JR |
103 | |
104 | %find_lang %{name} | |
105 | ||
5b11b8aa KM |
106 | %clean |
107 | rm -rf $RPM_BUILD_ROOT | |
ea70cf2b | 108 | |
7dbcbbfc JR |
109 | %post |
110 | %update_icon_cache hicolor | |
e8280816 | 111 | %update_mime_database |
7dbcbbfc JR |
112 | |
113 | %postun | |
114 | %update_icon_cache hicolor | |
e8280816 | 115 | %update_mime_database |
7dbcbbfc | 116 | |
ea70cf2b JR |
117 | %files -f %{name}.lang |
118 | %defattr(644,root,root,755) | |
5b11b8aa | 119 | %doc AUTHORS NEWS README.md |
7dbcbbfc JR |
120 | %attr(755,root,root) %{_bindir}/virt-viewer |
121 | %attr(755,root,root) %{_bindir}/remote-viewer | |
5b11b8aa | 122 | %{_datadir}/metainfo/remote-viewer.appdata.xml |
c6cb2ee2 | 123 | %{_datadir}/mime/packages/virt-viewer-mime.xml |
8f932bad | 124 | %{_desktopdir}/remote-viewer.desktop |
7dbcbbfc | 125 | %{_iconsdir}/hicolor/*/apps/virt-viewer.png |
5b11b8aa | 126 | %{_iconsdir}/hicolor/scalable/apps/virt-viewer.svg |
7dbcbbfc JR |
127 | %{_mandir}/man1/virt-viewer.1* |
128 | %{_mandir}/man1/remote-viewer.1* | |
60cb6813 KM |
129 | |
130 | %files -n bash-completion-virt-viewer | |
131 | %defattr(644,root,root,755) | |
132 | %{bash_compdir}/virt-viewer |