remmina-vl.spec 11 KB

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