source: projects/specs/trunk/r/remmina/remmina-vl.spec @ 9670

Revision 9670, 11.6 KB checked in by Takemikaduchi, 9 years ago (diff)

system-config-printer: update
freerdp: add BR: alsa-lib-devel
libssh: add pkgconfig file
remmina: change BR: vte3-devel

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