remmina-vl.spec 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384
  1. Summary: Remote Desktop Connection utility
  2. Summary(ja): リモートデスクトップ接続ユーティリティ
  3. Name: remmina
  4. Version: 1.0.0
  5. Release: 4%{?_dist_release}
  6. License: GPLv2+ and MIT
  7. Group: User Interface/Desktops
  8. URL: http://remmina.sourceforge.net/
  9. Source0: https://github.com/downloads/FreeRDP/Remmina/Remmina-%{version}.tar.gz
  10. #VCS: git:https://github.com/FreeRDP/Remmina.git
  11. # from lauchpad
  12. Source10: remmina-ja.po
  13. # The following two patches will fix some linking errors
  14. # https://github.com/FreeRDP/Remmina/commit/503a008e
  15. Patch0: remmina-1.0.0-fix-library-name.patch
  16. # https://github.com/FreeRDP/Remmina/commit/13f20367
  17. Patch1: remmina-1.0.0-linker-error.patch
  18. # The following 4 patches are needed to add clipboard support (#818155)
  19. # https://github.com/FreeRDP/Remmina/commit/3ebdd6e7
  20. Patch2: remmina-1.0.0-add-clipboard-support.patch
  21. # https://github.com/FreeRDP/Remmina/commit/97c2af8c
  22. Patch3: remmina-1.0.0-clipboard-bugfix.patch
  23. # https://github.com/FreeRDP/Remmina/commit/84327f81
  24. Patch4: remmina-1.0.0-some-more-clipboard-fixes.patch
  25. # https://github.com/FreeRDP/Remmina/commit/c1ef3a16
  26. Patch5: remmina-1.0.0-disconnect-signal-handler-after-disconnect.patch
  27. # https://github.com/FreeRDP/Remmina/commit/6ee20289
  28. Patch10: remmina-1.0.0-fix-crashes-in-some-cases.patch
  29. # https://github.com/FreeRDP/Remmina/commit/b2277827
  30. Patch11: remmina-1.0.0-fix-memory-leak.patch
  31. # https://bugzilla.redhat.com/show_bug.cgi?id=819976
  32. Patch20: remmina-1.0.0-dsofix.patch
  33. Patch100: remmina-1.0.0-vte3.patch
  34. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  35. BuildRequires: gtk3-devel
  36. BuildRequires: vte3-devel
  37. BuildRequires: libgcrypt-devel
  38. BuildRequires: libssh-devel
  39. BuildRequires: avahi-ui-devel
  40. BuildRequires: libxkbfile-devel
  41. BuildRequires: desktop-file-utils
  42. BuildRequires: gnutls-devel
  43. BuildRequires: libjpeg-devel
  44. BuildRequires: libvncserver-devel
  45. BuildRequires: libgnome-keyring-devel
  46. BuildRequires: freerdp-devel >= 1.0.1
  47. BuildRequires: telepathy-glib-devel
  48. BuildRequires: cmake
  49. BuildRequires: gettext
  50. BuildRequires: intltool
  51. Obsoletes: grdc < 0.7.0
  52. Provides: grdc = %{version}
  53. Obsoletes: remmina-gnome <= 0.7.3
  54. %description
  55. Remmina is a remote desktop client written in GTK+, aiming to be
  56. useful for system administrators and travelers, who need to work
  57. with lots of remote computers in front of either large monitors or
  58. tiny netbooks.
  59. %package devel
  60. Summary: Development tools for remmina
  61. Summary(ja): remmina の開発環境
  62. Group: Development/Libraries
  63. Requires: %{name} = %{version}-%{release}
  64. Requires: pkgconfig
  65. %description devel
  66. Header files and libraries for building a extension library for the
  67. remmina.
  68. %package plugins-common
  69. Summary: Common files for Remmina Remote Desktop Client plugins
  70. Summary(ja): Remmina プラグインの共通ファイル
  71. Group: User Interface/Desktops
  72. Requires: %{name} >= 0.9
  73. %description plugins-common
  74. Remmina is a remote desktop client written in GTK+, aiming to be
  75. useful for system administrators and travelers, who need to work
  76. with lots of remote computers in front of either large monitors or
  77. tiny netbooks.
  78. This package contains files shared among all plugins for the Remmina
  79. remote desktop client.
  80. %package plugins-gnome
  81. Summary: GNOME keyring integration for Remmina Remote Desktop Client
  82. Summary(ja): Remmina の GNOMEキーリング統合
  83. Group: User Interface/Desktops
  84. Requires: %{name}-plugins-common = %{version}-%{release}
  85. Requires: libgnome-keyring
  86. %description plugins-gnome
  87. Remmina is a remote desktop client written in GTK+, aiming to be
  88. useful for system administrators and travelers, who need to work
  89. with lots of remote computers in front of either large monitors or
  90. tiny netbooks.
  91. This package contains the plugin with GNOME keyring support for the
  92. Remmina remote desktop client.
  93. %package plugins-nx
  94. Summary: NX plugin for Remmina Remote Desktop Client
  95. Summary(ja): Remmina の NX プラグイン
  96. Group: User Interface/Desktops
  97. Requires: %{name}-plugins-common = %{version}-%{release}
  98. # temporally disabled
  99. #Requires: nx
  100. %description plugins-nx
  101. Remmina is a remote desktop client written in GTK+, aiming to be
  102. useful for system administrators and travelers, who need to work
  103. with lots of remote computers in front of either large monitors or
  104. tiny netbooks.
  105. This package contains the NX plugin for the Remmina remote desktop
  106. client.
  107. %package plugins-rdp
  108. Summary: RDP plugin for Remmina Remote Desktop Client
  109. Summary(ja): Remmina の RDP プラグイン
  110. Group: User Interface/Desktops
  111. Requires: %{name}-plugins-common = %{version}-%{release}
  112. Requires: freerdp
  113. %description plugins-rdp
  114. Remmina is a remote desktop client written in GTK+, aiming to be
  115. useful for system administrators and travelers, who need to work
  116. with lots of remote computers in front of either large monitors or
  117. tiny netbooks.
  118. This package contains the Remote Desktop Protocol (RDP) plugin for the
  119. Remmina remote desktop client.
  120. %package plugins-telepathy
  121. Summary: Telepathy plugin for Remmina Remote Desktop Client
  122. Summary(ja): Remmina の Telepathy プラグイン
  123. Group: User Interface/Desktops
  124. Requires: %{name}-plugins-common = %{version}-%{release}
  125. %description plugins-telepathy
  126. Remmina is a remote desktop client written in GTK+, aiming to be
  127. useful for system administrators and travelers, who need to work
  128. with lots of remote computers in front of either large monitors or
  129. tiny netbooks.
  130. This package contains the Telepathy plugin for the Remmina remote
  131. desktop client.
  132. %package plugins-vnc
  133. Summary: VNC plugin for Remmina Remote Desktop Client
  134. Summary(ja): Remmina の VNC プラグイン
  135. Group: User Interface/Desktops
  136. Requires: %{name}-plugins-common = %{version}-%{release}
  137. %description plugins-vnc
  138. Remmina is a remote desktop client written in GTK+, aiming to be
  139. useful for system administrators and travelers, who need to work
  140. with lots of remote computers in front of either large monitors or
  141. tiny netbooks.
  142. This package contains the VNC plugin for the Remmina remote desktop
  143. client.
  144. %package plugins-xdmcp
  145. Summary: XDMCP plugin for Remmina Remote Desktop Client
  146. Summary(ja): Remmina の XDMCP プラグイン
  147. Group: User Interface/Desktops
  148. Requires: %{name}-plugins-common = %{version}-%{release}
  149. Requires: xorg-x11-server-Xephyr
  150. %description plugins-xdmcp
  151. Remmina is a remote desktop client written in GTK+, aiming to be
  152. useful for system administrators and travelers, who need to work
  153. with lots of remote computers in front of either large monitors or
  154. tiny netbooks.
  155. This package contains the XDMCP plugin for the Remmina remote desktop
  156. client.
  157. %prep
  158. %setup -qn FreeRDP-Remmina-356c033
  159. cp %{SOURCE10} remmina/po/ja.po
  160. %patch0 -p1 -b .fix-library-name
  161. %patch1 -p1 -b .linker-error
  162. %patch2 -p1 -b .add-clipboard-support
  163. %patch3 -p1 -b .clipboard-bugfix
  164. %patch4 -p1 -b .some-more-clipboard-fixes
  165. %patch5 -p1 -b .disconnect-signal-handler
  166. %patch10 -p1 -b .fix-crashes-in-some-cases
  167. %patch11 -p1 -b .fix-memory-leak
  168. %patch20 -p0 -b .dsofix
  169. %patch100 -p1 -b .vte3
  170. # Don't hardcode libdir
  171. sed -i "s,/lib/remmina/plugins,/%{_lib}/remmina/plugins,g" CMakeLists.txt
  172. %build
  173. mkdir -p build
  174. pushd build
  175. LDFLAGS="-Wl,-z,relro -Wl,--no-as-needed"
  176. %cmake \
  177. -DWITH_PTHREAD=ON \
  178. -DWITH_GCRYPT=ON \
  179. -DWITH_LIBSSH=ON \
  180. -DWITH_VTE=ON \
  181. -DWITH_GETTEXT=ON \
  182. -DWITH_LIBSSH=ON \
  183. -DWITH_FREERDP=ON \
  184. -DWITH_TELEPATHY=ON \
  185. -DWITH_ZLIB=ON \
  186. -DWITH_GETTEXT=ON \
  187. -DWITH_AVAHI=ON \
  188. -DWITH_APPINDICATOR=OFF \
  189. -LIBVNCSERVER_INCLUDE_DIRS=%{_includedir} \
  190. -DCMAKE_INSTALL_LIBDIR=%{_libdir} \
  191. ..
  192. make %{?_smp_mflags}
  193. popd
  194. %install
  195. rm -rf %{buildroot}
  196. # make install DESTDIR=%{buildroot}
  197. make install/fast DESTDIR=%{buildroot} -C build
  198. # dirty hack as desktop file does not get built.
  199. sed 's,^_,,g' remmina/desktop/remmina.desktop.in > remmina/desktop/remmina.desktop
  200. # another dirty hack
  201. mv %{buildroot}/usr/share/remmina/icons %{buildroot}/usr/share/icons
  202. desktop-file-install --vendor="" --delete-original \
  203. --add-category="RemoteAccess" \
  204. --remove-key="Actions" \
  205. --dir %{buildroot}%{_datadir}/applications \
  206. remmina/desktop/remmina.desktop
  207. %find_lang %{name}
  208. %find_lang %{name}-plugins
  209. %clean
  210. rm -rf $RPM_BUILD_ROOT
  211. %post
  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. %postun
  218. update-desktop-database -q
  219. touch --no-create %{_datadir}/icons/hicolor
  220. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  221. gtk-update-icon-cache -q %{_datadir}/icons/hicolor &>/dev/null ||:
  222. fi
  223. %posttrans
  224. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  225. gtk-update-icon-cache -q %{_datadir}/icons/hicolor &>/dev/null ||:
  226. fi
  227. %files -f %{name}.lang
  228. %defattr(-,root,root,-)
  229. # FIXME: Add NEWS if not empty
  230. %doc remmina/AUTHORS remmina/ChangeLog remmina/COPYING README
  231. %{_bindir}/%{name}
  232. %{_datadir}/applications/*.desktop
  233. %{_datadir}/icons/hicolor/*/*/*.*
  234. %{_datadir}/%{name}/
  235. %files devel
  236. %defattr(-,root,root,-)
  237. %doc
  238. %{_includedir}/%{name}/
  239. %{_libdir}/pkgconfig/%{name}.pc
  240. %files plugins-common -f %{name}-plugins.lang
  241. %defattr(-,root,root,-)
  242. # FIXME: Add docs once there are some *proper* ones
  243. #%doc remmina-plugins/AUTHORS remmina-plugins/COPYING
  244. %dir %{_libdir}/remmina/
  245. %dir %{_libdir}/remmina/plugins/
  246. %files plugins-gnome
  247. %defattr(-,root,root,-)
  248. %{_libdir}/remmina/plugins/remmina-plugins-gnome.so
  249. %files plugins-nx
  250. %defattr(-,root,root,-)
  251. %{_libdir}/remmina/plugins/remmina-plugin-nx.so
  252. %{_datadir}/icons/hicolor/*/emblems/remmina-nx.png
  253. %files plugins-rdp
  254. %defattr(-,root,root,-)
  255. %{_libdir}/remmina/plugins/remmina-plugin-rdp.so
  256. %{_datadir}/icons/hicolor/*/emblems/remmina-rdp-ssh.png
  257. %{_datadir}/icons/hicolor/*/emblems/remmina-rdp.png
  258. %files plugins-telepathy
  259. %defattr(-,root,root,-)
  260. %{_libdir}/remmina/plugins/remmina-plugin-telepathy.so
  261. #%{_datadir}/dbus-1/services/org.freedesktop.Telepathy.Client.Remmina.service
  262. #%{_datadir}/telepathy/clients/Remmina.client
  263. %files plugins-vnc
  264. %defattr(-,root,root,-)
  265. %{_libdir}/remmina/plugins/remmina-plugin-vnc.so
  266. %{_datadir}/icons/hicolor/*/emblems/remmina-vnc-ssh.png
  267. %{_datadir}/icons/hicolor/*/emblems/remmina-vnc.png
  268. %files plugins-xdmcp
  269. %defattr(-,root,root,-)
  270. %{_libdir}/remmina/plugins/remmina-plugin-xdmcp.so
  271. %{_datadir}/icons/hicolor/*/emblems/remmina-xdmcp-ssh.png
  272. %{_datadir}/icons/hicolor/*/emblems/remmina-xdmcp.png
  273. %changelog
  274. * Wed Dec 30 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.0-4
  275. - rebuild with gnutls-3.4.7
  276. * Sun Jul 19 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.0-3
  277. - change BuildRequires: vte3-devel instead of vte290-devel
  278. - add Pach100 (remmina-1.0.0-vte3.patch)
  279. * Mon Jan 12 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 1.0.0-2
  280. - rebuilt with libgcrypt 1.6.0 and gnutls 3.2.20
  281. - modified BR: vte290-devel instead of vte3-devel
  282. - moved to User Interface/Desktops Group
  283. * Fri Oct 19 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.0-1
  284. - Update to 1.0.0
  285. - add BuildRequires
  286. - add patches from fedora package (upstream patches)
  287. - add subpackage for plugins
  288. * Thu Aug 18 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.3-1
  289. - new upstream release
  290. - add BuildRequires: avahi-ui-devel, vte-devel, unique-devel, desktop-file-utils
  291. - create devel sub package
  292. * Wed Mar 17 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 0.7.4-1
  293. - new upstream release with new name 'remmina'
  294. - add Obsoletes/Provides: grdc
  295. * Tue Sep 15 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.6.0-1
  296. - initial build for Vine Linux
  297. * Tue Jul 07 2009 slick50 <lxgator@gmail.com> 0.6.0-1pclos2009
  298. - new version 0.6.0
  299. * Sun May 17 2009 don_crissti <don_crissti@gmx.com> 0.5.1-1pclos2009
  300. - build for PCLOS