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