Summary: Open source remote desktop protocol (RDP) server Name: xrdp Version: 0.9.22.1 Release: 1 License: ASL 2.0 and GPLv2+ and MIT URL: http://www.xrdp.org/ Source0: https://github.com/neutrinolabs/xrdp/releases/download/v%{version}/xrdp-%{version}.tar.gz Source1: https://github.com/neutrinolabs/xrdp/releases/download/v%{version}/xrdp-%{version}.tar.gz.asc # get the key from keyserver using: # gpg --receive-keys 0x9F72CDBC01BF10EB # gpg --export 9F72CDBC01BF10EB > 18AB838A907167745914871903993B4065E7193B.gpg Source2: 18AB838A907167745914871903993B4065E7193B.gpg Source3: xrdp.sysconfig Source4: xrdp.logrotate Source5: xrdp.polkit BuildRequires: make BuildRequires: /usr/bin/gpg2 BuildRequires: gcc BuildRequires: automake autoconf libtool BuildRequires: libX11-devel BuildRequires: libXfixes-devel BuildRequires: libXrandr-devel BuildRequires: imlib2-devel BuildRequires: openssl-devel BuildRequires: pam-devel BuildRequires: nasm BuildRequires: pixman-devel BuildRequires: check-devel BuildRequires: systemd Requires: tigervnc-server-minimal Requires: xorg-x11-xinit Requires: util-linux Requires: xorg-x11-server Requires(post): systemd Requires(post): systemd-sysv Requires(post): /sbin/ldconfig Requires(posttrans): openssl Requires(preun): systemd Requires(posttrans): systemd %package devel Summary: Headers and pkg-config files needed to compile xrdp backends Requires: %{name} = %{version}-%{release} %description xrdp provides a fully functional RDP server compatible with a wide range of RDP clients, including FreeRDP and Microsoft RDP client. %description devel This package contains headers necessary for developing xrdp backends that talk to xrdp. %prep %autosetup # gpg verify workdir=$(mktemp -d) /usr/bin/gpg2 --homedir="${workdir}" --yes --output=${workdir}/keyring.gpg --dearmor %{SOURCE2} /usr/bin/gpg2 --verify --homedir="${workdir}" --keyring=${workdir}/keyring.gpg %{SOURCE1} %{SOURCE0} rm -rf ${workdir} %build ./bootstrap CFLAGS="$RPM_OPT_FLAGS %{?_missing_braces}" \ %configure --enable-vsock --enable-tests --enable-pixman \ --enable-painter --with-imlib2=yes %make_build %install %make_install %{__install} -Dp -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/sysconfig/xrdp %{__install} -Dp -m 644 %{SOURCE4} %{buildroot}%{_sysconfdir}/logrotate.d/xrdp %{__install} -Dp -m 644 %{SOURCE5} %{buildroot}%{_datadir}/polkit-1/rules.d/xrdp.rules %post %systemd_post xrdp.service %preun systemctl stop xrdp.service > /dev/null 2>&1 || : %ldconfig_postun %posttrans if [ ! -s %{_sysconfdir}/xrdp/rsakeys.ini ]; then (umask 377; touch %{_sysconfdir}/xrdp/rsakeys.ini; %{_bindir}/xrdp-keygen xrdp %{_sysconfdir}/xrdp/rsakeys.ini &>/dev/null) fi %files %doc COPYING %dir %{_libdir}/xrdp %dir %{_sysconfdir}/xrdp %dir %{_sysconfdir}/xrdp/pulse %dir %{_datadir}/xrdp %config(noreplace) %{_sysconfdir}/xrdp/xrdp.ini %config(noreplace) %{_sysconfdir}/pam.d/xrdp-sesman %config(noreplace) %{_sysconfdir}/logrotate.d/xrdp %config(noreplace) %{_sysconfdir}/sysconfig/xrdp %config(noreplace) %{_sysconfdir}/xrdp/sesman.ini %config(noreplace) %{_sysconfdir}/xrdp/km*.ini %config(noreplace) %{_sysconfdir}/xrdp/xrdp_keyboard.ini %config(noreplace) %{_sysconfdir}/xrdp/pulse/default.pa %exclude %ghost %{_sysconfdir}/xrdp/*.pem %exclude %ghost %{_sysconfdir}/xrdp/rsakeys.ini %{_bindir}/xrdp-genkeymap %{_bindir}/xrdp-sesadmin %{_bindir}/xrdp-keygen %{_bindir}/xrdp-sesrun %{_bindir}/xrdp-dis %{_bindir}/paintertest %{_sbindir}/xrdp-chansrv %{_sbindir}/xrdp %{_sbindir}/xrdp-sesman %{_datadir}/xrdp/ad256.bmp %{_datadir}/xrdp/cursor0.cur %{_datadir}/xrdp/cursor1.cur %{_datadir}/xrdp/xrdp256.bmp %{_datadir}/xrdp/sans-10.fv1 %{_datadir}/xrdp/ad24b.bmp %{_datadir}/xrdp/xrdp24b.bmp %{_datadir}/xrdp/xrdp_logo.bmp %{_datadir}/polkit-1/rules.d/xrdp.rules %{_mandir}/man5/* %{_mandir}/man8/* %{_mandir}/man1/* %{_libdir}/librfxencode.so* %{_libdir}/libpainter.* %{_libdir}/xrdp/lib*.so* %{_sysconfdir}/xrdp/*.sh %exclude %{_libdir}/librfxencode.so %exclude %{_libdir}/xrdp/libcommon.so %exclude %{_libdir}/xrdp/libscp.so %exclude %{_libdir}/xrdp/libxrdp.so %exclude %{_libdir}/xrdp/libxrdpapi.so %{_unitdir}/xrdp-sesman.service %{_unitdir}/xrdp.service %exclude %{_includedir}/painter.h %exclude %{_libdir}/pkgconfig/libpainter.pc %exclude %{_libdir}/*.a %exclude %{_libdir}/*.la %exclude %{_libdir}/xrdp/*.a %exclude %{_libdir}/xrdp/*.la %ghost %{_localstatedir}/log/xrdp.log %ghost %{_localstatedir}/log/xrdp-sesman.log %ghost %{_localstatedir}/run/xrdp.pid %ghost %{_localstatedir}/run/xrdp-sesman.pid %exclude %{_libdir}/pkgconfig/rfxcodec.pc %files devel %{_includedir}/ms-* %{_includedir}/xrdp* %{_includedir}/rfxcodec_*.h %{_libdir}/librfxencode.so %{_libdir}/xrdp/libcommon.so %{_libdir}/xrdp/libscp.so %{_libdir}/xrdp/libxrdp.so %{_libdir}/xrdp/libxrdpapi.so %{_libdir}/pkgconfig/rfxcodec.pc %{_libdir}/pkgconfig/xrdp.pc %changelog * Mon Jul 24 2023 lichaoran 0.9.22.1-1 - Initial package