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