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