2008-01-22 03:54:05 +00:00
#
2011-02-14 00:18:19 +00:00
# spec file for package vinagre
2008-01-22 03:54:05 +00:00
#
2024-06-20 17:08:39 +00:00
# Copyright (c) 2024 SUSE LLC
2008-01-22 03:54:05 +00:00
#
2008-09-06 02:05:36 +00:00
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
2019-04-18 13:33:33 +00:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
2008-01-22 03:54:05 +00:00
#
2012-01-17 16:17:05 +00:00
2023-12-19 10:56:47 +00:00
%bcond_with rdp
2019-04-18 13:33:33 +00:00
2008-01-22 03:54:05 +00:00
Name : vinagre
2016-09-20 18:31:26 +00:00
Version : 3.22.0
2014-08-23 11:53:02 +00:00
Release : 0
2011-04-27 11:27:29 +00:00
Summary : VNC client for GNOME
2018-03-06 12:36:46 +00:00
License : GPL-3.0-or-later
2011-04-27 11:27:29 +00:00
Group : Productivity/Networking/Other
2019-04-18 13:33:33 +00:00
URL : http://www.gnome.org/projects/vinagre/
2016-09-20 18:31:26 +00:00
Source0 : http://download.gnome.org/sources/vinagre/3.22/%{name} -%{version} .tar.xz
2019-04-18 13:33:33 +00:00
2017-06-07 13:34:54 +00:00
# PATCH-FIX-UPSTREAM vinagre-freerdp2.patch bgo#765444 bgo#775616 mgorse@suse.com -- handle new "freerdp2" package name.
2016-05-28 09:12:05 +00:00
Patch1 : vinagre-freerdp2.patch
2017-02-17 00:48:34 +00:00
# PATCH-FIX-UPSTREAM vinagre-cert-validation-api.patch bgo#774473 boo#100235 fezhang@suse.com -- fix API incompatibilities with freerdp 1.2 that causes rdp connections abort
Patch2 : vinagre-cert-validation-api.patch
2014-08-26 18:09:01 +00:00
# The icon we rely on is from adwaita-icon-theme
2018-03-19 15:52:22 +00:00
# PATCH-FIX-UPSTREAM vinagre-invisible-fullscreen-toolbar.patch bgo#770484 boo#1008585 badshah400@opensuse.org -- Fix showing of toolbar as invisible in fullscreen mode; patch taken from upstream bug comment
Patch3 : vinagre-invisible-fullscreen-toolbar.patch
2019-04-18 13:33:33 +00:00
2014-08-26 18:09:01 +00:00
BuildRequires : adwaita-icon-theme
2009-02-20 21:24:13 +00:00
BuildRequires : fdupes
2010-02-10 13:14:04 +00:00
BuildRequires : gcc-c++
2009-02-20 21:24:13 +00:00
BuildRequires : gdbm-devel
2018-03-05 13:52:44 +00:00
# Next two lines needed for Patch1
BuildRequires : gnome-common
2012-09-07 15:31:22 +00:00
BuildRequires : intltool >= 0.50.0
2018-03-05 13:52:44 +00:00
BuildRequires : pkgconfig
2011-10-04 07:04:22 +00:00
# We need the %%mime_database_* macros
BuildRequires : shared-mime-info
2011-04-27 11:27:29 +00:00
BuildRequires : update-desktop-files
2011-07-05 08:27:51 +00:00
BuildRequires : vala
2011-12-21 04:49:27 +00:00
BuildRequires : yelp-tools
2018-03-05 13:52:44 +00:00
BuildRequires : pkgconfig(appstream-glib) >= 0.7.3
2011-04-27 11:07:43 +00:00
BuildRequires : pkgconfig(avahi-gobject)
2011-04-27 11:27:29 +00:00
BuildRequires : pkgconfig(avahi-ui-gtk3)
2019-04-18 13:33:33 +00:00
%if %{with rdp}
BuildRequires : pkgconfig(freerdp2)
%endif
2013-07-10 20:32:18 +00:00
BuildRequires : pkgconfig(gtk+-3.0) >= 3.9.6
BuildRequires : pkgconfig(gtk-vnc-2.0) >= 0.4.3
2012-09-07 15:31:22 +00:00
BuildRequires : pkgconfig(libsecret-1)
2013-07-10 20:32:18 +00:00
BuildRequires : pkgconfig(libxml-2.0) >= 2.6.31
2012-02-29 07:18:07 +00:00
BuildRequires : pkgconfig(spice-client-gtk-3.0) >= 0.5
2019-04-18 13:33:33 +00:00
# Disable telepathy support
#BuildRequires: pkgconfig(telepathy-glib)
2014-08-23 11:53:02 +00:00
BuildRequires : pkgconfig(vte-2.91)
BuildRequires : pkgconfig(x11)
2019-04-18 13:33:33 +00:00
2011-06-17 06:50:58 +00:00
Obsoletes : %{name} -devel < %{version}
2019-04-18 13:33:33 +00:00
%if 0%{?suse_version} < 1500
2018-03-05 13:52:44 +00:00
%glib2_gsettings_schema_requires
%endif
2008-01-22 03:54:05 +00:00
2014-08-23 11:53:02 +00:00
%description
2008-01-22 03:54:05 +00:00
Vinagre is a VNC client for GNOME that supports connecting to multiple
machines, browsing for VNC servers via avahi and password storage in
gnome-keyring.
%lang_package
2014-08-23 11:53:02 +00:00
2008-01-22 03:54:05 +00:00
%prep
2024-06-20 17:08:39 +00:00
# Work-around for boo#1225951, at least until vala is fixed.
%global optflags %{optflags} -fpermissive
2019-04-18 13:33:33 +00:00
%autosetup -p1
2008-01-22 03:54:05 +00:00
%build
2016-05-28 09:12:05 +00:00
# Needed for Patch1
2019-04-18 13:33:33 +00:00
autoreconf -fiv
2020-04-14 10:22:15 +00:00
export CFLAGS=" %{optflags} - W n o - e r r o r = f o r m a t - n o n l i t e r a l - f c o m m o n "
2019-04-18 13:33:33 +00:00
%configure \
--disable-static \
2016-02-19 14:35:54 +00:00
%if %{with rdp}
2019-04-18 13:33:33 +00:00
--enable-rdp \
2016-02-19 14:35:54 +00:00
%endif
2019-04-18 13:33:33 +00:00
--enable-spice \
--enable-ssh \
--without-telepathy \
%{nil}
%make_build
2008-01-22 03:54:05 +00:00
%install
2018-03-05 13:52:44 +00:00
%make_install
2009-07-31 19:00:20 +00:00
find %{buildroot} -type f -name " * . l a " -delete -print
2011-04-27 11:07:43 +00:00
%suse_update_desktop_file -G " R e m o t e D e s k t o p V i e w e r " vinagre
2008-01-22 03:54:05 +00:00
%suse_update_desktop_file vinagre-file
2011-02-13 21:20:57 +00:00
%find_lang %{name} %{?no_lang_C}
2011-04-27 11:07:43 +00:00
for size in 8x8 16x16 22x22 24x24 32x32 48x48 256x256; do
2019-07-08 08:44:39 +00:00
if test -f %{_datadir} /icons/Adwaita/$size/legacy/preferences-desktop-remote-desktop.png; then
2011-04-27 11:07:43 +00:00
mkdir -p %{buildroot} %{_datadir} /icons/hicolor/$size/apps
2019-07-08 08:44:39 +00:00
cp -a %{_datadir} /icons/Adwaita/$size/legacy/preferences-desktop-remote-desktop.png %{buildroot} %{_datadir} /icons/hicolor/$size/apps/preferences-desktop-remote-desktop.png
2011-04-27 11:07:43 +00:00
fi
done
2014-08-23 11:53:02 +00:00
%fdupes %{buildroot}
2008-01-22 03:54:05 +00:00
2018-03-19 15:52:22 +00:00
%if 0%{?suse_version} < 1500
2011-02-13 21:20:57 +00:00
%post
2018-03-05 13:52:44 +00:00
%glib2_gsettings_schema_post
2011-02-13 21:20:57 +00:00
%desktop_database_post
%icon_theme_cache_post
%mime_database_post
2009-07-31 19:00:20 +00:00
2011-02-13 21:20:57 +00:00
%postun
2018-03-05 13:52:44 +00:00
%glib2_gsettings_schema_postun
2011-02-13 21:20:57 +00:00
%desktop_database_postun
%icon_theme_cache_postun
%mime_database_postun
2018-03-19 15:52:22 +00:00
%endif
2011-02-13 21:20:57 +00:00
2011-04-27 11:07:43 +00:00
%files
2011-12-21 04:49:27 +00:00
%doc %{_datadir} /help/C/%{name} /
2019-04-18 13:33:33 +00:00
%{_mandir} /man1/*.1%{?ext_man}
2011-04-27 11:27:29 +00:00
%{_bindir} /vinagre
%{_datadir} /applications/vinagre.desktop
%{_datadir} /applications/vinagre-file.desktop
2019-04-18 13:33:33 +00:00
# Disable telepathy support
#%%{_datadir}/dbus-1/services/org.freedesktop.Telepathy.Client.Vinagre.service
2011-07-25 22:05:16 +00:00
%dir %{_datadir} /GConf
%dir %{_datadir} /GConf/gsettings
%{_datadir} /GConf/gsettings/org.gnome.Vinagre.convert
2011-04-27 11:07:43 +00:00
%{_datadir} /glib-2.0/schemas/org.gnome.Vinagre.gschema.xml
2008-01-22 03:54:05 +00:00
%{_datadir} /icons/hicolor/*/*/*
2017-11-24 10:00:05 +00:00
%{_datadir} /metainfo/vinagre.appdata.xml
2011-04-27 11:27:29 +00:00
%{_datadir} /mime/packages/vinagre-mime.xml
2011-05-27 09:24:24 +00:00
%dir %{_datadir} /vinagre
%{_datadir} /vinagre/vinagre*
2019-04-18 13:33:33 +00:00
# Disable telepathy support
2010-01-28 16:15:38 +00:00
# Own directories that are not owned by anything else
2019-04-18 13:33:33 +00:00
#%%dir %%{_datadir}/telepathy
#%%dir %%{_datadir}/telepathy/clients
#%%{_datadir}/telepathy/clients/Vinagre.client
2008-01-22 03:54:05 +00:00
2012-03-26 08:05:14 +00:00
%files lang -f %{name}.lang
2008-01-22 03:54:05 +00:00
%changelog