]>
Commit | Line | Data |
---|---|---|
dd410870 | 1 | # |
acdabdb6 JB |
2 | # Conditional build: |
3 | %bcond_without alsa # ALSA sound support | |
4 | %bcond_without cups # CUPS printing support | |
5 | %bcond_without directfb # DirectFB client | |
6 | %bcond_without ffmpeg # FFmpeg audio/video decoding support | |
7 | %bcond_without pcsc # SmartCard support via PCSC-lite library | |
8 | %bcond_without pulseaudio # Pulseaudio sound support | |
9 | %bcond_without x11 # X11 client | |
10 | %bcond_with sse2 # SSE2 instructions | |
dd410870 | 11 | |
acdabdb6 JB |
12 | %ifarch %{x8664} pentium4 |
13 | %define with_sse2 1 | |
14 | %endif | |
e07ea24b | 15 | Summary: Remote Desktop Protocol client |
acdabdb6 | 16 | Summary(pl.UTF-8): Klient protokołu RDP |
e07ea24b | 17 | Name: freerdp |
acdabdb6 | 18 | Version: 1.0.2 |
9cebd2db | 19 | Release: 3 |
acdabdb6 | 20 | License: Apache v2.0 |
e07ea24b | 21 | Group: Applications/Communications |
acdabdb6 JB |
22 | Source0: http://pub.freerdp.com/releases/%{name}-%{version}.tar.gz |
23 | # Source0-md5: 08f0e07d8d77e142f7dc39e4033a458d | |
24 | Patch0: %{name}-ffmpeg.patch | |
e07ea24b | 25 | URL: http://www.freerdp.com/ |
acdabdb6 JB |
26 | %{?with_directfb:BuildRequires: DirectFB-devel} |
27 | %{?with_alsa:BuildRequires: alsa-lib-devel} | |
28 | BuildRequires: cmake >= 2.6 | |
29 | %{?with_cups:BuildRequires: cups-devel} | |
e07ea24b | 30 | BuildRequires: desktop-file-utils |
acdabdb6 | 31 | %{?with_ffmpeg:BuildRequires: ffmpeg-devel} |
e07ea24b | 32 | BuildRequires: openssl-devel |
dd410870 | 33 | %{?with_pcsc:BuildRequires: pcsc-lite-devel} |
acdabdb6 JB |
34 | BuildRequires: pkgconfig |
35 | %{?with_pulseaudio:BuildRequires: pulseaudio-devel} | |
e07ea24b AM |
36 | BuildRequires: xmlto |
37 | BuildRequires: xorg-lib-libX11-devel | |
e5316440 ER |
38 | BuildRequires: xorg-lib-libXcursor-devel |
39 | BuildRequires: xorg-lib-libXdamage-devel | |
e07ea24b | 40 | BuildRequires: xorg-lib-libXext-devel |
acdabdb6 | 41 | BuildRequires: xorg-lib-libXfixes-devel |
e07ea24b | 42 | BuildRequires: xorg-lib-libXinerama-devel |
acdabdb6 | 43 | BuildRequires: xorg-lib-libXtst-devel |
7d17d2a0 ER |
44 | BuildRequires: xorg-lib-libXv-devel |
45 | BuildRequires: xorg-lib-libxkbfile | |
acdabdb6 | 46 | BuildRequires: zlib-devel |
e5316440 ER |
47 | Requires: %{name}-libs = %{version}-%{release} |
48 | Requires: %{name}-plugins = %{version}-%{release} | |
acdabdb6 | 49 | Requires: hicolor-icon-theme |
e07ea24b | 50 | Provides: xfreerdp = %{version}-%{release} |
e5316440 | 51 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
e07ea24b AM |
52 | |
53 | %description | |
acdabdb6 | 54 | xfreerdp is Remote Desktop Protocol (RDP) client from the FreeRDP |
e07ea24b AM |
55 | project. |
56 | ||
57 | xfreerdp can connect to RDP servers such as Microsoft Windows | |
58 | machines, xrdp and VirtualBox. | |
59 | ||
acdabdb6 JB |
60 | %description -l pl.UTF-8 |
61 | xfreerdp to klient protokołu RDP (Remote Desktop Protocol) z projektu | |
62 | FreeRDP. | |
63 | ||
64 | xfreerdp może łączyć się z serwerami RDP, takimi jak maszyny z | |
65 | Microsoft Windows, xrdp oraz VirtualBox. | |
66 | ||
67 | %package dfb | |
68 | Summary: DirectFB based Remote Desktop Protocol klient | |
69 | Summary(pl.UTF-8): Klient protokołu RDP oparty na DirectFB | |
70 | Group: Applications/Communications | |
71 | Requires: %{name}-libs = %{version}-%{release} | |
72 | Requires: %{name}-plugins = %{version}-%{release} | |
73 | ||
74 | %description dfb | |
75 | DirectFB based Remote Desktop Protocol klient. | |
76 | ||
77 | dfreerdp can connect to RDP servers such as Microsoft Windows | |
78 | machines, xrdp and VirtualBox. | |
79 | ||
80 | %description -l pl.UTF-8 | |
81 | Klient protokołu RDP oparty na DirectFB. | |
82 | ||
83 | dfreerdp może łączyć się z serwerami RDP, takimi jak maszyny z | |
84 | Microsoft Windows, xrdp oraz VirtualBox. | |
85 | ||
dd410870 | 86 | %package libs |
e5316440 | 87 | Summary: Core libraries implementing the RDP protocol |
acdabdb6 JB |
88 | Summary(pl.UTF-8): Główne biblioteki implementujące protokół RDP |
89 | Group: Libraries | |
e5316440 | 90 | |
acdabdb6 | 91 | %description libs |
e07ea24b AM |
92 | libfreerdp-core can be embedded in applications. |
93 | ||
94 | libfreerdp-channels and libfreerdp-kbd might be convenient to use in X | |
95 | applications together with libfreerdp-core. | |
96 | ||
97 | libfreerdp-core can be extended with plugins handling RDP channels. | |
98 | ||
acdabdb6 JB |
99 | %description libs -l pl.UTF-8 |
100 | libfreerdp-core może być osadzane w aplikacjach. | |
101 | ||
102 | libfreerdp-channels oraz libfreerdp-kbd mogą być wygodne przy użyciu | |
103 | wraz z libfreerdp-core w aplikacjach X. | |
104 | ||
105 | libfreerdp-core można rozszerzać przy użyciu wtyczek obsługujących | |
106 | kanały RDP. | |
107 | ||
108 | %package devel | |
109 | Summary: Development files for FreeRDP libraries | |
110 | Summary(pl.UTF-8): Pliki programistyczne bibliotek FreeRDP | |
111 | Group: Development/Libraries | |
112 | Requires: %{name}-libs = %{version}-%{release} | |
113 | ||
114 | %description devel | |
115 | This package contains the header files for developing applications | |
116 | that use FreeRDP libraries. | |
117 | ||
118 | %description devel -l pl.UTF-8 | |
119 | Ten pakiet zawiera pliki nagłówkowe do tworzenia aplikacji | |
120 | wykorzystujących biblioteki FreeRDP. | |
121 | ||
dd410870 | 122 | %package plugins |
e5316440 | 123 | Summary: Plugins for handling the standard RDP channels |
acdabdb6 | 124 | Summary(pl.UTF-8): Wtyczki do obsługi standardowych kanałów RDP |
e5316440 ER |
125 | Group: Applications/Communications |
126 | Requires: %{name}-libs = %{version}-%{release} | |
127 | ||
acdabdb6 | 128 | %description plugins |
e07ea24b AM |
129 | A set of plugins to the channel manager implementing the standard |
130 | virtual channels extending RDP core functionality. For instance, | |
131 | sounds, clipboard sync, disk/printer redirection, etc. | |
132 | ||
acdabdb6 JB |
133 | %description plugins -l pl.UTF-8 |
134 | Zestaw wtyczek zarządcy kanałów, implementujących standardowe | |
135 | kanały wirtualne rozszerzające podstawową funkcjonalność RDP - | |
136 | na przykład dźwięk, synchronizację schowka, przekierowanie | |
137 | dysku/drukarki. | |
138 | ||
139 | %package plugins-alsa | |
140 | Summary: ALSA plugins for handling RDP audio | |
141 | Summary(pl.UTF-8): Wtyczki ALSA do obsługi dźwięku RDP | |
142 | Group: Libraries | |
143 | Requires: %{name}-plugins = %{version}-%{release} | |
144 | ||
145 | %description plugins-alsa | |
146 | ALSA plugins for handling RDP audio. | |
e07ea24b | 147 | |
acdabdb6 JB |
148 | %description plugins-alsa -l pl.UTF-8 |
149 | Wtyczki ALSA do obsługi dźwięku RDP. | |
150 | ||
151 | %package plugins-ffmpeg | |
152 | Summary: FFmpeg plugin for decoding RDP audio/video | |
153 | Summary(pl.UTF-8): Wtyczka FFmpeg do dekodowania dźwięku/obrazu RDP | |
154 | Group: Libraries | |
155 | Requires: %{name}-plugins = %{version}-%{release} | |
156 | ||
157 | %description plugins-ffmpeg | |
158 | FFmpeg plugin for decoding RDP audio/video. | |
159 | ||
160 | %description plugins-ffmpeg -l pl.UTF-8 | |
161 | Wtyczka FFmpeg do dekodowania dźwięku/obrazu RDP. | |
162 | ||
163 | %package plugins-pcsc | |
164 | Summary: PC/SC plugin for RDP smartcard support | |
165 | Summary(pl.UTF-8): Wtyczka PC/SC do obsługi kart procesorowych w RDP | |
166 | Group: Libraries | |
167 | Requires: %{name}-plugins = %{version}-%{release} | |
168 | ||
169 | %description plugins-pcsc | |
170 | PC/SC plugin for RDP smartcard support. | |
171 | ||
172 | %description plugins-pcsc -l pl.UTF-8 | |
173 | Wtyczka PC/SC do obsługi kart procesorowych w RDP. | |
174 | ||
175 | %package plugins-pulse | |
176 | Summary: PulseAudio plugins for handling RDP audio | |
177 | Summary(pl.UTF-8): Wtyczki PulseAudio do obsługi dźwięku RDP | |
178 | Group: Libraries | |
179 | Requires: %{name}-plugins = %{version}-%{release} | |
180 | ||
181 | %description plugins-pulse | |
182 | PulseAudio plugins for handling RDP audio. | |
183 | ||
184 | %description plugins-pulse -l pl.UTF-8 | |
185 | Wtyczki PulseAudio do obsługi dźwięku RDP. | |
e07ea24b | 186 | |
e07ea24b | 187 | %prep |
e07ea24b | 188 | %setup -q |
acdabdb6 | 189 | %patch0 -p1 |
e07ea24b AM |
190 | |
191 | cat << EOF > xfreerdp.desktop | |
192 | [Desktop Entry] | |
193 | Type=Application | |
194 | Name=X FreeRDP | |
195 | NoDisplay=true | |
196 | Comment=Connect to RDP server and display remote desktop | |
acdabdb6 | 197 | Comment[pl]=Połączenie z serwerem RDP i wyświetlanie zdalnego pulpitu |
e07ea24b AM |
198 | Icon=%{name} |
199 | Exec=%{_bindir}/xfreerdp | |
200 | Terminal=false | |
201 | Categories=Network;RemoteAccess; | |
202 | EOF | |
203 | ||
e07ea24b | 204 | %build |
e5316440 ER |
205 | install -d build |
206 | cd build | |
acdabdb6 JB |
207 | %cmake .. \ |
208 | -DCMAKE_INSTALL_LIBDIR:PATH=%{_lib} \ | |
209 | %{!?with_alsa:-DWITH_ALSA=OFF} \ | |
210 | -DWITH_CUNIT=OFF \ | |
211 | %{!?with_cups:-DWITH_CUPS=OFF} \ | |
212 | %{?with_directfb:-DWITH_DIRECTFB=ON} \ | |
213 | %{!?with_ffmpeg:-DWITH_FFMPEG=OFF} \ | |
dd410870 | 214 | %{?with_pcsc:-DWITH_PCSC=ON} \ |
acdabdb6 JB |
215 | %{?with_pulseaudio:-DWITH_PULSEAUDIO=ON} \ |
216 | -DWITH_SERVER=ON \ | |
217 | %{!?with_sse2:-DWITH_SSE2=OFF} \ | |
e5316440 ER |
218 | -DWITH_X11=ON \ |
219 | -DWITH_XCURSOR=ON \ | |
220 | -DWITH_XEXT=ON \ | |
221 | -DWITH_XINERAMA=ON \ | |
222 | -DWITH_XKBFILE=ON \ | |
acdabdb6 | 223 | -DWITH_XV=ON |
e5316440 ER |
224 | |
225 | %{__make} | |
e07ea24b AM |
226 | |
227 | %install | |
228 | rm -rf $RPM_BUILD_ROOT | |
dd410870 | 229 | %{__make} -C build install \ |
e5316440 ER |
230 | INSTALL="install -p" \ |
231 | DESTDIR=$RPM_BUILD_ROOT | |
e07ea24b AM |
232 | |
233 | # No need for keymap files when using xkbfile | |
e5316440 | 234 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/freerdp |
e07ea24b AM |
235 | |
236 | desktop-file-install --dir=$RPM_BUILD_ROOT%{_desktopdir} xfreerdp.desktop | |
237 | install -p -D resources/FreeRDP_Icon_256px.png $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/256x256/apps/%{name}.png | |
238 | ||
e07ea24b AM |
239 | %clean |
240 | rm -rf $RPM_BUILD_ROOT | |
241 | ||
e07ea24b | 242 | %post |
acdabdb6 JB |
243 | %update_icon_cache hicolor |
244 | ||
245 | %postun | |
246 | %update_icon_cache hicolor | |
e07ea24b | 247 | |
e5316440 ER |
248 | %post libs -p /sbin/ldconfig |
249 | %postun libs -p /sbin/ldconfig | |
e07ea24b AM |
250 | |
251 | %files | |
252 | %defattr(644,root,root,755) | |
253 | %attr(755,root,root) %{_bindir}/xfreerdp | |
acdabdb6 | 254 | %{_mandir}/man1/xfreerdp.1* |
e07ea24b | 255 | %{_desktopdir}/xfreerdp.desktop |
acdabdb6 JB |
256 | %{_iconsdir}/hicolor/256x256/apps/freerdp.png |
257 | ||
258 | %files dfb | |
259 | %defattr(644,root,root,755) | |
260 | %attr(755,root,root) %{_bindir}/dfreerdp | |
e07ea24b AM |
261 | |
262 | %files libs | |
263 | %defattr(644,root,root,755) | |
acdabdb6 JB |
264 | %doc ChangeLog README |
265 | %attr(755,root,root) %{_libdir}/libfreerdp-cache.so.*.*.* | |
266 | %attr(755,root,root) %ghost %{_libdir}/libfreerdp-cache.so.1.0 | |
267 | %attr(755,root,root) %{_libdir}/libfreerdp-channels.so.*.*.* | |
268 | %attr(755,root,root) %ghost %{_libdir}/libfreerdp-channels.so.1.0 | |
269 | %attr(755,root,root) %{_libdir}/libfreerdp-codec.so.*.*.* | |
270 | %attr(755,root,root) %ghost %{_libdir}/libfreerdp-codec.so.1.0 | |
271 | %attr(755,root,root) %{_libdir}/libfreerdp-core.so.*.*.* | |
272 | %attr(755,root,root) %ghost %{_libdir}/libfreerdp-core.so.1.0 | |
273 | %attr(755,root,root) %{_libdir}/libfreerdp-gdi.so.*.*.* | |
274 | %attr(755,root,root) %ghost %{_libdir}/libfreerdp-gdi.so.1.0 | |
275 | %attr(755,root,root) %{_libdir}/libfreerdp-kbd.so.*.*.* | |
276 | %attr(755,root,root) %ghost %{_libdir}/libfreerdp-kbd.so.1.0 | |
277 | %attr(755,root,root) %{_libdir}/libfreerdp-rail.so.*.*.* | |
278 | %attr(755,root,root) %ghost %{_libdir}/libfreerdp-rail.so.1.0 | |
279 | %attr(755,root,root) %{_libdir}/libfreerdp-utils.so.*.*.* | |
280 | %attr(755,root,root) %ghost %{_libdir}/libfreerdp-utils.so.1.0 | |
281 | %dir %{_libdir}/%{name} | |
282 | ||
283 | %files devel | |
284 | %defattr(644,root,root,755) | |
285 | %attr(755,root,root) %{_libdir}/libfreerdp-cache.so | |
286 | %attr(755,root,root) %{_libdir}/libfreerdp-channels.so | |
287 | %attr(755,root,root) %{_libdir}/libfreerdp-codec.so | |
288 | %attr(755,root,root) %{_libdir}/libfreerdp-core.so | |
289 | %attr(755,root,root) %{_libdir}/libfreerdp-gdi.so | |
290 | %attr(755,root,root) %{_libdir}/libfreerdp-kbd.so | |
291 | %attr(755,root,root) %{_libdir}/libfreerdp-rail.so | |
292 | %attr(755,root,root) %{_libdir}/libfreerdp-utils.so | |
293 | %{_includedir}/freerdp | |
294 | %{_pkgconfigdir}/freerdp.pc | |
e07ea24b AM |
295 | |
296 | %files plugins | |
297 | %defattr(644,root,root,755) | |
acdabdb6 JB |
298 | %attr(755,root,root) %{_libdir}/%{name}/audin.so |
299 | %attr(755,root,root) %{_libdir}/%{name}/cliprdr.so | |
300 | %attr(755,root,root) %{_libdir}/%{name}/disk.so | |
301 | %attr(755,root,root) %{_libdir}/%{name}/drdynvc.so | |
302 | %attr(755,root,root) %{_libdir}/%{name}/parallel.so | |
303 | %attr(755,root,root) %{_libdir}/%{name}/printer.so | |
304 | %attr(755,root,root) %{_libdir}/%{name}/rail.so | |
305 | %attr(755,root,root) %{_libdir}/%{name}/rdpdbg.so | |
306 | %attr(755,root,root) %{_libdir}/%{name}/rdpdr.so | |
307 | %attr(755,root,root) %{_libdir}/%{name}/rdpsnd.so | |
308 | %attr(755,root,root) %{_libdir}/%{name}/serial.so | |
309 | %attr(755,root,root) %{_libdir}/%{name}/tsmf.so | |
e07ea24b | 310 | |
acdabdb6 JB |
311 | %if %{with alsa} |
312 | %files plugins-alsa | |
313 | %defattr(644,root,root,755) | |
314 | %attr(755,root,root) %{_libdir}/%{name}/audin_alsa.so | |
315 | %attr(755,root,root) %{_libdir}/%{name}/rdpsnd_alsa.so | |
316 | %attr(755,root,root) %{_libdir}/%{name}/tsmf_alsa.so | |
317 | %endif | |
318 | ||
319 | %if %{with ffmpeg} | |
320 | %files plugins-ffmpeg | |
321 | %defattr(644,root,root,755) | |
322 | %attr(755,root,root) %{_libdir}/%{name}/tsmf_ffmpeg.so | |
323 | %endif | |
324 | ||
325 | %if %{with pcsc} | |
326 | %files plugins-pcsc | |
327 | %defattr(644,root,root,755) | |
328 | %attr(755,root,root) %{_libdir}/%{name}/scard.so | |
329 | %endif | |
330 | ||
331 | %if %{with pulseaudio} | |
332 | %files plugins-pulse | |
e07ea24b | 333 | %defattr(644,root,root,755) |
acdabdb6 JB |
334 | %attr(755,root,root) %{_libdir}/%{name}/audin_pulse.so |
335 | %attr(755,root,root) %{_libdir}/%{name}/rdpsnd_pulse.so | |
336 | %attr(755,root,root) %{_libdir}/%{name}/tsmf_pulse.so | |
337 | %endif |