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