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