File remmina.spec of Package remmina
#
# spec file for package remmina
#
# Copyright (c) 2017 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 http://bugs.opensuse.org/
#
%bcond_with nx
%define realver 1.2.0-rcgit.18
Name: remmina
Version: 1.2.0~rcgit.18
Release: 0
Summary: Versatile Remote Desktop Client
License: GPL-2.0+
Group: Productivity/Networking/Other
Url: http://www.remmina.org/
Source0: https://github.com/FreeRDP/Remmina/archive/v%{realver}.tar.gz
BuildRequires: cmake
BuildRequires: ed
BuildRequires: intltool
BuildRequires: libgcrypt-devel
BuildRequires: libjpeg-devel
BuildRequires: pkgconfig
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(appindicator3-0.1)
BuildRequires: pkgconfig(atk)
BuildRequires: pkgconfig(avahi-glib)
BuildRequires: pkgconfig(cairo)
BuildRequires: pkgconfig(freerdp2) >= 2.0
BuildRequires: pkgconfig(gdk-pixbuf-2.0)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gnutls)
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(libsecret-1)
BuildRequires: pkgconfig(libssh)
BuildRequires: pkgconfig(libvncserver)
BuildRequires: pkgconfig(pango)
BuildRequires: pkgconfig(spice-client-gtk-3.0)
BuildRequires: pkgconfig(telepathy-glib)
BuildRequires: pkgconfig(unique-1.0)
BuildRequires: pkgconfig(webkit2gtk-4.0)
BuildRequires: pkgconfig(winpr2)
BuildRequires: pkgconfig(xkbfile)
Recommends: %{name}-lang = %{version}
Provides: remmina-plugins-common = %{version}
Obsoletes: remmina-plugins-common < 1.0.0
BuildRequires: pkgconfig(vte-2.91)
%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 devel
Summary: Development Files for %{name}
Group: Development/Libraries/Other
Requires: %{name} = %{version}
%description devel
This package contains header files needed for developing plugins for
Remmina.
%package -n remmina-plugin-spice
Summary: SPICE Protocol Plugin for Remmina
Group: Productivity/Networking/Other
Requires: remmina = %{version}
%description -n remmina-plugin-spice
This package provides the SPICE protocol plugin for Remmina.
%package -n remmina-plugin-xdmcp
Summary: XDMCP Protocol Plugin for Remmina
Group: Productivity/Networking/Other
Requires: remmina = %{version}
%description -n remmina-plugin-xdmcp
This package provides the XDMCP protocol plugin for Remmina.
%if %{with nx}
%package -n remmina-plugin-nx
Summary: NX Protocol Plugin for Remmina
# for nxproxy
Group: Productivity/Networking/Other
Requires: NX
Requires: remmina = %{version}
%description -n remmina-plugin-nx
This package provides the NX protocol plugin for Remmina.
%endif
%package -n remmina-plugin-rdp
Summary: RDP Protocol Plugin for Remmina
Group: Productivity/Networking/Other
Requires: freerdp
Requires: remmina = %{version}
%description -n remmina-plugin-rdp
This package provides the RDP protocol plugin for Remmina.
%package -n remmina-plugin-vnc
Summary: VNC Protocol Plugin for Remmina
Group: Productivity/Networking/Other
Requires: remmina = %{version}
%description -n remmina-plugin-vnc
This package provides the RDP protocol plugin for Remmina.
#%%package -n remmina-plugin-telepathy
#Summary: Telepathy Protocol Plugin for Remmina
#Group: Productivity/Networking/Other
#Requires: remmina = %%{version}
#%%description -n remmina-plugin-telepathy
#This package provides the Telepathy plugin for Remmina.
%package -n remmina-plugins-gnome
Summary: GNOME Plugins for Remmina
Group: Productivity/Networking/Other
Requires: remmina = %{version}
%description -n remmina-plugins-gnome
This package provides the GNOME plugins for Remmina.
%lang_package
%prep
%setup -q -n Remmina-%{realver}
%build
#TODO: When gh#FreeRDP/Remmina#714 is fixed enable TELEPATHY
%cmake \
-DWITH_TELEPATHY=OFF
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 %{name} Network RemoteAccess GTK
%find_lang %{name}
%post
%desktop_database_post
%icon_theme_cache_post
%postun
%desktop_database_postun
%icon_theme_cache_postun
%post -n remmina-plugin-spice
%icon_theme_cache_post
%postun -n remmina-plugin-spice
%icon_theme_cache_postun
%post -n remmina-plugin-xdmcp
%icon_theme_cache_post
%postun -n remmina-plugin-xdmcp
%icon_theme_cache_postun
%if %{with nx}
%post -n remmina-plugin-nx
%icon_theme_cache_post
%postun -n remmina-plugin-nx
%icon_theme_cache_postun
%endif
%post -n remmina-plugin-rdp
%icon_theme_cache_post
%postun -n remmina-plugin-rdp
%icon_theme_cache_postun
%post -n remmina-plugin-vnc
%icon_theme_cache_post
%postun -n remmina-plugin-vnc
%icon_theme_cache_postun
#%%post -n remmina-plugin-telepathy
#%%icon_theme_cache_post
#%%postun -n remmina-plugin-telepathy
#%%icon_theme_cache_postun
%files
%defattr(-,root,root)
%doc AUTHORS CHANGELOG.md LICENSE LICENSE.OpenSSL README.md
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/actions/*
%{_datadir}/icons/hicolor/*/apps/*
%{_datadir}/icons/hicolor/*/emblems/remmina-sftp.png
%dir %{_datadir}/appdata
%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/%{name}
%dir %{_libdir}/%{name}
%dir %{_libdir}/%{name}/plugins/
%{_mandir}/man1/%{name}.1.gz
%files lang -f %{name}.lang
%defattr(-,root,root)
%files devel
%defattr(-,root,root)
%{_includedir}/%{name}/
%{_libdir}/pkgconfig/%{name}.pc
%files -n remmina-plugin-spice
%defattr(-,root,root)
%{_libdir}/remmina/plugins/remmina-plugin-spice.so
%{_datadir}/icons/hicolor/*/emblems/remmina-spice.png
%files -n remmina-plugin-xdmcp
%defattr(-,root,root)
%{_libdir}/remmina/plugins/remmina-plugin-xdmcp.so
%{_datadir}/icons/hicolor/*/emblems/remmina-xdmcp-ssh.png
%{_datadir}/icons/hicolor/*/emblems/remmina-xdmcp.png
%if %{with nx}
%files -n remmina-plugin-nx
%defattr(-,root,root)
%{_libdir}/remmina/plugins/remmina-plugin-nx.so
%{_datadir}/icons/hicolor/*/emblems/remmina-nx.png
%endif
%files -n remmina-plugin-rdp
%defattr(-,root,root)
%{_libdir}/remmina/plugins/remmina-plugin-rdp.so
%{_datadir}/icons/hicolor/*/emblems/remmina-rdp-ssh.png
%{_datadir}/icons/hicolor/*/emblems/remmina-rdp.png
%files -n remmina-plugin-vnc
%defattr(-,root,root)
%{_libdir}/remmina/plugins/remmina-plugin-vnc.so
%{_datadir}/icons/hicolor/*/emblems/remmina-vnc-ssh.png
%{_datadir}/icons/hicolor/*/emblems/remmina-vnc.png
#%%files -n remmina-plugin-telepathy
#%%defattr(-,root,root)
#%%{_libdir}/remmina/plugins/remmina-plugin-telepathy.so
%files -n remmina-plugins-gnome
%defattr(-,root,root)
%{_libdir}/remmina/plugins/remmina-plugins-gnome.so
%changelog