[packages/remmina] - new, based on fedora spec

adamg adamg at pld-linux.org
Sun Mar 24 12:25:09 CET 2019


commit bff36d3601b39ac5164082fda334e6e6539a4b32
Author: Adam Gołębiowski <adamg at pld-linux.org>
Date:   Sun Mar 24 12:24:53 2019 +0100

    - new, based on fedora spec

 pluginBuild-CMakeLists.txt |  34 +++++++
 remmina.spec               | 245 +++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 279 insertions(+)
---
diff --git a/remmina.spec b/remmina.spec
new file mode 100644
index 0000000..bc9c15f
--- /dev/null
+++ b/remmina.spec
@@ -0,0 +1,245 @@
+Summary:	Remote Desktop Client
+Name:		remmina
+Version:	1.3.4
+Release:	1
+License:	GPLv2+ and MIT
+Group:		X11/Applications
+Source0:	https://gitlab.com/Remmina/Remmina/-/archive/v1.3.4/Remmina-v%{version}.tar.bz2
+# Source0-md5:	cd00d28c5b895037901d8aa9f9ace9fc
+# Cmake helper file to easy build plugins outside remmina source tree
+# See http://www.muflone.com/remmina-plugin-rdesktop/english/install.html which
+# use http://www.muflone.com/remmina-plugin-builder/ with remmina bundled source.
+# So we can't use it directly only as instructions.
+Source1:	pluginBuild-CMakeLists.txt
+URL:		http://remmina.org
+BuildRequires:	appstream-glib
+BuildRequires:	avahi-ui-gtk3-devel >= 0.6.30
+BuildRequires:	cmake >= 2.8
+BuildRequires:	desktop-file-utils
+BuildRequires:	freerdp2-devel >= 2.0.0-0.20190320
+BuildRequires:	gettext
+BuildRequires:	gtk+3-devel
+BuildRequires:	intltool
+BuildRequires:	json-glib-devel
+BuildRequires:	libappindicator-gtk3-devel
+BuildRequires:	libgcrypt-devel
+BuildRequires:	libsecret-devel
+BuildRequires:	libsoup-devel
+BuildRequires:	libssh-devel >= 0.6
+BuildRequires:	libvncserver-devel
+#BuildRequires:	pkgconfig(vte-2.91)
+BuildRequires:	spice-gtk-devel
+BuildRequires:	xorg-lib-libxkbfile-devel
+
+%description
+Remmina is a remote desktop client written in GTK+, aiming to be
+useful for system administrators and travelers, who need to work with
+lots of remote computers in front of either large monitors or tiny
+net-books.
+
+Remmina supports multiple network protocols in an integrated and
+consistent user interface. Currently RDP, VNC, XDMCP and SSH are
+supported.
+
+Please don't forget to install the plugins for the protocols you want
+to use.
+
+%package        devel
+Summary:	Development files for %{name}
+Requires:	%{name} = %{version}-%{release}
+Requires:	pkgconfig
+
+%description    devel
+The %{name}-devel package contains header files for developing plugins
+for %{name}.
+
+%package        plugins-exec
+Summary:	External execution plugin for Remmina Remote Desktop Client
+Requires:	%{name} = %{version}-%{release}
+
+%description    plugins-exec
+Remmina is a remote desktop client written in GTK+, aiming to be
+useful for system administrators and travelers, who need to work with
+lots of remote computers in front of either large monitors or tiny
+net-books.
+
+This package contains the plugin to execute external processes
+(commands or applications) from the Remmina window.
+
+%package        plugins-secret
+Summary:	Keyring integration for Remmina Remote Desktop Client
+Requires:	%{name} = %{version}-%{release}
+Provides:	%{name}-plugins-gnome%{?_isa} = %{version}-%{release}
+Obsoletes:	remmina-plugins-gnome < %{version}-%{release}
+
+%description    plugins-secret
+Remmina is a remote desktop client written in GTK+, aiming to be
+useful for system administrators and travelers, who need to work with
+lots of remote computers in front of either large monitors or tiny
+net-books.
+
+This package contains the plugin with keyring support for the Remmina
+remote desktop client.
+
+%package        plugins-nx
+Summary:	NX plugin for Remmina Remote Desktop Client
+Requires:	%{name} = %{version}-%{release}
+Requires:	nxproxy
+
+%description    plugins-nx
+Remmina is a remote desktop client written in GTK+, aiming to be
+useful for system administrators and travelers, who need to work with
+lots of remote computers in front of either large monitors or tiny
+net-books.
+
+This package contains the NX plugin for the Remmina remote desktop
+client.
+
+%package        plugins-rdp
+Summary:	RDP plugin for Remmina Remote Desktop Client
+Requires:	%{name} = %{version}-%{release}
+
+%description    plugins-rdp
+Remmina is a remote desktop client written in GTK+, aiming to be
+useful for system administrators and travelers, who need to work with
+lots of remote computers in front of either large monitors or tiny
+net-books.
+
+This package contains the Remote Desktop Protocol (RDP) plugin for the
+Remmina remote desktop client.
+
+%package        plugins-vnc
+Summary:	VNC plugin for Remmina Remote Desktop Client
+Requires:	%{name} = %{version}-%{release}
+
+%description    plugins-vnc
+Remmina is a remote desktop client written in GTK+, aiming to be
+useful for system administrators and travelers, who need to work with
+lots of remote computers in front of either large monitors or tiny
+net-books.
+
+This package contains the VNC plugin for the Remmina remote desktop
+client.
+
+%package        plugins-xdmcp
+Summary:	XDMCP plugin for Remmina Remote Desktop Client
+Requires:	%{name} = %{version}-%{release}
+Requires:	xorg-xserver-Xephyr
+
+%description    plugins-xdmcp
+Remmina is a remote desktop client written in GTK+, aiming to be
+useful for system administrators and travelers, who need to work with
+lots of remote computers in front of either large monitors or tiny
+net-books.
+
+This package contains the XDMCP plugin for the Remmina remote desktop
+client.
+
+%package        plugins-spice
+Summary:	SPICE plugin for Remmina Remote Desktop Client
+Requires:	%{name} = %{version}-%{release}
+
+%description    plugins-spice
+Remmina is a remote desktop client written in GTK+, aiming to be
+useful for system administrators and travelers, who need to work with
+lots of remote computers in front of either large monitors or tiny
+net-books.
+
+This package contains the SPICE plugin for the Remmina remote desktop
+client.
+
+%prep
+%setup -qn Remmina-v%{version}
+
+%build
+mkdir -p build
+
+%cmake --build=build \
+	-DCMAKE_INSTALL_LIBDIR=%{_lib} \
+	-DCMAKE_INSTALL_PREFIX=%{_prefix} \
+	-DWITH_APPINDICATOR=ON \
+	-DWITH_AVAHI=ON \
+	-DWITH_FREERDP=ON \
+	-DWITH_GCRYPT=ON \
+	-DWITH_GETTEXT=ON \
+	-DWITH_LIBSSH=ON \
+	-DWITH_SPICE=ON \
+	-DWITH_TELEPATHY=ON \
+	-DWITH_VTE=ON \
+	.
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT/%{_libdir}/cmake/%{name}/
+cp -pr cmake/*.cmake $RPM_BUILD_ROOT/%{_libdir}/cmake/%{name}/
+cp -pr config.h.in $RPM_BUILD_ROOT/%{_includedir}/%{name}/
+cp -p %{SOURCE1} $RPM_BUILD_ROOT/%{_includedir}/%{name}/
+
+%find_lang %{name}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files -f %{name}.lang
+%defattr(644,root,root,755)
+%doc LICENSE AUTHORS ChangeLog README.md
+%attr(755,root,root) %{_bindir}/remmina
+%{_datadir}/metainfo/*.appdata.xml
+%{_desktopdir}/*.desktop
+%{_iconsdir}/hicolor/*/actions/*.*
+%{_iconsdir}/hicolor/*/apps/*.*
+%{_datadir}/mime/packages/*.xml
+%{_datadir}/%{name}/
+%dir %{_libdir}/remmina/
+%dir %{_libdir}/remmina/plugins/
+%{_mandir}/man1/%{name}.*
+
+%files devel
+%defattr(644,root,root,755)
+%{_includedir}/%{name}/
+%{_pkgconfigdir}/%{name}.pc
+%{_libdir}/cmake/%{name}/*.cmake
+
+%files plugins-exec
+%defattr(644,root,root,755)
+%{_libdir}/remmina/plugins/remmina-plugin-exec.so
+
+%files plugins-secret
+%defattr(644,root,root,755)
+%{_libdir}/remmina/plugins/remmina-plugin-secret.so
+
+%files plugins-nx
+%defattr(644,root,root,755)
+%{_libdir}/remmina/plugins/remmina-plugin-nx.so
+%{_iconsdir}/hicolor/*/emblems/remmina-nx-symbolic.svg
+
+%files plugins-rdp
+%defattr(644,root,root,755)
+%{_libdir}/remmina/plugins/remmina-plugin-rdp.so
+%{_iconsdir}/hicolor/*/emblems/remmina-rdp-ssh-symbolic.svg
+%{_iconsdir}/hicolor/*/emblems/remmina-rdp-symbolic.svg
+
+%files plugins-vnc
+%defattr(644,root,root,755)
+%{_libdir}/remmina/plugins/remmina-plugin-vnc.so
+%{_iconsdir}/hicolor/*/emblems/remmina-vnc-ssh-symbolic.svg
+%{_iconsdir}/hicolor/*/emblems/remmina-vnc-symbolic.svg
+
+%files plugins-xdmcp
+%defattr(644,root,root,755)
+%{_libdir}/remmina/plugins/remmina-plugin-xdmcp.so
+%{_iconsdir}/hicolor/*/emblems/remmina-xdmcp-ssh-symbolic.svg
+%{_iconsdir}/hicolor/*/emblems/remmina-xdmcp-symbolic.svg
+
+%files plugins-spice
+%defattr(644,root,root,755)
+%{_libdir}/remmina/plugins/remmina-plugin-spice.so
+%{_iconsdir}/hicolor/*/emblems/remmina-spice-symbolic.svg
+%{_iconsdir}/hicolor/*/emblems/remmina-spice-ssh-symbolic.svg
+
+%changelog
diff --git a/pluginBuild-CMakeLists.txt b/pluginBuild-CMakeLists.txt
new file mode 100644
index 0000000..c228e6b
--- /dev/null
+++ b/pluginBuild-CMakeLists.txt
@@ -0,0 +1,34 @@
+# Remmina - The GTK+ Remote Desktop Client
+#
+# Copyright (C) 2014 Pavel Alexeev <Pahan at Hubbitus.info>
+# Work based on https://github.com/muflone/remmina-plugin-builder/blob/master/CMakeLists.txt
+# dramatically simplified and tied with Fedora remmina package. Thanks to Fabio Castelli.
+#
+# To build remmina plugin you need:
+#  1) install remmina-devel package
+#  2) ln -s %{_includedir}/remmina/config.h.in .
+#  3) ln -s %{_includedir}/remmina/pluginBuild-CMakeLists.txt CMakeLists.txt
+#  4) Put plugin source code in remmina-plugin-to-build directory
+#  5) Build it as usual: %{cmake} . ; make %{?_smp_mflags}…
+
+cmake_minimum_required(VERSION 2.6)
+set(CMAKE_COLOR_MAKEFILE ON)
+project(Remmina C)
+
+set(CMAKE_MODULE_PATH "${LIB_INSTALL_DIR}/cmake/remmina/")
+
+set(REMMINA_DATADIR "${CMAKE_INSTALL_PREFIX}/share")
+set(REMMINA_LOCALEDIR "${CMAKE_INSTALL_PREFIX}/share/locale")
+set(REMMINA_PLUGINDIR "${LIB_INSTALL_DIR}/remmina/plugins")
+
+include(FindPkgConfig)
+include(FindOptionalPackage)
+
+include_directories(.)
+
+add_definitions(-DHAVE_PTHREAD)
+
+find_required_package(GTK)
+add_subdirectory(remmina-plugin-to-build)
+
+configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.in ${CMAKE_CURRENT_SOURCE_DIR}/config.h)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/remmina.git/commitdiff/bff36d3601b39ac5164082fda334e6e6539a4b32



More information about the pld-cvs-commit mailing list