remmina-vl.spec 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374
  1. Summary: Remote Desktop Connection utility
  2. Summary(ja): リモートデスクトップ接続ユーティリティ
  3. Name: remmina
  4. Version: 1.0.0
  5. Release: 2%{?_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. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  34. BuildRequires: gtk3-devel
  35. BuildRequires: vte290-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: libgnome-keyring-devel
  45. BuildRequires: freerdp-devel >= 1.0.1
  46. BuildRequires: telepathy-glib-devel
  47. BuildRequires: cmake
  48. BuildRequires: gettext
  49. BuildRequires: intltool
  50. Obsoletes: grdc < 0.7.0
  51. Provides: grdc = %{version}
  52. Obsoletes: remmina-gnome <= 0.7.3
  53. %description
  54. Remmina is a remote desktop client written in GTK+, aiming to be
  55. useful for system administrators and travelers, who need to work
  56. with lots of remote computers in front of either large monitors or
  57. tiny netbooks.
  58. %package devel
  59. Summary: Development tools for remmina
  60. Summary(ja): remmina の開発環境
  61. Group: Development/Libraries
  62. Requires: %{name} = %{version}-%{release}
  63. Requires: pkgconfig
  64. %description devel
  65. Header files and libraries for building a extension library for the
  66. remmina.
  67. %package plugins-common
  68. Summary: Common files for Remmina Remote Desktop Client plugins
  69. Summary(ja): Remmina プラグインの共通ファイル
  70. Group: User Interface/Desktops
  71. Requires: %{name} >= 0.9
  72. %description plugins-common
  73. Remmina is a remote desktop client written in GTK+, aiming to be
  74. useful for system administrators and travelers, who need to work
  75. with lots of remote computers in front of either large monitors or
  76. tiny netbooks.
  77. This package contains files shared among all plugins for the Remmina
  78. remote desktop client.
  79. %package plugins-gnome
  80. Summary: GNOME keyring integration for Remmina Remote Desktop Client
  81. Summary(ja): Remmina の GNOMEキーリング統合
  82. Group: User Interface/Desktops
  83. Requires: %{name}-plugins-common = %{version}-%{release}
  84. Requires: libgnome-keyring
  85. %description plugins-gnome
  86. Remmina is a remote desktop client written in GTK+, aiming to be
  87. useful for system administrators and travelers, who need to work
  88. with lots of remote computers in front of either large monitors or
  89. tiny netbooks.
  90. This package contains the plugin with GNOME keyring support for the
  91. Remmina remote desktop client.
  92. %package plugins-nx
  93. Summary: NX plugin for Remmina Remote Desktop Client
  94. Summary(ja): Remmina の NX プラグイン
  95. Group: User Interface/Desktops
  96. Requires: %{name}-plugins-common = %{version}-%{release}
  97. # temporally disabled
  98. #Requires: nx
  99. %description plugins-nx
  100. Remmina is a remote desktop client written in GTK+, aiming to be
  101. useful for system administrators and travelers, who need to work
  102. with lots of remote computers in front of either large monitors or
  103. tiny netbooks.
  104. This package contains the NX plugin for the Remmina remote desktop
  105. client.
  106. %package plugins-rdp
  107. Summary: RDP plugin for Remmina Remote Desktop Client
  108. Summary(ja): Remmina の RDP プラグイン
  109. Group: User Interface/Desktops
  110. Requires: %{name}-plugins-common = %{version}-%{release}
  111. Requires: freerdp
  112. %description plugins-rdp
  113. Remmina is a remote desktop client written in GTK+, aiming to be
  114. useful for system administrators and travelers, who need to work
  115. with lots of remote computers in front of either large monitors or
  116. tiny netbooks.
  117. This package contains the Remote Desktop Protocol (RDP) plugin for the
  118. Remmina remote desktop client.
  119. %package plugins-telepathy
  120. Summary: Telepathy plugin for Remmina Remote Desktop Client
  121. Summary(ja): Remmina の Telepathy プラグイン
  122. Group: User Interface/Desktops
  123. Group: Applications/Internet
  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. # 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. * Mon Jan 12 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 1.0.0-2
  274. - rebuilt with libgcrypt 1.6.0 and gnutls 3.2.20
  275. - modified BR: vte290-devel instead of vte3-devel
  276. - moved to User Interface/Desktops Group
  277. * Fri Oct 19 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.0-1
  278. - Update to 1.0.0
  279. - add BuildRequires
  280. - add patches from fedora package (upstream patches)
  281. - add subpackage for plugins
  282. * Thu Aug 18 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.3-1
  283. - new upstream release
  284. - add BuildRequires: avahi-ui-devel, vte-devel, unique-devel, desktop-file-utils
  285. - create devel sub package
  286. * Wed Mar 17 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 0.7.4-1
  287. - new upstream release with new name 'remmina'
  288. - add Obsoletes/Provides: grdc
  289. * Tue Sep 15 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.6.0-1
  290. - initial build for Vine Linux
  291. * Tue Jul 07 2009 slick50 <lxgator@gmail.com> 0.6.0-1pclos2009
  292. - new version 0.6.0
  293. * Sun May 17 2009 don_crissti <don_crissti@gmx.com> 0.5.1-1pclos2009
  294. - build for PCLOS