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