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