]>
Commit | Line | Data |
---|---|---|
1dc61c50 | 1 | Summary: Remote desktop server |
2 | Summary(pl.UTF-8): Serwer remote desktop | |
3 | Name: xrdp | |
c0a5460b | 4 | Version: 0.9.25 |
df4b97b2 | 5 | Release: 1 |
6daa95b0 | 6 | License: Apache v2.0 |
1dc61c50 | 7 | Group: X11/Applications/Networking |
6daa95b0 | 8 | #Source0Download: https://github.com/neutrinolabs/xrdp/releases |
185a9537 | 9 | Source0: https://github.com/neutrinolabs/xrdp/releases/download/v%{version}/%{name}-%{version}.tar.gz |
c0a5460b | 10 | # Source0-md5: 2003b90ea01b36bf010bfd4c0d91f6f7 |
1dc61c50 | 11 | Source1: %{name}.init |
12 | Source2: %{name}.pamd | |
185a9537 MK |
13 | Source3: %{name}.README.PLD |
14 | Source4: %{name}.README.PLD.pl | |
15 | Source5: startwm.sh | |
16 | Patch0: config.patch | |
17 | Patch1: quiet.patch | |
1c80cffa | 18 | Patch2: x32.patch |
b483092e | 19 | URL: https://www.xrdp.org/ |
f1da7c18 JP |
20 | BuildRequires: autoconf >= 2.65 |
21 | BuildRequires: automake >= 1:1.7.2 | |
22 | BuildRequires: fdk-aac-devel >= 0.1.0 | |
0a3433c8 | 23 | BuildRequires: imlib2-devel >= 1.4.5 |
f1da7c18 JP |
24 | BuildRequires: lame-libs-devel |
25 | BuildRequires: libfuse-devel >= 2.6 | |
26 | BuildRequires: libjpeg-turbo-devel | |
f36b3e91 | 27 | BuildRequires: libtool |
39298ec7 | 28 | BuildRequires: nasm |
f1da7c18 JP |
29 | BuildRequires: openssl-devel >= 0.9.8 |
30 | BuildRequires: opus-devel | |
1dc61c50 | 31 | BuildRequires: pam-devel |
f1da7c18 JP |
32 | BuildRequires: pixman-devel >= 0.1.0 |
33 | BuildRequires: pkgconfig | |
de9a48ab | 34 | BuildRequires: rpmbuild(macros) >= 1.268 |
782957fb | 35 | BuildRequires: systemd-units |
f1da7c18 JP |
36 | BuildRequires: xorg-lib-libX11-devel |
37 | BuildRequires: xorg-lib-libXfixes-devel | |
38 | BuildRequires: xorg-lib-libXrandr-devel | |
1dc61c50 | 39 | Requires(post,preun): /sbin/chkconfig |
782957fb | 40 | Requires(post,preun,postun): systemd-units >= 38 |
6daa95b0 JB |
41 | Requires(postun): /usr/sbin/groupdel |
42 | Requires(pre): /usr/bin/getgid | |
43 | Requires(pre): /usr/sbin/groupadd | |
44 | Requires: %{name}-libs = %{version}-%{release} | |
f36b3e91 | 45 | Requires: /usr/bin/Xvnc |
f1da7c18 | 46 | Requires: fdk-aac >= 0.1.0 |
0a3433c8 | 47 | Requires: imlib2 >= 1.4.5 |
f1da7c18 JP |
48 | Requires: libfuse >= 2.6 |
49 | Requires: openssl >= 0.9.8 | |
50 | Requires: pixman >= 0.1.0 | |
de9a48ab | 51 | Requires: rc-scripts |
782957fb | 52 | Requires: systemd-units >= 38 |
1dc61c50 | 53 | Requires: xinitrc-ng |
54 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
55 | ||
56 | %description | |
57 | xrdp is an open source Remote Desktop Protocol (rdp) server for | |
58 | UNIX-like systems. It is capable of accepting connections from | |
59 | rdesktop and Microsoft's own terminal server / remote desktop clients. | |
60 | ||
61 | Unlike Windows NT/2000/2003 server, xrdp will not display a Windows | |
62 | desktop but an X window desktop to the user. | |
63 | ||
64 | Xrdp uses Xvnc or X11rdp backends to manage the X session. | |
65 | ||
66 | %description -l pl.UTF-8 | |
67 | xrdp jest serwerem protokołu Remote Desktop (rdp) dla systemów | |
2f4a4448 | 68 | UNIXowych. Do xrdp można się łączyć zarówno programem rdesktop, jak i |
69 | klientami protokołu rdp Microsoftu. | |
1dc61c50 | 70 | |
71 | xrdp używa jako backendu Xvnc lub X11rdp. | |
72 | ||
6daa95b0 JB |
73 | %package libs |
74 | Summary: xrdp shared libraries | |
75 | Summary(pl.UTF-8): Biblioteki współdzielone xrdp | |
76 | Group: Libraries | |
185a9537 | 77 | |
6daa95b0 | 78 | %description libs |
185a9537 MK |
79 | xrdp shared libraries. |
80 | ||
6daa95b0 | 81 | %description libs -l pl.UTF-8 |
185a9537 MK |
82 | Biblioteki współdzielone xrdp. |
83 | ||
6daa95b0 JB |
84 | %package devel |
85 | Summary: Header files for xrdp libraries | |
86 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek xrdp | |
87 | Group: Development/Libraries | |
88 | Requires: %{name}-libs = %{version}-%{release} | |
185a9537 | 89 | |
6daa95b0 | 90 | %description devel |
185a9537 MK |
91 | Header files for xrdp libraries. |
92 | ||
6daa95b0 | 93 | %description devel -l pl.UTF-8 |
185a9537 MK |
94 | Pliki nagłówkowe bibliotek xrdp. |
95 | ||
6daa95b0 JB |
96 | %package static |
97 | Summary: Static xrdp libraries | |
98 | Summary(pl.UTF-8): Statyczne biblioteki xrdp | |
99 | Group: Development/Libraries | |
100 | Requires: %{name}-devel = %{version}-%{release} | |
185a9537 | 101 | |
6daa95b0 | 102 | %description static |
185a9537 MK |
103 | Static xrdp libraries. |
104 | ||
6daa95b0 | 105 | %description static -l pl.UTF-8 |
185a9537 MK |
106 | Statyczne biblioteki xrdp. |
107 | ||
1dc61c50 | 108 | %prep |
185a9537 | 109 | %setup -q |
1dc61c50 | 110 | %patch0 -p1 |
111 | %patch1 -p1 | |
1c80cffa | 112 | %patch2 -p1 |
1dc61c50 | 113 | |
185a9537 MK |
114 | install %{SOURCE3} README.PLD |
115 | install %{SOURCE4} README.PLD.pl | |
1dc61c50 | 116 | |
117 | %build | |
0a3433c8 JB |
118 | %{__libtoolize} |
119 | %{__aclocal} -I m4 | |
120 | %{__autoconf} | |
121 | %{__autoheader} | |
122 | %{__automake} | |
123 | cd libpainter | |
124 | %{__libtoolize} | |
125 | %{__aclocal} -I m4 | |
126 | %{__autoconf} | |
127 | %{__autoheader} | |
128 | %{__automake} | |
129 | cd ../librfxcodec | |
130 | %{__libtoolize} | |
131 | %{__aclocal} -I m4 | |
132 | %{__autoconf} | |
133 | %{__autoheader} | |
134 | %{__automake} | |
135 | cd .. | |
782957fb | 136 | %configure \ |
f1da7c18 JP |
137 | --enable-fdkaac \ |
138 | --enable-fuse \ | |
0a3433c8 | 139 | --enable-ipv6 \ |
f1da7c18 JP |
140 | --enable-mp3lame \ |
141 | --enable-opus \ | |
142 | --enable-pam-config=redhat \ | |
0a3433c8 | 143 | --enable-painter \ |
f1da7c18 | 144 | --enable-pixman \ |
0a3433c8 | 145 | --disable-silent-rules \ |
df4b97b2 | 146 | --enable-tjpeg \ |
df4b97b2 | 147 | --enable-vsock \ |
0a3433c8 | 148 | --with-imlib2 |
df4b97b2 | 149 | |
0a3433c8 | 150 | %{__make} |
1dc61c50 | 151 | |
152 | %install | |
153 | rm -rf $RPM_BUILD_ROOT | |
6daa95b0 | 154 | install -d $RPM_BUILD_ROOT{%{_sysconfdir}/%{name},/etc/{pam.d,rc.d/init.d,security}} |
f36b3e91 JR |
155 | |
156 | %{__make} install \ | |
157 | DESTDIR=$RPM_BUILD_ROOT | |
158 | ||
6daa95b0 JB |
159 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/xrdp |
160 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/sesman | |
161 | %{__rm} $RPM_BUILD_ROOT/etc/pam.d/xrdp-sesman | |
162 | %{__ln_s} sesman $RPM_BUILD_ROOT/etc/pam.d/xrdp-sesman | |
185a9537 MK |
163 | :> $RPM_BUILD_ROOT/etc/security/blacklist.sesman |
164 | ||
6daa95b0 JB |
165 | %{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/startwm.sh |
166 | install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/startwm.sh | |
167 | ||
168 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/lib*.{a,la} | |
169 | # obsoleted by pkg-config | |
170 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la | |
171 | ||
185a9537 MK |
172 | %pre |
173 | %groupadd -g 183 xrdp | |
1dc61c50 | 174 | |
175 | %post | |
1bf7136e | 176 | /sbin/chkconfig --add xrdp |
177 | %service xrdp restart "xrdp server" | |
782957fb | 178 | %systemd_post xrdp.service xrdp-sesman.service |
1dc61c50 | 179 | |
1dc61c50 | 180 | %preun |
181 | if [ "$1" = "0" ]; then | |
182 | %service xrdp stop | |
183 | /sbin/chkconfig --del xrdp | |
184 | fi | |
782957fb | 185 | %systemd_preun xrdp.service xrdp-sesman.service |
1dc61c50 | 186 | |
185a9537 MK |
187 | %postun |
188 | if [ "$1" = "0" ]; then | |
189 | %groupremove xrdp | |
190 | fi | |
782957fb | 191 | %systemd_reload |
1dc61c50 | 192 | |
193 | %clean | |
194 | rm -rf $RPM_BUILD_ROOT | |
195 | ||
6daa95b0 JB |
196 | %post libs -p /sbin/ldconfig |
197 | %postun libs -p /sbin/ldconfig | |
185a9537 | 198 | |
1dc61c50 | 199 | %files |
200 | %defattr(644,root,root,755) | |
0a3433c8 JB |
201 | %doc COPYING NEWS.md README.md README.PLD |
202 | %lang(pl) %doc README.PLD.pl | |
1dc61c50 | 203 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/sesman |
185a9537 MK |
204 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.sesman |
205 | %attr(640,root,root) /etc/pam.d/xrdp-sesman | |
1dc61c50 | 206 | %attr(754,root,root) /etc/rc.d/init.d/xrdp |
f36b3e91 | 207 | %dir %{_sysconfdir}/%{name} |
185a9537 MK |
208 | %dir %{_sysconfdir}/%{name}/pulse |
209 | %config(noreplace) %{_sysconfdir}/%{name}/cert.pem | |
210 | %config(noreplace) %{_sysconfdir}/%{name}/key.pem | |
1dc61c50 | 211 | %config(noreplace) %{_sysconfdir}/%{name}/rsakeys.ini |
212 | %config(noreplace) %{_sysconfdir}/%{name}/sesman.ini | |
185a9537 MK |
213 | %config(noreplace) %{_sysconfdir}/%{name}/xrdp.ini |
214 | %config(noreplace) %{_sysconfdir}/%{name}/xrdp_keyboard.ini | |
215 | %{_sysconfdir}/%{name}/km-*.ini | |
216 | %config(noreplace) %{_sysconfdir}/%{name}/pulse/default.pa | |
217 | %attr(755,root,root) %{_sysconfdir}/xrdp/reconnectwm.sh | |
218 | %attr(755,root,root) %{_sysconfdir}/xrdp/startwm.sh | |
f36b3e91 JR |
219 | %attr(755,root,root) %{_bindir}/xrdp-dis |
220 | %attr(755,root,root) %{_bindir}/xrdp-genkeymap | |
221 | %attr(755,root,root) %{_bindir}/xrdp-keygen | |
222 | %attr(755,root,root) %{_bindir}/xrdp-sesadmin | |
223 | %attr(755,root,root) %{_bindir}/xrdp-sesrun | |
f36b3e91 JR |
224 | %attr(755,root,root) %{_sbindir}/xrdp |
225 | %attr(755,root,root) %{_sbindir}/xrdp-chansrv | |
226 | %attr(755,root,root) %{_sbindir}/xrdp-sesman | |
f36b3e91 | 227 | %dir %{_libdir}/xrdp |
185a9537 MK |
228 | %attr(755,root,root) %{_libdir}/xrdp/libcommon.so* |
229 | %attr(755,root,root) %{_libdir}/xrdp/libmc.so* | |
230 | %attr(755,root,root) %{_libdir}/xrdp/libscp.so* | |
231 | %attr(755,root,root) %{_libdir}/xrdp/libvnc.so* | |
232 | %attr(755,root,root) %{_libdir}/xrdp/libxrdp.so* | |
233 | %attr(755,root,root) %{_libdir}/xrdp/libxrdpapi.so* | |
234 | %attr(755,root,root) %{_libdir}/xrdp/libxup.so* | |
782957fb JP |
235 | %{systemdunitdir}/xrdp.service |
236 | %{systemdunitdir}/xrdp-sesman.service | |
f36b3e91 JR |
237 | %dir %{_datadir}/xrdp |
238 | %{_datadir}/xrdp/ad24b.bmp | |
239 | %{_datadir}/xrdp/ad256.bmp | |
240 | %{_datadir}/xrdp/cursor0.cur | |
241 | %{_datadir}/xrdp/cursor1.cur | |
242 | %{_datadir}/xrdp/sans-10.fv1 | |
243 | %{_datadir}/xrdp/xrdp24b.bmp | |
244 | %{_datadir}/xrdp/xrdp256.bmp | |
185a9537 MK |
245 | %{_datadir}/xrdp/xrdp_logo.bmp |
246 | %{_mandir}/man1/xrdp-dis.1* | |
f36b3e91 JR |
247 | %{_mandir}/man5/sesman.ini.5* |
248 | %{_mandir}/man5/xrdp.ini.5* | |
185a9537 MK |
249 | %{_mandir}/man8/xrdp-chansrv.8* |
250 | %{_mandir}/man8/xrdp-genkeymap.8* | |
251 | %{_mandir}/man8/xrdp-keygen.8* | |
252 | %{_mandir}/man8/xrdp-sesadmin.8* | |
f36b3e91 JR |
253 | %{_mandir}/man8/xrdp-sesman.8* |
254 | %{_mandir}/man8/xrdp-sesrun.8* | |
255 | %{_mandir}/man8/xrdp.8* | |
185a9537 MK |
256 | |
257 | %files libs | |
258 | %defattr(644,root,root,755) | |
6daa95b0 JB |
259 | %attr(755,root,root) %{_libdir}/libpainter.so.*.*.* |
260 | %attr(755,root,root) %ghost %{_libdir}/libpainter.so.0 | |
261 | %attr(755,root,root) %{_libdir}/librfxencode.so.*.*.* | |
262 | %attr(755,root,root) %ghost %{_libdir}/librfxencode.so.0 | |
185a9537 MK |
263 | |
264 | %files devel | |
265 | %defattr(644,root,root,755) | |
266 | %attr(755,root,root) %{_libdir}/libpainter.so | |
267 | %attr(755,root,root) %{_libdir}/librfxencode.so | |
782957fb | 268 | %{_includedir}/ms-*.h |
185a9537 MK |
269 | %{_includedir}/painter.h |
270 | %{_includedir}/rfxcodec_common.h | |
271 | %{_includedir}/rfxcodec_decode.h | |
272 | %{_includedir}/rfxcodec_encode.h | |
273 | %{_includedir}/xrdp_client_info.h | |
274 | %{_includedir}/xrdp_constants.h | |
275 | %{_includedir}/xrdp_rail.h | |
276 | %{_includedir}/xrdp_sockets.h | |
277 | %{_pkgconfigdir}/libpainter.pc | |
278 | %{_pkgconfigdir}/rfxcodec.pc | |
279 | %{_pkgconfigdir}/xrdp.pc | |
280 | ||
281 | %files static | |
282 | %defattr(644,root,root,755) | |
283 | %attr(755,root,root) %{_libdir}/libpainter.a | |
284 | %attr(755,root,root) %{_libdir}/librfxencode.a |