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