File remmina.spec of Package remmina.10470
#
# spec file for package remmina
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%bcond_with nx
Name: remmina
Version: 1.3.4
Release: 0
Summary: Versatile Remote Desktop Client
License: GPL-2.0-or-later
Group: Productivity/Networking/Other
Url: http://www.remmina.org/
Source0: https://gitlab.com/Remmina/Remmina/-/archive/v%{version}/Remmina-v%{version}.tar.bz2
BuildRequires: cmake
BuildRequires: ed
BuildRequires: fdupes
BuildRequires: intltool
BuildRequires: libgcrypt-devel
BuildRequires: libjpeg-devel
BuildRequires: pkgconfig
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(atk)
BuildRequires: pkgconfig(avahi-glib)
BuildRequires: pkgconfig(cairo)
BuildRequires: pkgconfig(freerdp2)
BuildRequires: pkgconfig(gdk-pixbuf-2.0)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gnutls)
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(json-glib-1.0)
BuildRequires: pkgconfig(libsecret-1)
BuildRequires: pkgconfig(libsoup-2.4)
BuildRequires: pkgconfig(libssh)
BuildRequires: pkgconfig(libvncserver)
BuildRequires: pkgconfig(pango)
BuildRequires: pkgconfig(spice-client-gtk-3.0)
BuildRequires: pkgconfig(telepathy-glib)
BuildRequires: pkgconfig(vte-2.91)
BuildRequires: pkgconfig(winpr2)
BuildRequires: pkgconfig(xkbfile)
Recommends: %{name}-lang
Recommends: %{name}-plugin-rdp
Recommends: %{name}-plugin-secret
Recommends: %{name}-plugin-vnc
Provides: %{name}-plugins-common = %{version}
Obsoletes: %{name}-plugins-common < 1.0.0
%if 0%{?suse_version} > 1500
BuildRequires: pkgconfig(wayland-client)
%endif
%if 0%{?is_opensuse}
BuildRequires: pkgconfig(appindicator3-0.1)
%endif
%description
Remmina is a remote desktop client written in GTK+, aiming to be useful for
system administrators and travellers, who need to work with lots of remote
computers in front of either large monitors or tiny netbooks. Remmina supports
multiple network protocols such as RDP, VNC, NX, XDMCP and SSH via separate
plugins in an integrated and consistant user interface.
%package kiosk
Summary: Login manager extension for a Remmina kiosk mode
Group: Productivity/Networking/Other
Requires: remmina = %{version}
%description kiosk
This package installs a Remmina Kiosk mode to the list of the
available sessions for all freedesktop compliant login managers.
%package devel
Summary: Development Files for %{name}
Group: Development/Libraries/Other
Requires: %{name} = %{version}-%{release}
%description devel
This package contains header files needed for developing plugins for
Remmina.
%package plugin-exec
Summary: Plugin for Remmina to allow execution of local commands
Group: Productivity/Networking/Other
Requires: remmina = %{version}
%description plugin-exec
This package provides a plugin for Remmina allowing the execution of
local commands.
%package plugin-spice
Summary: SPICE Protocol Plugin for Remmina
Group: Productivity/Networking/Other
Requires: remmina = %{version}
%description plugin-spice
This package provides the SPICE protocol plugin for Remmina.
%package plugin-xdmcp
Summary: XDMCP Protocol Plugin for Remmina
Group: Productivity/Networking/Other
Requires: remmina = %{version}
%description plugin-xdmcp
This package provides the XDMCP protocol plugin for Remmina.
%if %{with nx}
%package plugin-nx
Summary: NX Protocol Plugin for Remmina
Group: Productivity/Networking/Other
Requires: NX
Requires: remmina = %{version}
%description plugin-nx
This package provides the NX protocol plugin for Remmina.
%endif
%package plugin-rdp
Summary: RDP Protocol Plugin for Remmina
Group: Productivity/Networking/Other
Requires: freerdp
Requires: remmina = %{version}
%description plugin-rdp
This package provides the RDP protocol plugin for Remmina.
%package plugin-st
Summary: Simple terminal Plugin for Remmina
Group: Productivity/Networking/Other
Requires: remmina = %{version}
%description plugin-st
This package provides the simple terminal plugin for Remmina.
%package plugin-vnc
Summary: VNC Protocol Plugin for Remmina
Group: Productivity/Networking/Other
Requires: remmina = %{version}
%description plugin-vnc
This package provides the RDP protocol plugin for Remmina.
%package plugin-telepathy
Summary: Telepathy Protocol Plugin for Remmina
Group: Productivity/Networking/Other
Requires: remmina = %{version}
%description plugin-telepathy
This package provides the Telepathy plugin for Remmina.
%package plugin-secret
Summary: Gnome Keyring Pasword Manager Plugin for Remmina
Group: Productivity/Networking/Other
Requires: remmina = %{version}
Provides: remmina-plugins-gnome = %{version}
Obsoletes: remmina-plugins-gnome < %{version}
%description plugin-secret
This package provides a Remmina plugin for the GNOME keyring password manager.
%lang_package
%prep
%setup -q -n Remmina-v%{version}
%build
export LDFLAGS="-pie"
export CFLAGS="%{optflags} -fPIE -pie"
%if 0%{?is_opensuse}
%cmake
%else
%cmake -DWITH_APPINDICATOR=OFF
%endif
make %{?_smp_mflags}
%install
%cmake_install
%if %{without nx}
rm -f %{buildroot}%{_libdir}/remmina/plugins/remmina-plugin-nx.so \
%{buildroot}%{_datadir}/icons/hicolor/*/emblems/remmina-nx.png
%endif
%suse_update_desktop_file org.remmina.Remmina Network RemoteAccess GTK
%fdupes %{buildroot}%{_datadir}/remmina
%fdupes %{buildroot}%{_datadir}/icons/hicolor/*/actions
%find_lang %{name}
# Begin: all icons/desktop updates only for suse < 1500
%if 0%{?suse_version} < 1500
%post
%desktop_database_post
%icon_theme_cache_post
%postun
%desktop_database_postun
%icon_theme_cache_postun
%post plugin-exec
%icon_theme_cache_post
%postun plugin-exec
%icon_theme_cache_postun
%post plugin-spice
%icon_theme_cache_post
%postun plugin-spice
%icon_theme_cache_postun
%post plugin-xdmcp
%icon_theme_cache_post
%postun plugin-xdmcp
%icon_theme_cache_postun
%if %{with nx}
%post plugin-nx
%icon_theme_cache_post
%postun plugin-nx
%icon_theme_cache_postun
%endif
%post plugin-rdp
%icon_theme_cache_post
%postun plugin-rdp
%icon_theme_cache_postun
%postun plugin-st
%icon_theme_cache_postun
%post plugin-vnc
%icon_theme_cache_post
%postun plugin-vnc
%icon_theme_cache_postun
%post plugin-telepathy
%icon_theme_cache_post
%postun plugin-telepathy
%icon_theme_cache_postun
# end: only for suse < 1500
%endif
%files
%license LICENSE LICENSE.OpenSSL
%doc AUTHORS CHANGELOG.md README.md
%{_bindir}/%{name}
%{_datadir}/applications/%{name}-file.desktop
%{_datadir}/applications/org.remmina.Remmina.desktop
%{_datadir}/icons/hicolor/*/actions/*
%{_datadir}/icons/hicolor/*/apps/*
%{_datadir}/icons/hicolor/scalable/emblems/remmina-sftp-symbolic.svg
%{_datadir}/icons/hicolor/scalable/emblems/remmina-ssh-symbolic.svg
%dir %{_datadir}/metainfo
%{_datadir}/metainfo/org.remmina.Remmina.appdata.xml
%{_datadir}/mime/packages/%{name}-mime.xml
%{_datadir}/%{name}
%dir %{_libdir}/%{name}
%dir %{_libdir}/%{name}/plugins/
%{_mandir}/man1/%{name}.1%{?ext_man}
%files kiosk
%{_datadir}/gnome-session
%dir %{_datadir}/gnome-session/sessions
%{_datadir}/gnome-session/sessions/remmina-gnome.session
%{_bindir}/gnome-session-remmina
%{_bindir}/remmina-gnome
%{_mandir}/man1/gnome-session-remmina.1%{?ext_man}
%{_mandir}/man1/remmina-gnome.1%{?ext_man}
%{_datadir}/xsessions/remmina-gnome.desktop
%{_datadir}/applications/%{name}-gnome.desktop
%if !%{with nx}
%exclude %{_datadir}/icons/hicolor/scalable/emblems/remmina-nx-symbolic.svg
%endif
%files lang -f %{name}.lang
%files devel
%{_includedir}/%{name}/
%{_libdir}/pkgconfig/%{name}.pc
%files plugin-exec
%{_libdir}/remmina/plugins/remmina-plugin-exec.so
%{_datadir}/icons/hicolor/scalable/emblems/remmina-tool-symbolic.svg
%files plugin-spice
%{_libdir}/remmina/plugins/remmina-plugin-spice.so
%{_datadir}/icons/hicolor/scalable/emblems/remmina-spice-ssh-symbolic.svg
%{_datadir}/icons/hicolor/scalable/emblems/remmina-spice-symbolic.svg
%files plugin-xdmcp
%{_libdir}/remmina/plugins/remmina-plugin-xdmcp.so
%{_datadir}/icons/hicolor/scalable/emblems/remmina-xdmcp-ssh-symbolic.svg
%{_datadir}/icons/hicolor/scalable/emblems/remmina-xdmcp-symbolic.svg
%if %{with nx}
%files plugin-nx
%{_libdir}/remmina/plugins/remmina-plugin-nx.so
%{_datadir}/icons/hicolor/scalable/emblems/remmina-nx-symbolic.svg
%endif
%files plugin-rdp
%{_libdir}/remmina/plugins/remmina-plugin-rdp.so
%{_datadir}/icons/hicolor/scalable/emblems/remmina-rdp-ssh-symbolic.svg
%{_datadir}/icons/hicolor/scalable/emblems/remmina-rdp-symbolic.svg
%files plugin-st
%{_libdir}/remmina/plugins/remmina-plugin-st.so
%files plugin-vnc
%{_libdir}/remmina/plugins/remmina-plugin-vnc.so
%{_datadir}/icons/hicolor/scalable/emblems/remmina-vnc-ssh-symbolic.svg
%{_datadir}/icons/hicolor/scalable/emblems/remmina-vnc-symbolic.svg
%files plugin-telepathy
%dir %{_datadir}/telepathy
%dir %{_datadir}/telepathy/clients
%{_libdir}/remmina/plugins/remmina-plugin-telepathy.so
%{_datadir}/dbus-1/services/org.freedesktop.Telepathy.Client.Remmina.service
%{_datadir}/telepathy/clients/Remmina.client
%files plugin-secret
%{_libdir}/remmina/plugins/remmina-plugin-secret.so
%changelog