]> git.pld-linux.org Git - packages/virt-viewer.git/blame - virt-viewer.spec
update desktop database
[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}
9a347db6 35BuildRequires: rpm-build >= 4.6
5b11b8aa 36BuildRequires: rpmbuild(macros) >= 2.000
cf859d29 37BuildRequires: sed >= 4.0
cff87869 38%{?with_spice:BuildRequires: spice-gtk-devel >= 0.35}
7112ba6b 39BuildRequires: spice-protocol >= 0.12.7
a435af2b 40BuildRequires: tar >= 1:1.22
3a787549 41BuildRequires: vte-devel
a435af2b 42BuildRequires: xz
22ff1afa 43Requires(post,postun): desktop-file-utils
7dbcbbfc 44Requires(post,postun): gtk-update-icon-cache
e8280816 45Requires(post,postun): shared-mime-info
3a787549 46Requires: glib2 >= 1:2.40.0
7112ba6b
JP
47Requires: gtk+3 >= 3.12
48Requires: gtk3-vnc >= 0.4.3
7dbcbbfc 49Requires: hicolor-icon-theme
3a787549
JP
50%{?with_ovirt:Requires: libgovirt >= 0.3.3}
51Requires: libvirt >= 1.2.8
7112ba6b 52Requires: libvirt-glib >= 0.1.8
cf859d29 53Requires: libxml2 >= 1:2.6.0
3a787549 54%{?with_ovirt:Requires: rest >= 0.8}
cff87869 55%{?with_spice:Requires: spice-gtk >= 0.35}
ea70cf2b 56Suggests: gnome-keyring >= 0.4.9
7112ba6b 57Suggests: openssh-clients
f97258db
JB
58# let it obsolete withdrawn spice client from spice-space package
59%{?with_spice:Obsoletes: spice-client}
c6cb2ee2 60Obsoletes: virt-viewer-plugin
ea70cf2b
JR
61BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
62
63%description
64Virtual Machine Viewer provides a graphical console client for
65connecting to virtual machines. It uses the GTK-VNC or SPICE-GTK
66widgets to provide the display, and libvirt for looking up VNC/SPICE
67server details.
68
cf859d29
JB
69%description -l pl.UTF-8
70Virtual Machine Viewer udostępnia klienta graficznej konsoli do
71łączenia z maszynami wirtualnymi. Wykorzystuje widgety GTK-VNC lub
72SPICE-GTK do zapewnienia obrazu oraz libvirt do odczytu szczegółów
73serwera VNC/SPICE.
ea70cf2b 74
60cb6813
KM
75%package -n bash-completion-virt-viewer
76Summary: bash-completion for virt-viewer command
77Summary(pl.UTF-8): bashowe uzupełnianie parametrów polecenia virt-viewer
78Group: Applications/Shells
79Requires: %{name} = %{version}-%{release}
f40b2dee 80Requires: bash-completion >= 1:2.0
60cb6813 81BuildArch: noarch
60cb6813
KM
82
83%description -n bash-completion-virt-viewer
84Bash-completion for virt-viewer command.
85
86%description -n bash-completion-virt-viewer -l pl.UTF-8
87Bashowe 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
104rm -rf $RPM_BUILD_ROOT
105
5b11b8aa 106%ninja_install -C build
ea70cf2b
JR
107
108%find_lang %{name}
109
5b11b8aa
KM
110%clean
111rm -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
This page took 0.109997 seconds and 4 git commands to generate.