]> git.pld-linux.org Git - packages/virt-viewer.git/blob - virt-viewer.spec
up to 6.0
[packages/virt-viewer.git] / virt-viewer.spec
1 #
2 # Conditional build:
3 %bcond_without  spice   # SPICE support
4 %bcond_without  ovirt   # oVirt support
5 #
6 Summary:        Virtual Machine Viewer
7 Summary(pl.UTF-8):      Przeglądarka maszyny wirtualnej
8 Name:           virt-viewer
9 Version:        6.0
10 Release:        1
11 License:        GPL v2+
12 Group:          X11/Applications/Networking
13 Source0:        https://virt-manager.org/download/sources/virt-viewer/%{name}-%{version}.tar.gz
14 # Source0-md5:  4ed1a71013fa32326861b4710e231ab4
15 Patch0:         remove-spice-controller.patch
16 URL:            http://virt-manager.org/
17 BuildRequires:  autoconf >= 2.50
18 BuildRequires:  automake
19 BuildRequires:  gettext-tools >= 0.14.1
20 BuildRequires:  glib2-devel >= 1:2.38.0
21 BuildRequires:  gtk+3-devel >= 3.12
22 BuildRequires:  gtk3-vnc-devel >= 0.4.3
23 BuildRequires:  intltool >= 0.35.0
24 %{?with_ovirt:BuildRequires:    libgovirt-devel >= 0.3.2}
25 BuildRequires:  libtool >= 2:2
26 BuildRequires:  libvirt-devel >= 0.10.0
27 BuildRequires:  libvirt-glib-devel >= 0.1.8
28 BuildRequires:  libxml2-devel >= 1:2.6.0
29 BuildRequires:  perl-tools-pod
30 BuildRequires:  rpmbuild(macros) >= 1.596
31 BuildRequires:  sed >= 4.0
32 %{?with_spice:BuildRequires:    spice-gtk-devel >= 0.33}
33 BuildRequires:  spice-protocol >= 0.12.7
34 Requires(post,postun):  gtk-update-icon-cache
35 Requires(post,postun):  shared-mime-info
36 Requires:       glib2 >= 1:2.38.0
37 Requires:       gtk+3 >= 3.12
38 Requires:       gtk3-vnc >= 0.4.3
39 Requires:       hicolor-icon-theme
40 %{?with_ovirt:Requires: libgovirt >= 0.3.2}
41 Requires:       libvirt >= 0.10.0
42 Requires:       libvirt-glib >= 0.1.8
43 Requires:       libxml2 >= 1:2.6.0
44 %{?with_spice:Requires: spice-gtk >= 0.33}
45 Suggests:       gnome-keyring >= 0.4.9
46 Suggests:       openssh-clients
47 # let it obsolete withdrawn spice client from spice-space package
48 %{?with_spice:Obsoletes:        spice-client}
49 Obsoletes:      virt-viewer-plugin
50 ExclusiveArch:  %{ix86} %{x8664} ia64
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
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.
64
65 %prep
66 %setup -q
67 %patch0 -p1
68
69 %{__sed} -i -e 's|PWD|shell pwd|g' icons/*/Makefile.am
70
71 %build
72 %{__libtoolize}
73 %{__aclocal}
74 %{__autoconf}
75 %{__autoheader}
76 %{__automake}
77 %configure \
78         --disable-silent-rules \
79         --disable-update-mimedb \
80         %{__with_without spice spice-gtk} \
81         %{!?with_ovirt:--without-ovirt}
82
83 %{__make}
84
85 %install
86 rm -rf $RPM_BUILD_ROOT
87
88 %{__make} install \
89         DESTDIR=$RPM_BUILD_ROOT
90
91 %find_lang %{name}
92
93 %clean
94 rm -rf $RPM_BUILD_ROOT
95
96 %post
97 %update_icon_cache hicolor
98 %update_mime_database
99
100 %postun
101 %update_icon_cache hicolor
102 %update_mime_database
103
104 %files -f %{name}.lang
105 %defattr(644,root,root,755)
106 %doc AUTHORS ChangeLog NEWS README.md
107 %attr(755,root,root) %{_bindir}/virt-viewer
108 %attr(755,root,root) %{_bindir}/remote-viewer
109 %{_datadir}/appdata/remote-viewer.appdata.xml
110 %{_datadir}/mime/packages/virt-viewer-mime.xml
111 %{_desktopdir}/remote-viewer.desktop
112 %{_iconsdir}/hicolor/*/apps/virt-viewer.png
113 %{_iconsdir}/hicolor/24x24/devices/virt-viewer-usb.png
114 %{_iconsdir}/hicolor/24x24/devices/virt-viewer-usb.svg
115 %{_mandir}/man1/virt-viewer.1*
116 %{_mandir}/man1/remote-viewer.1*
This page took 0.073343 seconds and 3 git commands to generate.