3 %bcond_with rdp # RDP support
4 %bcond_without spice # Spice support
5 %bcond_without ssh # SSH support
7 Summary: VNC client for the GNOME desktop
8 Summary(pl.UTF-8): Klient VNC dla środowiska GNOME
13 Group: X11/Applications
14 Source0: https://download.gnome.org/sources/vinagre/3.22/%{name}-%{version}.tar.xz
15 # Source0-md5: 451554ddf46636105cd5f0330e98d254
16 Patch0: %{name}-freerdp.patch
17 URL: https://wiki.gnome.org/Apps/Vinagre
18 BuildRequires: appstream-glib-devel
19 BuildRequires: autoconf >= 2.64
20 BuildRequires: automake >= 1:1.11.1
21 BuildRequires: avahi-gobject-devel >= 0.6.26
22 BuildRequires: avahi-ui-gtk3-devel >= 0.6.26
23 BuildRequires: dbus-glib-devel
24 %{?with_rdp:BuildRequires: freerdp-devel >= 1.0}
25 BuildRequires: gettext-tools >= 0.17
26 BuildRequires: glib2-devel >= 1:2.32.0
27 BuildRequires: gnome-common >= 2.24.0
28 BuildRequires: gtk+3-devel >= 3.9.6
29 BuildRequires: gtk3-vnc-devel >= 0.4.3
30 BuildRequires: intltool >= 0.50.0
31 BuildRequires: itstool
32 BuildRequires: libsecret-devel
33 BuildRequires: libtool >= 2:2.2.6
34 BuildRequires: libxml2-devel >= 1:2.6.31
35 BuildRequires: perl-XML-Parser
36 BuildRequires: pkgconfig >= 1:0.24
37 BuildRequires: rpmbuild(find_lang) >= 1.23
38 BuildRequires: rpmbuild(macros) >= 1.311
39 BuildRequires: spice-gtk-devel >= 0.5
40 BuildRequires: tar >= 1:1.22
41 BuildRequires: telepathy-glib-devel >= 0.12.0
42 BuildRequires: vala >= 2:0.12.0
43 %{?with_ssh:BuildRequires: vte-devel >= 0.28.0}
45 BuildRequires: yelp-tools
46 Requires(post,postun): desktop-file-utils
47 Requires(post,postun): glib2 >= 1:2.32.0
48 Requires(post,postun): gtk-update-icon-cache
49 Requires(post,postun): shared-mime-info
50 Requires: glib2 >= 1:2.32.0
51 Requires: gtk+3 >= 3.9.6
52 Requires: gtk3-vnc >= 0.4.3
53 Requires: hicolor-icon-theme
54 Requires: libxml2 >= 1:2.6.31
55 %{?with_ssh:Requires: vte >= 0.28.0}
56 Suggests: openssh-clients
57 Obsoletes: gnome-applet-vinagre
58 Obsoletes: vinagre-devel
59 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
62 Vinagre is a VNC client for the GNOME desktop environment.
64 %description -l pl.UTF-8
65 Vinagre to klient VNC dla środowiska graficznego GNOME.
79 SSH_PROGRAM=%{_bindir}/ssh \
82 %{!?with_rdp:--disable-rdp} \
83 --disable-silent-rules \
84 --disable-schemas-compile \
85 %{!?with_spice:--disable-spice} \
86 %{!?with_ssh:--disable-ssh}
91 rm -rf $RPM_BUILD_ROOT
94 DESTDIR=$RPM_BUILD_ROOT
96 %find_lang vinagre --with-gnome
99 rm -rf $RPM_BUILD_ROOT
102 %glib_compile_schemas
103 %update_desktop_database_post
104 %update_mime_database
105 %update_icon_cache hicolor
108 %glib_compile_schemas
109 %update_desktop_database_postun
110 %update_mime_database
111 %update_icon_cache hicolor
113 %files -f vinagre.lang
114 %defattr(644,root,root,755)
115 %doc AUTHORS ChangeLog NEWS README
116 %attr(755,root,root) %{_bindir}/vinagre
117 %{_datadir}/GConf/gsettings/org.gnome.Vinagre.convert
118 %{_datadir}/metainfo/vinagre.appdata.xml
119 %{_datadir}/dbus-1/services/org.freedesktop.Telepathy.Client.Vinagre.service
120 %{_datadir}/glib-2.0/schemas/org.gnome.Vinagre.gschema.xml
121 %{_datadir}/mime/packages/vinagre-mime.xml
122 %{_datadir}/telepathy/clients/Vinagre.client
124 %{_desktopdir}/vinagre-file.desktop
125 %{_desktopdir}/vinagre.desktop
126 %{_iconsdir}/hicolor/*x*/mimetypes/application-x-remote-connection.png
127 %{_iconsdir}/hicolor/*x*/mimetypes/application-x-vnc.png
128 %{_iconsdir}/hicolor/*x*/status/view-minimize.png
129 %{_iconsdir}/hicolor/scalable/mimetypes/application-x-remote-connection.svg
130 %{_iconsdir}/hicolor/scalable/mimetypes/application-x-vnc.svg
131 %{_mandir}/man1/vinagre.1*