]> git.pld-linux.org Git - packages/virt-viewer.git/blame - virt-viewer.spec
upstream fix for build failure with recent meson versions
[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
5b11b8aa 9Version: 11.0
7112ba6b 10Release: 1
ea70cf2b
JR
11License: GPL v2+
12Group: X11/Applications/Networking
5b11b8aa
KM
13Source0: https://virt-manager.org/download/sources/virt-viewer/%{name}-%{version}.tar.xz
14# Source0-md5: 06b80228aaf10e614aeb8ffa4814b03a
0028a915 15Patch0: meson.patch
ea70cf2b 16URL: http://virt-manager.org/
5b11b8aa
KM
17BuildRequires: bash-completion-devel
18BuildRequires: cmake
33221185 19BuildRequires: gettext-tools >= 0.14.1
3a787549 20BuildRequires: glib2-devel >= 1:2.40.0
7112ba6b
JP
21BuildRequires: gtk+3-devel >= 3.12
22BuildRequires: gtk3-vnc-devel >= 0.4.3
3a787549 23BuildRequires: icoutils
7dbcbbfc 24BuildRequires: intltool >= 0.35.0
5b11b8aa 25%{?with_ovirt:BuildRequires: libgovirt-devel >= 0.3.7}
d89521ba 26BuildRequires: libtool >= 2:2
3a787549 27BuildRequires: libvirt-devel >= 1.2.8
7112ba6b 28BuildRequires: libvirt-glib-devel >= 0.1.8
cf859d29 29BuildRequires: libxml2-devel >= 1:2.6.0
5b11b8aa
KM
30BuildRequires: meson
31BuildRequires: ninja
cf859d29 32BuildRequires: perl-tools-pod
3a787549
JP
33BuildRequires: pkgconfig
34%{?with_ovirt:BuildRequires: rest-devel >= 0.8}
5b11b8aa 35BuildRequires: rpmbuild(macros) >= 2.000
cf859d29 36BuildRequires: sed >= 4.0
cff87869 37%{?with_spice:BuildRequires: spice-gtk-devel >= 0.35}
7112ba6b 38BuildRequires: spice-protocol >= 0.12.7
3a787549 39BuildRequires: vte-devel
7dbcbbfc 40Requires(post,postun): gtk-update-icon-cache
e8280816 41Requires(post,postun): shared-mime-info
3a787549 42Requires: glib2 >= 1:2.40.0
7112ba6b
JP
43Requires: gtk+3 >= 3.12
44Requires: gtk3-vnc >= 0.4.3
7dbcbbfc 45Requires: hicolor-icon-theme
3a787549
JP
46%{?with_ovirt:Requires: libgovirt >= 0.3.3}
47Requires: libvirt >= 1.2.8
7112ba6b 48Requires: libvirt-glib >= 0.1.8
cf859d29 49Requires: libxml2 >= 1:2.6.0
3a787549 50%{?with_ovirt:Requires: rest >= 0.8}
cff87869 51%{?with_spice:Requires: spice-gtk >= 0.35}
ea70cf2b 52Suggests: gnome-keyring >= 0.4.9
7112ba6b 53Suggests: openssh-clients
f97258db
JB
54# let it obsolete withdrawn spice client from spice-space package
55%{?with_spice:Obsoletes: spice-client}
c6cb2ee2 56Obsoletes: virt-viewer-plugin
ea70cf2b
JR
57BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
58
59%description
60Virtual Machine Viewer provides a graphical console client for
61connecting to virtual machines. It uses the GTK-VNC or SPICE-GTK
62widgets to provide the display, and libvirt for looking up VNC/SPICE
63server details.
64
cf859d29
JB
65%description -l pl.UTF-8
66Virtual Machine Viewer udostępnia klienta graficznej konsoli do
67łączenia z maszynami wirtualnymi. Wykorzystuje widgety GTK-VNC lub
68SPICE-GTK do zapewnienia obrazu oraz libvirt do odczytu szczegółów
69serwera VNC/SPICE.
ea70cf2b 70
60cb6813
KM
71%package -n bash-completion-virt-viewer
72Summary: bash-completion for virt-viewer command
73Summary(pl.UTF-8): bashowe uzupełnianie parametrów polecenia virt-viewer
74Group: Applications/Shells
75Requires: %{name} = %{version}-%{release}
76Requires: bash-completion >= 2.0
60cb6813 77BuildArch: noarch
60cb6813
KM
78
79%description -n bash-completion-virt-viewer
80Bash-completion for virt-viewer command.
81
82%description -n bash-completion-virt-viewer -l pl.UTF-8
83Bashowe 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
100rm -rf $RPM_BUILD_ROOT
101
5b11b8aa 102%ninja_install -C build
ea70cf2b
JR
103
104%find_lang %{name}
105
5b11b8aa
KM
106%clean
107rm -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
This page took 0.134523 seconds and 4 git commands to generate.