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