]> git.pld-linux.org Git - packages/virt-viewer.git/blame - virt-viewer.spec
- 0.5.2
[packages/virt-viewer.git] / virt-viewer.spec
CommitLineData
ea70cf2b
JR
1#
2# Conditional build:
3%bcond_with gtk2
4%bcond_without gtk3
5%bcond_without spice
6%bcond_with plugin
7#
8Summary: Virtual Machine Viewer
9Name: virt-viewer
a77aecb4 10Version: 0.5.2
ea70cf2b
JR
11Release: 1
12License: GPL v2+
13Group: X11/Applications/Networking
14Source0: http://virt-manager.org/download/sources/virt-viewer/%{name}-%{version}.tar.gz
a77aecb4 15# Source0-md5: 4a8e1c4d69cff00d89a13efb26ec1050
ea70cf2b 16URL: http://virt-manager.org/
7dbcbbfc
JR
17BuildRequires: autoconf
18BuildRequires: automake
19BuildRequires: gettext-devel >= 0.14.1
20BuildRequires: glib2-devel
21BuildRequires: intltool >= 0.35.0
ea70cf2b
JR
22%if %{with gtk3}
23BuildRequires: gtk+3-devel >= 3.0.0
24BuildRequires: gtk3-vnc-devel >= 0.4.3
a77aecb4 25%{?with_spice:BuildRequires: spice-gtk-devel >= 0.11}
7dbcbbfc
JR
26%endif
27%if %{with gtk2}
ea70cf2b
JR
28BuildRequires: gtk+2-devel >= 2.12.0
29BuildRequires: gtk-vnc-devel >= 0.4.3
a77aecb4 30%{?with_spice:BuildRequires: spice-gtk2-devel >= 0.11}
ea70cf2b 31%endif
7dbcbbfc 32BuildRequires: libtool
a77aecb4 33BuildRequires: libvirt-devel >= 0.9.7
ea70cf2b 34BuildRequires: libxml2-devel
ea70cf2b 35BuildRequires: perl-tools-pod
7dbcbbfc
JR
36BuildRequires: sed >= 4.0
37%{?with_plugin:BuildRequires: xulrunner-devel}
38Requires(post,postun): gtk-update-icon-cache
39Requires: hicolor-icon-theme
ea70cf2b
JR
40Suggests: openssh-clients
41Suggests: gnome-keyring >= 0.4.9
42ExclusiveArch: %{ix86} x86_64 ia64
43BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
44
45%description
46Virtual Machine Viewer provides a graphical console client for
47connecting to virtual machines. It uses the GTK-VNC or SPICE-GTK
48widgets to provide the display, and libvirt for looking up VNC/SPICE
49server details.
50
51Virtual Machine Viewer provides a graphical console client for
52connecting to virtual machines. It uses the GTK-VNC or SPICE-GTK
53widgets to provide the display, and libvirt for looking up VNC/SPICE
54server details.
55
56%package plugin
57Summary: Mozilla plugin for the gtk-vnc library
58Group: Development/Libraries
59Requires: %{name} = %{version}-%{release}
60
61%description plugin
62Virtual Machine Viewer provides a graphical
63console client for connecting to virtual machines. It uses the GTK-VNC
64or SPICE-GTK widgets to provide the display, and libvirt for looking
65up VNC/SPICE server details.
66
67This package provides a web browser plugin for Mozilla compatible
68browsers.
69
70%prep
71%setup -q
72
7dbcbbfc
JR
73%{__sed} -i -e 's|PWD|shell pwd|g' icons/*/Makefile.am
74
ea70cf2b 75%build
7dbcbbfc
JR
76%{__libtoolize}
77%{__aclocal}
78%{__autoconf}
79%{__automake}
ea70cf2b
JR
80%configure \
81 %{__enable_disable plugin} \
82 %{__with_without spice spice-gtk} \
83 %{__with_without gtk2 gtk 2.0} \
84 %{__with_without gtk3 gtk 3.0}
85
86%{__make}
87
88%install
89rm -rf $RPM_BUILD_ROOT
90
91%{__make} install \
92 DESTDIR=$RPM_BUILD_ROOT
93
94%find_lang %{name}
95
96%clean
97rm -rf $RPM_BUILD_ROOT
98
7dbcbbfc
JR
99%post
100%update_icon_cache hicolor
101
102%postun
103%update_icon_cache hicolor
104
ea70cf2b
JR
105%files -f %{name}.lang
106%defattr(644,root,root,755)
107%doc AUTHORS ChangeLog NEWS README
7dbcbbfc
JR
108%attr(755,root,root) %{_bindir}/virt-viewer
109%attr(755,root,root) %{_bindir}/remote-viewer
ea70cf2b
JR
110%dir %{_datadir}/%{name}
111%dir %{_datadir}/%{name}/ui
112%{_datadir}/%{name}/ui/*.xml
7dbcbbfc
JR
113%{_iconsdir}/hicolor/*/apps/virt-viewer.png
114%{_mandir}/man1/virt-viewer.1*
115%{_mandir}/man1/remote-viewer.1*
ea70cf2b
JR
116
117%if %{with plugin}
118%files plugin
119%defattr(644,root,root,755)
120%endif
This page took 0.431208 seconds and 4 git commands to generate.