]> git.pld-linux.org Git - packages/virt-viewer.git/blame - virt-viewer.spec
- updated to 0.6.0
[packages/virt-viewer.git] / virt-viewer.spec
CommitLineData
ea70cf2b
JR
1#
2# Conditional build:
cf859d29
JB
3%bcond_with gtk2 # use GTK+ 2.x instead of GTK+ 3.x
4%bcond_without spice # SPICE support
c6cb2ee2 5%bcond_with ovirt # oVirt support [requiring libgovirt, depending on rest >= 1.7.13]
ea70cf2b
JR
6#
7Summary: Virtual Machine Viewer
cf859d29 8Summary(pl.UTF-8): Przeglądarka maszyny wirtualnej
ea70cf2b 9Name: virt-viewer
e8280816 10Version: 0.6.0
d89521ba 11Release: 1
ea70cf2b
JR
12License: GPL v2+
13Group: X11/Applications/Networking
e8280816
JB
14Source0: https://fedorahosted.org/released/virt-viewer/%{name}-%{version}.tar.gz
15# Source0-md5: a3d7dd877105117e36185378ee1849ee
ea70cf2b 16URL: http://virt-manager.org/
cf859d29 17BuildRequires: autoconf >= 2.50
7dbcbbfc
JR
18BuildRequires: automake
19BuildRequires: gettext-devel >= 0.14.1
485157c4 20BuildRequires: glib2-devel >= 1:2.22.0
7dbcbbfc 21BuildRequires: intltool >= 0.35.0
e8280816 22%{?with_ovirt:BuildRequires: libgovirt-devel >= 0.3.0}
d89521ba
JB
23BuildRequires: libtool >= 2:2
24BuildRequires: libvirt-devel >= 0.10.0
cf859d29
JB
25BuildRequires: libxml2-devel >= 1:2.6.0
26BuildRequires: perl-tools-pod
e8280816 27BuildRequires: rpmbuild(macros) >= 1.596
cf859d29
JB
28BuildRequires: sed >= 4.0
29BuildRequires: spice-protocol >= 0.10.1
30%if %{with gtk2}
31BuildRequires: gtk+2-devel >= 2:2.18.0
32BuildRequires: gtk-vnc-devel >= 0.4.3
e8280816 33%{?with_spice:BuildRequires: spice-gtk2-devel >= 0.22}
cf859d29 34%else
ea70cf2b
JR
35BuildRequires: gtk+3-devel >= 3.0.0
36BuildRequires: gtk3-vnc-devel >= 0.4.3
e8280816 37%{?with_spice:BuildRequires: spice-gtk-devel >= 0.22}
7dbcbbfc 38%endif
7dbcbbfc 39Requires(post,postun): gtk-update-icon-cache
e8280816 40Requires(post,postun): shared-mime-info
485157c4 41Requires: glib2 >= 1:2.22.0
7dbcbbfc 42Requires: hicolor-icon-theme
d89521ba 43Requires: libvirt >= 0.10.0
cf859d29
JB
44Requires: libxml2 >= 1:2.6.0
45%if %{with gtk2}
46Requires: gtk+2 >= 2:2.18.0
47Requires: gtk-vnc >= 0.4.3
e8280816 48%{?with_spice:Requires: spice-gtk2 >= 0.22}
cf859d29 49%else
e8280816
JB
50Requires: gtk+3 >= 3.0.0
51Requires: gtk3-vnc >= 0.4.3
52%{?with_spice:Requires: spice-gtk >= 0.22}
cf859d29 53%endif
e8280816 54%{?with_ovirt:Requires: libgovirt >= 0.3.0}
ea70cf2b
JR
55Suggests: openssh-clients
56Suggests: gnome-keyring >= 0.4.9
c6cb2ee2 57Obsoletes: virt-viewer-plugin
cf859d29 58ExclusiveArch: %{ix86} %{x8664} ia64
ea70cf2b
JR
59BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
60
61%description
62Virtual Machine Viewer provides a graphical console client for
63connecting to virtual machines. It uses the GTK-VNC or SPICE-GTK
64widgets to provide the display, and libvirt for looking up VNC/SPICE
65server details.
66
cf859d29
JB
67%description -l pl.UTF-8
68Virtual Machine Viewer udostępnia klienta graficznej konsoli do
69łączenia z maszynami wirtualnymi. Wykorzystuje widgety GTK-VNC lub
70SPICE-GTK do zapewnienia obrazu oraz libvirt do odczytu szczegółów
71serwera VNC/SPICE.
ea70cf2b 72
ea70cf2b
JR
73%prep
74%setup -q
75
7dbcbbfc
JR
76%{__sed} -i -e 's|PWD|shell pwd|g' icons/*/Makefile.am
77
ea70cf2b 78%build
7dbcbbfc
JR
79%{__libtoolize}
80%{__aclocal}
81%{__autoconf}
cf859d29 82%{__autoheader}
7dbcbbfc 83%{__automake}
ea70cf2b 84%configure \
cf859d29 85 --disable-silent-rules \
e8280816 86 --disable-update-mimedb \
ea70cf2b 87 %{__with_without spice spice-gtk} \
c6cb2ee2
JB
88 --with-gtk=%{?with_gtk2:2.0}%{!?with_gtk2:3.0} \
89 %{!?with_ovirt:--without-ovirt}
ea70cf2b
JR
90
91%{__make}
92
93%install
94rm -rf $RPM_BUILD_ROOT
95
96%{__make} install \
c6cb2ee2 97 DESTDIR=$RPM_BUILD_ROOT
ea70cf2b
JR
98
99%find_lang %{name}
100
101%clean
102rm -rf $RPM_BUILD_ROOT
103
7dbcbbfc
JR
104%post
105%update_icon_cache hicolor
e8280816 106%update_mime_database
7dbcbbfc
JR
107
108%postun
109%update_icon_cache hicolor
e8280816 110%update_mime_database
7dbcbbfc 111
ea70cf2b
JR
112%files -f %{name}.lang
113%defattr(644,root,root,755)
114%doc AUTHORS ChangeLog NEWS README
7dbcbbfc
JR
115%attr(755,root,root) %{_bindir}/virt-viewer
116%attr(755,root,root) %{_bindir}/remote-viewer
ea70cf2b
JR
117%dir %{_datadir}/%{name}
118%dir %{_datadir}/%{name}/ui
119%{_datadir}/%{name}/ui/*.xml
c6cb2ee2 120%{_datadir}/mime/packages/virt-viewer-mime.xml
8f932bad 121%{_desktopdir}/remote-viewer.desktop
7dbcbbfc
JR
122%{_iconsdir}/hicolor/*/apps/virt-viewer.png
123%{_mandir}/man1/virt-viewer.1*
124%{_mandir}/man1/remote-viewer.1*
This page took 0.166974 seconds and 4 git commands to generate.