File remmina.spec of Package remmina
#
# spec file for package remmina
#
# Copyright (c) 2012 SUSE LINUX Products 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
Name: remmina
Version: 1.0.0
Release: 0
Summary: Versatile Remote Desktop Client
License: GPL-2.0+
Group: Productivity/Networking/Other
Url: http://remmina.sourceforge.net/
Source0: https://github.com/downloads/FreeRDP/Remmina/Remmina-%{version}.tar.gz
Source1: README.SuSE
# PATCH-FIX-UPSTREAM remmina-fix-linker-issue.patch gankov@opensuse.org -- Fixes linking issue (backport from upstream git)
Patch0: remmina-fix-linker-issue.patch
# PATCH-FIX-UPSTREAM remmina-fix-desktop-file.patch gber@opensuse.org -- Fixes the installation of the .desktop file (backport from upstream git)
Patch1: remmina-fix-desktop-file.patch
# PATCH-FIX-UPSTREAM remmina-fix-install-paths.patch gber@opensuse.org -- Installs plugins under %%{_libdir} (backport from upstream git)
Patch2: remmina-fix-install-paths.patch
# PATCH-FIX-UPSTREAM remmina-gtk-2-22-support.patch gankov@opensuse.org -- Build on openSUSE 11.4 with GTK 2.22 as upstream requires 2.24+
Patch3: remmina-gtk-2-22-support.patch
# PATCH-FIX-UPSTREAM remmina-remove-inline-libvncserver.patch gber@opensuse.org -- Remove inline copy of libvncserver (backport from upstream git)
Patch4: remmina-remove-inline-libvncserver.patch
BuildRequires: cmake
BuildRequires: ed
BuildRequires: intltool
BuildRequires: libgcrypt-devel
BuildRequires: libjpeg-devel
BuildRequires: libssh-devel
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(atk)
BuildRequires: pkgconfig(avahi-glib)
BuildRequires: pkgconfig(cairo)
BuildRequires: pkgconfig(freerdp) >= 1.0
BuildRequires: pkgconfig(gdk-pixbuf-2.0)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gnome-keyring-1)
BuildRequires: pkgconfig(gnutls)
BuildRequires: pkgconfig(libvncserver)
BuildRequires: pkgconfig(pango)
BuildRequires: pkgconfig(telepathy-glib)
BuildRequires: pkgconfig(unique-1.0)
BuildRequires: pkgconfig(xkbfile)
%if 0%{?suse_version} >= 1210
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(vte-2.90)
%else
BuildRequires: pkgconfig(gdk-x11-2.0)
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(vte)
%endif
Provides: remmina-plugins-common = %{version}
Obsoletes: remmina-plugins-common < 1.0.0
Recommends: %{name}-lang = %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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-xdmcp
Summary: XDMCP Protocol Plugin for Remmina
Group: Productivity/Networking/Other
Requires: remmina >= %{version}
# for Xephyr
Requires: xorg-x11-server-extra
%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
Group: Productivity/Networking/Other
Requires: remmina >= %{version}
# for nxproxy
Requires: NX
%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 FreeRDP-Remmina-356c033
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
cp -r %{SOURCE1} README.SuSE
%build
mkdir build
cd build
export CFLAGS="%{optflags}"
cmake \
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
-DCMAKE_INSTALL_LIBDIR=%{_lib} \
-DWITH_APPINDICATOR=OFF \
..
make %{?_smp_mflags} VERBOSE=1
%install
(
cd build
%make_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} %{?no_lang_C}
%find_lang %{name}-plugins %{?no_lang_C} %{name}.lang
%if 0%{?suse_version} >= 1140
%post
%desktop_database_post
%icon_theme_cache_post
%postun
%desktop_database_postun
%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
%endif
%files
%defattr(-,root,root)
%doc remmina/AUTHORS remmina/COPYING remmina/ChangeLog README README.SuSE
%{_bindir}/remmina
%{_datadir}/applications/remmina.desktop
%{_datadir}/icons/hicolor/*/actions/*
%{_datadir}/icons/hicolor/*/apps/*
%{_datadir}/icons/hicolor/*/emblems/remmina-sftp.png
%dir %{_libdir}/remmina
%dir %{_libdir}/remmina/plugins/
%files lang -f %{name}.lang
%files devel
%defattr(-,root,root)
%{_includedir}/%{name}/
%{_libdir}/pkgconfig/%{name}.pc
%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