summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-07-24 11:46:52 +0000
committerCoprDistGit <infra@openeuler.org>2023-07-24 11:46:52 +0000
commit6c5a87be0b80ffd9a200b91f4ce4da9dbbddb145 (patch)
tree63e94dd95748aef39c303e3a0fcfde1bc32d0e6e
parentff2c4e9c1ee1ed00cc50204442a1a4c31dc45b49 (diff)
automatic import of xrdp
-rw-r--r--.gitignore2
-rw-r--r--sources2
-rw-r--r--xrdp-0.9.22.1.tar.gz.asc16
-rw-r--r--xrdp.spec153
4 files changed, 173 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..102972c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1,2 @@
+/18AB838A907167745914871903993B4065E7193B.gpg
+/xrdp-0.9.22.1.tar.gz
diff --git a/sources b/sources
new file mode 100644
index 0000000..2cfe34e
--- /dev/null
+++ b/sources
@@ -0,0 +1,2 @@
+52881d20dd54ce8fc4bcfc1c33fb67ca 18AB838A907167745914871903993B4065E7193B.gpg
+64b012b05ed41a445281adc7903d968e xrdp-0.9.22.1.tar.gz
diff --git a/xrdp-0.9.22.1.tar.gz.asc b/xrdp-0.9.22.1.tar.gz.asc
new file mode 100644
index 0000000..ce38369
--- /dev/null
+++ b/xrdp-0.9.22.1.tar.gz.asc
@@ -0,0 +1,16 @@
+-----BEGIN PGP SIGNATURE-----
+
+iQIzBAABCAAdFiEEGKuDipBxZ3RZFIcZA5k7QGXnGTsFAmRsEM0ACgkQA5k7QGXn
+GTvOXA//cvi3R0CMIOtTCb8LYXEeH6+S8c4Mr/FDvvWn/7+lKcDG2T/d5dLkLobn
+oQjmdnFT/aTlcQau5tlbpRms5zYjT9uAx4CCQ6pQENEbzlq4hB4yQ8ue8b9Up08v
+4W0JyMZYpq96Hd1VgNOf+MBkLsHbKsCPB8f6GqEWvdMIrRtBTvP4pb+BxLgKxcZ8
+afWRcjymgVUBRgwzAP2KAiOhFM6aVCUVf0JQ97YxhZWMt2+IWwl0MvJW4otztMC/
+FgOomfdXnkhUKjdN5GTbG4mwBF4NiLSQirQfdFp+mkpZMTQNoqkahymXbAv9O525
+mqpItW59MjkonlvpPwX3ZiRBjOezOFhq/tAyKUWJ2FxYG7YRuVM50rrI8bhIQ90N
+JO2KIwfLcki+wNDNlYYZvUFV6vdjwIOWy26gtsu0sTCSH7BIZ9kezxhfYiY9BBGN
+6XuCtz6/rbcF89a7pMJoME+obGDlemp7vmhAf5R3pjtXjfj62eIfxefvjt0w1rvU
+fujowcsgOUWAQ3evMSedrjThdD6fETbNc9nHCtum0SzMcupTZp4bBhDR2eaVv4QF
+kd+BwG0vE+tiWDs6xeKrxhNS/Ok80B7coFeynuzALQXxVQk69e7mTmZtotkRAwx2
++hXaVl+EjuskKFPevrz6TlIzQYNj7qyjhgGbJ4HllUcsJdc7Wa4=
+=ePiK
+-----END PGP SIGNATURE-----
diff --git a/xrdp.spec b/xrdp.spec
new file mode 100644
index 0000000..3ee2dbc
--- /dev/null
+++ b/xrdp.spec
@@ -0,0 +1,153 @@
+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:
+#
+Source2: 18AB838A907167745914871903993B4065E7193B.gpg
+
+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
+
+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
+
+%post
+%{?ldconfig}
+%systemd_post xrdp.service
+
+%preun
+%systemd_preun xrdp.service
+if [ $1 -eq 0 ]; then
+ # Stop services on package removal (see bug 1349083)
+ systemctl stop xrdp.service > /dev/null 2>&1 || :
+fi
+
+%ldconfig_postun
+
+%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}/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
+%{_mandir}/man5/*
+%{_mandir}/man8/*
+%{_mandir}/man1/*
+%{_libdir}/librfxencode.so*
+%{_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}/libpainter.*
+%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 <pkwarcraft@hotmail.com> 0.9.22.1-1
+- Initial package