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