remmina-vl.spec 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408
  1. %bcond_with telepathy
  2. %define _unpackaged_files_terminate_build 1
  3. Summary: Remote Desktop Connection utility
  4. Summary(ja): リモートデスクトップ接続ユーティリティ
  5. Name: remmina
  6. Version: 1.4.3
  7. Release: 1%{?_dist_release}
  8. Group: User Interface/Desktops
  9. Vendor: Project Vine
  10. Distribution: Vine Linux
  11. License: GPLv2+ and MIT
  12. URL: https://remmina.org/
  13. Source0: https://gitlab.com/Remmina/Remmina/-/archive/v%{version}/Remmina-v%{version}.tar.bz2
  14. # Cmake helper file to easy build plugins outside remmina source tree
  15. # See http://www.muflone.com/remmina-plugin-rdesktop/english/install.html which
  16. # use http://www.muflone.com/remmina-plugin-builder/ with remmina bundled source.
  17. # So we can't use it directly only as instructions.
  18. Source1: pluginBuild-CMakeLists.txt
  19. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  20. BuildRequires: gtk3-devel
  21. BuildRequires: vte3-devel
  22. BuildRequires: libgcrypt-devel
  23. BuildRequires: libssh-devel
  24. BuildRequires: avahi-ui-gtk3-devel
  25. BuildRequires: libxkbfile-devel
  26. BuildRequires: desktop-file-utils
  27. BuildRequires: gnutls-devel
  28. BuildRequires: libjpeg-devel
  29. BuildRequires: libvncserver-devel
  30. BuildRequires: libsecret-devel
  31. BuildRequires: libsodium-devel
  32. BuildRequires: freerdp-devel >= 1.0.1
  33. %if %{with telepathy}
  34. BuildRequires: telepathy-glib-devel
  35. %endif
  36. BuildRequires: json-glib-devel
  37. BuildRequires: libsoup-devel
  38. BuildRequires: cmake
  39. BuildRequires: gettext
  40. BuildRequires: intltool
  41. Obsoletes: grdc < 0.7.0
  42. Provides: grdc = %{version}
  43. Obsoletes: remmina-gnome <= 0.7.3
  44. %description
  45. Remmina is a remote desktop client written in GTK+, aiming to be
  46. useful for system administrators and travelers, who need to work
  47. with lots of remote computers in front of either large monitors or
  48. tiny netbooks.
  49. %package devel
  50. Summary: Development tools for remmina
  51. Summary(ja): remmina の開発環境
  52. Group: Development/Libraries
  53. Requires: %{name} = %{version}-%{release}
  54. Requires: pkgconfig
  55. %description devel
  56. Header files and libraries for building a extension library for the
  57. remmina.
  58. %package plugins-exec
  59. Summary: External execution plugin for Remmina Remote Desktop Client
  60. Summary(ja): Remmina の外部プロセス実行プラグイン
  61. Requires: %{name}%{?_isa} = %{version}-%{release}
  62. %description plugins-exec
  63. Remmina is a remote desktop client written in GTK+, aiming to be useful for
  64. system administrators and travelers, who need to work with lots of remote
  65. computers in front of either large monitors or tiny net-books.
  66. This package contains the plugin to execute external processes (commands or
  67. applications) from the Remmina window.
  68. %package plugins-secret
  69. Summary: GNOME keyring integration for Remmina Remote Desktop Client
  70. Summary(ja): Remmina の GNOMEキーリング統合
  71. Group: User Interface/Desktops
  72. Requires: %{name} = %{version}-%{release}
  73. Obsoletes: %{name}plugins-gnome < 1.2
  74. Provides: %{name}-plugins-gnome = %{version}-%{release}
  75. %description plugins-secret
  76. Remmina is a remote desktop client written in GTK+, aiming to be
  77. useful for system administrators and travelers, who need to work
  78. with lots of remote computers in front of either large monitors or
  79. tiny netbooks.
  80. This package contains the plugin with GNOME keyring support for the
  81. Remmina remote desktop client.
  82. %package plugins-nx
  83. Summary: NX plugin for Remmina Remote Desktop Client
  84. Summary(ja): Remmina の NX プラグイン
  85. Group: User Interface/Desktops
  86. Requires: %{name} = %{version}-%{release}
  87. # temporally disabled
  88. #Requires: nx
  89. %description plugins-nx
  90. Remmina is a remote desktop client written in GTK+, aiming to be
  91. useful for system administrators and travelers, who need to work
  92. with lots of remote computers in front of either large monitors or
  93. tiny netbooks.
  94. This package contains the NX plugin for the Remmina remote desktop
  95. client.
  96. %package plugins-rdp
  97. Summary: RDP plugin for Remmina Remote Desktop Client
  98. Summary(ja): Remmina の RDP プラグイン
  99. Group: User Interface/Desktops
  100. Requires: %{name} = %{version}-%{release}
  101. Requires: freerdp
  102. %description plugins-rdp
  103. Remmina is a remote desktop client written in GTK+, aiming to be
  104. useful for system administrators and travelers, who need to work
  105. with lots of remote computers in front of either large monitors or
  106. tiny netbooks.
  107. This package contains the Remote Desktop Protocol (RDP) plugin for the
  108. Remmina remote desktop client.
  109. %if %{with telepathy}
  110. %package plugins-telepathy
  111. Summary: Telepathy plugin for Remmina Remote Desktop Client
  112. Summary(ja): Remmina の Telepathy プラグイン
  113. Group: User Interface/Desktops
  114. Requires: %{name} = %{version}-%{release}
  115. %description plugins-telepathy
  116. Remmina is a remote desktop client written in GTK+, aiming to be
  117. useful for system administrators and travelers, who need to work
  118. with lots of remote computers in front of either large monitors or
  119. tiny netbooks.
  120. This package contains the Telepathy plugin for the Remmina remote
  121. desktop client.
  122. %endif
  123. %package plugins-st
  124. Summary: Simple Terminal plugin for Remmina Remote Desktop Client
  125. Summary(ja): Remmina のシンプルな端末プラグイン
  126. Requires: %{name}%{?_isa} = %{version}-%{release}
  127. %description plugins-st
  128. Remmina is a remote desktop client written in GTK+, aiming to be useful for
  129. system administrators and travelers, who need to work with lots of remote
  130. computers in front of either large monitors or tiny net-books.
  131. This package contains the Simple Terminal plugin for the Remmina remote desktop
  132. client.
  133. %package plugins-vnc
  134. Summary: VNC plugin for Remmina Remote Desktop Client
  135. Summary(ja): Remmina の VNC プラグイン
  136. Group: User Interface/Desktops
  137. Requires: %{name} = %{version}-%{release}
  138. %description plugins-vnc
  139. Remmina is a remote desktop client written in GTK+, aiming to be
  140. useful for system administrators and travelers, who need to work
  141. with lots of remote computers in front of either large monitors or
  142. tiny netbooks.
  143. This package contains the VNC plugin for the Remmina remote desktop
  144. client.
  145. %package plugins-xdmcp
  146. Summary: XDMCP plugin for Remmina Remote Desktop Client
  147. Summary(ja): Remmina の XDMCP プラグイン
  148. Group: User Interface/Desktops
  149. Requires: %{name} = %{version}-%{release}
  150. Requires: xorg-x11-server-Xephyr
  151. %description plugins-xdmcp
  152. Remmina is a remote desktop client written in GTK+, aiming to be
  153. useful for system administrators and travelers, who need to work
  154. with lots of remote computers in front of either large monitors or
  155. tiny netbooks.
  156. This package contains the XDMCP plugin for the Remmina remote desktop
  157. client.
  158. %package gnome-session
  159. Summary: Gnome Shell session for Remmina kiosk mode
  160. Summary(ja): Remmina の GNOME Shell セッション
  161. Requires: %{name}%{?_isa} = %{version}-%{release}
  162. Requires: gnome-session
  163. %description gnome-session
  164. Remmina is a remote desktop client written in GTK+, aiming to be useful for
  165. system administrators and travelers, who need to work with lots of remote
  166. computers in front of either large monitors or tiny net-books.
  167. This package contains Remmina kiosk mode, including a Gnome Shell session
  168. that shows up under the display manager session menu.
  169. %prep
  170. %autosetup -n Remmina-v%{version}
  171. %build
  172. mkdir -p build
  173. LDFLAGS="-Wl,-z,relro -Wl,--no-as-needed"
  174. %cmake --build=build \
  175. -DCMAKE_INSTALL_LIBDIR=%{_lib} \
  176. -DCMAKE_INSTALL_PREFIX=%{_prefix} \
  177. -DWITH_APPINDICATOR=NO \
  178. -DWITH_AVAHI=ON \
  179. -DWITH_FREERDP=ON \
  180. -DWITH_GCRYPT=ON \
  181. -DWITH_GETTEXT=ON \
  182. -DWITH_LIBSSH=ON \
  183. -DWITH_PTHREAD=ON \
  184. -DWITH_LIBSSH=ON \
  185. %if %{with telepathy}
  186. -DWITH_TELEPATHY=ON \
  187. %endif
  188. -DWITH_VTE=ON \
  189. -DWITH_ZLIB=ON \
  190. -DWITH_GETTEXT=ON \
  191. -LIBVNCSERVER_INCLUDE_DIRS=%{_includedir} \
  192. .
  193. make %{?_smp_mflags}
  194. %install
  195. rm -rf %{buildroot}
  196. # make install DESTDIR=%{buildroot}
  197. %makeinstall DESTDIR=%{buildroot}
  198. mkdir -p %{buildroot}/%{_libdir}/cmake/%{name}/
  199. cp -pr cmake/*.cmake %{buildroot}/%{_libdir}/cmake/%{name}/
  200. cp -pr config.h.in %{buildroot}/%{_includedir}/%{name}/
  201. cp -p %{SOURCE1} %{buildroot}/%{_includedir}/%{name}/
  202. %find_lang %{name}
  203. %clean
  204. rm -rf $RPM_BUILD_ROOT
  205. %post
  206. update-desktop-database -q
  207. touch --no-create %{_datadir}/icons/hicolor
  208. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  209. gtk-update-icon-cache -q %{_datadir}/icons/hicolor &>/dev/null ||:
  210. fi
  211. %postun
  212. update-desktop-database -q
  213. touch --no-create %{_datadir}/icons/hicolor
  214. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  215. gtk-update-icon-cache -q %{_datadir}/icons/hicolor &>/dev/null ||:
  216. fi
  217. %posttrans
  218. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  219. gtk-update-icon-cache -q %{_datadir}/icons/hicolor &>/dev/null ||:
  220. fi
  221. %files -f %{name}.lang
  222. %defattr(-,root,root,-)
  223. %license LICENSE
  224. %doc AUTHORS ChangeLog README.md
  225. %{_bindir}/%{name}
  226. %{_bindir}/%{name}-file-wrapper
  227. %{_datadir}/metainfo/*.appdata.xml
  228. %{_datadir}/applications/*.desktop
  229. %{_datadir}/icons/hicolor/*/actions/*.*
  230. %{_datadir}/icons/hicolor/*/apps/*.*
  231. %{_datadir}/icons/hicolor/*/emblems/remmina-*.svg
  232. %{_datadir}/icons/hicolor/apps/*.*
  233. %{_datadir}/icons/hicolor/scalable/panel/remmina-*.svg
  234. %{_datadir}/mime/packages/*.xml
  235. %{_datadir}/%{name}/
  236. %dir %{_libdir}/remmina/
  237. %dir %{_libdir}/remmina/plugins/
  238. %{_mandir}/man1/%{name}.*
  239. %{_mandir}/man1/%{name}-file-wrapper.*
  240. %files devel
  241. %defattr(-,root,root,-)
  242. %doc
  243. %{_includedir}/%{name}/
  244. %{_libdir}/pkgconfig/%{name}.pc
  245. %{_libdir}/cmake/%{name}/*.cmake
  246. %files plugins-exec
  247. %{_libdir}/remmina/plugins/remmina-plugin-exec.so
  248. %files plugins-secret
  249. %defattr(-,root,root,-)
  250. %{_libdir}/remmina/plugins/remmina-plugin-secret.so
  251. %files plugins-nx
  252. %defattr(-,root,root,-)
  253. %{_libdir}/remmina/plugins/remmina-plugin-nx.so
  254. %{_datadir}/icons/hicolor/*/emblems/remmina-nx-symbolic.svg
  255. %files plugins-rdp
  256. %defattr(-,root,root,-)
  257. %{_libdir}/remmina/plugins/remmina-plugin-rdp.so
  258. %{_datadir}/icons/hicolor/*/emblems/remmina-rdp-ssh-symbolic.svg
  259. %{_datadir}/icons/hicolor/*/emblems/remmina-rdp-symbolic.svg
  260. %if %{with telepathy}
  261. %files plugins-telepathy
  262. %defattr(-,root,root,-)
  263. %{_libdir}/remmina/plugins/remmina-plugin-telepathy.so
  264. %{_datadir}/dbus-1/services/org.freedesktop.Telepathy.Client.Remmina.service
  265. %{_datadir}/telepathy/clients/Remmina.client
  266. %endif
  267. %files plugins-st
  268. %{_libdir}/remmina/plugins/remmina-plugin-st.so
  269. %{_datadir}/icons/hicolor/*/emblems/remmina-tool-symbolic.svg
  270. %files plugins-vnc
  271. %defattr(-,root,root,-)
  272. %{_libdir}/remmina/plugins/remmina-plugin-vnc.so
  273. %{_datadir}/icons/hicolor/*/emblems/remmina-vnc-ssh-symbolic.svg
  274. %{_datadir}/icons/hicolor/*/emblems/remmina-vnc-symbolic.svg
  275. %files plugins-xdmcp
  276. %defattr(-,root,root,-)
  277. %{_libdir}/remmina/plugins/remmina-plugin-xdmcp.so
  278. %{_datadir}/icons/hicolor/*/emblems/remmina-xdmcp-ssh-symbolic.svg
  279. %{_datadir}/icons/hicolor/*/emblems/remmina-xdmcp-symbolic.svg
  280. %files gnome-session
  281. %{_bindir}/gnome-session-remmina
  282. %{_bindir}/remmina-gnome
  283. %{_datadir}/gnome-session/sessions/remmina-gnome.session
  284. %{_datadir}/xsessions/remmina-gnome.desktop
  285. %{_mandir}/man1/gnome-session-remmina.1.*
  286. %{_mandir}/man1/remmina-gnome.1.*
  287. %changelog
  288. * Sat May 16 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.4.3-1
  289. - new upstream release.
  290. * Sun Dec 02 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.2.32.1-1
  291. - new upstream release.
  292. - dropped all patches.
  293. - dropped Source10.
  294. - added Source1.
  295. - droped a subpackage 'remmina-plugins-common'.
  296. - renamed a subpackage 'remmina-plugins-gnome' to 'remmina-plugins-secret'.
  297. - added subpackages 'remmina-{plugins-{exec,st},gnome-session}'.
  298. * Fri Feb 26 2016 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.0.0-5
  299. - rebuild with libssh 0.7.3
  300. * Wed Dec 30 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.0-4
  301. - rebuild with gnutls-3.4.7
  302. * Sun Jul 19 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.0-3
  303. - change BuildRequires: vte3-devel instead of vte290-devel
  304. - add Pach100 (remmina-1.0.0-vte3.patch)
  305. * Mon Jan 12 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 1.0.0-2
  306. - rebuilt with libgcrypt 1.6.0 and gnutls 3.2.20
  307. - modified BR: vte290-devel instead of vte3-devel
  308. - moved to User Interface/Desktops Group
  309. * Fri Oct 19 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.0-1
  310. - Update to 1.0.0
  311. - add BuildRequires
  312. - add patches from fedora package (upstream patches)
  313. - add subpackage for plugins
  314. * Thu Aug 18 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.3-1
  315. - new upstream release
  316. - add BuildRequires: avahi-ui-devel, vte-devel, unique-devel, desktop-file-utils
  317. - create devel sub package
  318. * Wed Mar 17 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 0.7.4-1
  319. - new upstream release with new name 'remmina'
  320. - add Obsoletes/Provides: grdc
  321. * Tue Sep 15 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.6.0-1
  322. - initial build for Vine Linux
  323. * Tue Jul 07 2009 slick50 <lxgator@gmail.com> 0.6.0-1pclos2009
  324. - new version 0.6.0
  325. * Sun May 17 2009 don_crissti <don_crissti@gmx.com> 0.5.1-1pclos2009
  326. - build for PCLOS