]>
Commit | Line | Data |
---|---|---|
1f2c6980 JB |
1 | # |
2 | # Conditional build: | |
35d79705 | 3 | %bcond_with rdp # RDP support |
1f2c6980 JB |
4 | %bcond_without spice # Spice support |
5 | %bcond_without ssh # SSH support | |
6 | ||
bd292ddf | 7 | Summary: VNC client for the GNOME desktop |
095b36c7 | 8 | Summary(pl.UTF-8): Klient VNC dla środowiska GNOME |
bd292ddf | 9 | Name: vinagre |
ee70e236 | 10 | Version: 3.22.0 |
35d79705 | 11 | Release: 2 |
bd292ddf PZ |
12 | License: GPL v2+ |
13 | Group: X11/Applications | |
91dd5ac7 | 14 | Source0: https://download.gnome.org/sources/vinagre/3.22/%{name}-%{version}.tar.xz |
ee70e236 | 15 | # Source0-md5: 451554ddf46636105cd5f0330e98d254 |
1f2c6980 JB |
16 | Patch0: %{name}-freerdp.patch |
17 | URL: https://wiki.gnome.org/Apps/Vinagre | |
18 | BuildRequires: appstream-glib-devel | |
6c97ef5e | 19 | BuildRequires: autoconf >= 2.64 |
2a592b5b MB |
20 | BuildRequires: automake >= 1:1.11.1 |
21 | BuildRequires: avahi-gobject-devel >= 0.6.26 | |
22 | BuildRequires: avahi-ui-gtk3-devel >= 0.6.26 | |
c4f0eec2 | 23 | BuildRequires: dbus-glib-devel |
1f2c6980 | 24 | %{?with_rdp:BuildRequires: freerdp-devel >= 1.0} |
50694f70 | 25 | BuildRequires: gettext-tools >= 0.17 |
91dd5ac7 | 26 | BuildRequires: glib2-devel >= 1:2.32.0 |
b626644d | 27 | BuildRequires: gnome-common >= 2.24.0 |
75e552c9 | 28 | BuildRequires: gtk+3-devel >= 3.9.6 |
2a592b5b | 29 | BuildRequires: gtk3-vnc-devel >= 0.4.3 |
0d52af28 | 30 | BuildRequires: intltool >= 0.50.0 |
d4956db5 | 31 | BuildRequires: itstool |
1f2c6980 | 32 | BuildRequires: libsecret-devel |
2a592b5b | 33 | BuildRequires: libtool >= 2:2.2.6 |
6c97ef5e | 34 | BuildRequires: libxml2-devel >= 1:2.6.31 |
bd292ddf | 35 | BuildRequires: perl-XML-Parser |
9e81a81a | 36 | BuildRequires: pkgconfig >= 1:0.24 |
b626644d MB |
37 | BuildRequires: rpmbuild(find_lang) >= 1.23 |
38 | BuildRequires: rpmbuild(macros) >= 1.311 | |
c4f0eec2 | 39 | BuildRequires: spice-gtk-devel >= 0.5 |
5a24f798 | 40 | BuildRequires: tar >= 1:1.22 |
2a592b5b | 41 | BuildRequires: telepathy-glib-devel >= 0.12.0 |
2b209146 | 42 | BuildRequires: vala >= 2:0.12.0 |
1f2c6980 | 43 | %{?with_ssh:BuildRequires: vte-devel >= 0.28.0} |
5a24f798 | 44 | BuildRequires: xz |
9e81a81a | 45 | BuildRequires: yelp-tools |
bd292ddf | 46 | Requires(post,postun): desktop-file-utils |
91dd5ac7 | 47 | Requires(post,postun): glib2 >= 1:2.32.0 |
ce9fba63 | 48 | Requires(post,postun): gtk-update-icon-cache |
bd292ddf | 49 | Requires(post,postun): shared-mime-info |
91dd5ac7 | 50 | Requires: glib2 >= 1:2.32.0 |
1f2c6980 JB |
51 | Requires: gtk+3 >= 3.9.6 |
52 | Requires: gtk3-vnc >= 0.4.3 | |
2a592b5b | 53 | Requires: hicolor-icon-theme |
1f2c6980 JB |
54 | Requires: libxml2 >= 1:2.6.31 |
55 | %{?with_ssh:Requires: vte >= 0.28.0} | |
ec4dd6e6 | 56 | Suggests: openssh-clients |
1fe14332 AF |
57 | Obsoletes: gnome-applet-vinagre |
58 | Obsoletes: vinagre-devel | |
bd292ddf PZ |
59 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
60 | ||
61 | %description | |
62 | Vinagre is a VNC client for the GNOME desktop environment. | |
63 | ||
095b36c7 JB |
64 | %description -l pl.UTF-8 |
65 | Vinagre to klient VNC dla środowiska graficznego GNOME. | |
66 | ||
bd292ddf PZ |
67 | %prep |
68 | %setup -q | |
1f2c6980 | 69 | %patch0 -p1 |
bd292ddf PZ |
70 | |
71 | %build | |
72 | %{__intltoolize} | |
56a22ae7 | 73 | %{__libtoolize} |
bd292ddf PZ |
74 | %{__aclocal} |
75 | %{__autoconf} | |
b626644d | 76 | %{__autoheader} |
bd292ddf PZ |
77 | %{__automake} |
78 | %configure \ | |
9e81a81a | 79 | SSH_PROGRAM=%{_bindir}/ssh \ |
2a592b5b MB |
80 | --with-avahi \ |
81 | --with-telepathy \ | |
1f2c6980 | 82 | %{!?with_rdp:--disable-rdp} \ |
6c97ef5e | 83 | --disable-silent-rules \ |
1f2c6980 JB |
84 | --disable-schemas-compile \ |
85 | %{!?with_spice:--disable-spice} \ | |
86 | %{!?with_ssh:--disable-ssh} | |
87 | ||
bd292ddf PZ |
88 | %{__make} |
89 | ||
90 | %install | |
91 | rm -rf $RPM_BUILD_ROOT | |
92 | ||
93 | %{__make} install \ | |
2a592b5b | 94 | DESTDIR=$RPM_BUILD_ROOT |
bd292ddf | 95 | |
9e81a81a | 96 | %find_lang vinagre --with-gnome |
bd292ddf PZ |
97 | |
98 | %clean | |
99 | rm -rf $RPM_BUILD_ROOT | |
100 | ||
101 | %post | |
2a592b5b | 102 | %glib_compile_schemas |
bd292ddf PZ |
103 | %update_desktop_database_post |
104 | %update_mime_database | |
105 | %update_icon_cache hicolor | |
106 | ||
107 | %postun | |
2a592b5b | 108 | %glib_compile_schemas |
bd292ddf PZ |
109 | %update_desktop_database_postun |
110 | %update_mime_database | |
111 | %update_icon_cache hicolor | |
112 | ||
113 | %files -f vinagre.lang | |
114 | %defattr(644,root,root,755) | |
1f2c6980 | 115 | %doc AUTHORS ChangeLog NEWS README |
6c97ef5e | 116 | %attr(755,root,root) %{_bindir}/vinagre |
5a24f798 | 117 | %{_datadir}/GConf/gsettings/org.gnome.Vinagre.convert |
35d79705 | 118 | %{_datadir}/metainfo/vinagre.appdata.xml |
6c97ef5e | 119 | %{_datadir}/dbus-1/services/org.freedesktop.Telepathy.Client.Vinagre.service |
2a592b5b | 120 | %{_datadir}/glib-2.0/schemas/org.gnome.Vinagre.gschema.xml |
1f2c6980 | 121 | %{_datadir}/mime/packages/vinagre-mime.xml |
6c97ef5e MB |
122 | %{_datadir}/telepathy/clients/Vinagre.client |
123 | %{_datadir}/vinagre | |
1f2c6980 JB |
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* |