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