remmina-vl.spec 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382
  1. Summary: Remote Desktop Connection utility
  2. Summary(ja): リモートデスクトップ接続ユーティリティ
  3. Name: remmina
  4. Version: 1.0.0
  5. Release: 3%{?_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. Group: Applications/Internet
  125. Requires: %{name}-plugins-common = %{version}-%{release}
  126. %description plugins-telepathy
  127. Remmina is a remote desktop client written in GTK+, aiming to be
  128. useful for system administrators and travelers, who need to work
  129. with lots of remote computers in front of either large monitors or
  130. tiny netbooks.
  131. This package contains the Telepathy plugin for the Remmina remote
  132. desktop 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}-plugins-common = %{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}-plugins-common = %{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. %prep
  159. %setup -qn FreeRDP-Remmina-356c033
  160. cp %{SOURCE10} remmina/po/ja.po
  161. %patch0 -p1 -b .fix-library-name
  162. %patch1 -p1 -b .linker-error
  163. %patch2 -p1 -b .add-clipboard-support
  164. %patch3 -p1 -b .clipboard-bugfix
  165. %patch4 -p1 -b .some-more-clipboard-fixes
  166. %patch5 -p1 -b .disconnect-signal-handler
  167. %patch10 -p1 -b .fix-crashes-in-some-cases
  168. %patch11 -p1 -b .fix-memory-leak
  169. %patch20 -p0 -b .dsofix
  170. %patch100 -p1 -b .vte3
  171. # Don't hardcode libdir
  172. sed -i "s,/lib/remmina/plugins,/%{_lib}/remmina/plugins,g" CMakeLists.txt
  173. %build
  174. mkdir -p build
  175. pushd build
  176. LDFLAGS="-Wl,-z,relro -Wl,--no-as-needed"
  177. %cmake \
  178. -DWITH_PTHREAD=ON \
  179. -DWITH_GCRYPT=ON \
  180. -DWITH_LIBSSH=ON \
  181. -DWITH_VTE=ON \
  182. -DWITH_GETTEXT=ON \
  183. -DWITH_LIBSSH=ON \
  184. -DWITH_FREERDP=ON \
  185. -DWITH_TELEPATHY=ON \
  186. -DWITH_ZLIB=ON \
  187. -DWITH_GETTEXT=ON \
  188. -DWITH_AVAHI=ON \
  189. -DWITH_APPINDICATOR=OFF \
  190. -LIBVNCSERVER_INCLUDE_DIRS=%{_includedir} \
  191. -DCMAKE_INSTALL_LIBDIR=%{_libdir} \
  192. ..
  193. make %{?_smp_mflags}
  194. popd
  195. %install
  196. rm -rf %{buildroot}
  197. # make install DESTDIR=%{buildroot}
  198. make install/fast DESTDIR=%{buildroot} -C build
  199. # dirty hack as desktop file does not get built.
  200. sed 's,^_,,g' remmina/desktop/remmina.desktop.in > remmina/desktop/remmina.desktop
  201. # another dirty hack
  202. mv %{buildroot}/usr/share/remmina/icons %{buildroot}/usr/share/icons
  203. desktop-file-install --vendor="" --delete-original \
  204. --add-category="RemoteAccess" \
  205. --remove-key="Actions" \
  206. --dir %{buildroot}%{_datadir}/applications \
  207. remmina/desktop/remmina.desktop
  208. %find_lang %{name}
  209. %find_lang %{name}-plugins
  210. %clean
  211. rm -rf $RPM_BUILD_ROOT
  212. %post
  213. update-desktop-database -q
  214. touch --no-create %{_datadir}/icons/hicolor
  215. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  216. gtk-update-icon-cache -q %{_datadir}/icons/hicolor &>/dev/null ||:
  217. fi
  218. %postun
  219. update-desktop-database -q
  220. touch --no-create %{_datadir}/icons/hicolor
  221. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  222. gtk-update-icon-cache -q %{_datadir}/icons/hicolor &>/dev/null ||:
  223. fi
  224. %posttrans
  225. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  226. gtk-update-icon-cache -q %{_datadir}/icons/hicolor &>/dev/null ||:
  227. fi
  228. %files -f %{name}.lang
  229. %defattr(-,root,root,-)
  230. # FIXME: Add NEWS if not empty
  231. %doc remmina/AUTHORS remmina/ChangeLog remmina/COPYING README
  232. %{_bindir}/%{name}
  233. %{_datadir}/applications/*.desktop
  234. %{_datadir}/icons/hicolor/*/*/*.*
  235. %{_datadir}/%{name}/
  236. %files devel
  237. %defattr(-,root,root,-)
  238. %doc
  239. %{_includedir}/%{name}/
  240. %{_libdir}/pkgconfig/%{name}.pc
  241. %files plugins-common -f %{name}-plugins.lang
  242. %defattr(-,root,root,-)
  243. # FIXME: Add docs once there are some *proper* ones
  244. #%doc remmina-plugins/AUTHORS remmina-plugins/COPYING
  245. %dir %{_libdir}/remmina/
  246. %dir %{_libdir}/remmina/plugins/
  247. %files plugins-gnome
  248. %defattr(-,root,root,-)
  249. %{_libdir}/remmina/plugins/remmina-plugins-gnome.so
  250. %files plugins-nx
  251. %defattr(-,root,root,-)
  252. %{_libdir}/remmina/plugins/remmina-plugin-nx.so
  253. %{_datadir}/icons/hicolor/*/emblems/remmina-nx.png
  254. %files plugins-rdp
  255. %defattr(-,root,root,-)
  256. %{_libdir}/remmina/plugins/remmina-plugin-rdp.so
  257. %{_datadir}/icons/hicolor/*/emblems/remmina-rdp-ssh.png
  258. %{_datadir}/icons/hicolor/*/emblems/remmina-rdp.png
  259. %files plugins-telepathy
  260. %defattr(-,root,root,-)
  261. %{_libdir}/remmina/plugins/remmina-plugin-telepathy.so
  262. #%{_datadir}/dbus-1/services/org.freedesktop.Telepathy.Client.Remmina.service
  263. #%{_datadir}/telepathy/clients/Remmina.client
  264. %files plugins-vnc
  265. %defattr(-,root,root,-)
  266. %{_libdir}/remmina/plugins/remmina-plugin-vnc.so
  267. %{_datadir}/icons/hicolor/*/emblems/remmina-vnc-ssh.png
  268. %{_datadir}/icons/hicolor/*/emblems/remmina-vnc.png
  269. %files plugins-xdmcp
  270. %defattr(-,root,root,-)
  271. %{_libdir}/remmina/plugins/remmina-plugin-xdmcp.so
  272. %{_datadir}/icons/hicolor/*/emblems/remmina-xdmcp-ssh.png
  273. %{_datadir}/icons/hicolor/*/emblems/remmina-xdmcp.png
  274. %changelog
  275. * Sun Jul 19 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.0-3
  276. - change BuildRequires: vte3-devel instead of vte290-devel
  277. - add Pach100 (remmina-1.0.0-vte3.patch)
  278. * Mon Jan 12 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 1.0.0-2
  279. - rebuilt with libgcrypt 1.6.0 and gnutls 3.2.20
  280. - modified BR: vte290-devel instead of vte3-devel
  281. - moved to User Interface/Desktops Group
  282. * Fri Oct 19 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.0-1
  283. - Update to 1.0.0
  284. - add BuildRequires
  285. - add patches from fedora package (upstream patches)
  286. - add subpackage for plugins
  287. * Thu Aug 18 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.3-1
  288. - new upstream release
  289. - add BuildRequires: avahi-ui-devel, vte-devel, unique-devel, desktop-file-utils
  290. - create devel sub package
  291. * Wed Mar 17 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 0.7.4-1
  292. - new upstream release with new name 'remmina'
  293. - add Obsoletes/Provides: grdc
  294. * Tue Sep 15 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.6.0-1
  295. - initial build for Vine Linux
  296. * Tue Jul 07 2009 slick50 <lxgator@gmail.com> 0.6.0-1pclos2009
  297. - new version 0.6.0
  298. * Sun May 17 2009 don_crissti <don_crissti@gmx.com> 0.5.1-1pclos2009
  299. - build for PCLOS