X-Git-Url: https://git.tld-linux.org/?a=blobdiff_plain;f=xrdp.spec;h=50b44ad241252d5a09e10b42fc8a009b3634015f;hb=ebcd383e3657a751e668364685041611b54076ab;hp=757d9de6b22823af8ee5ad4b6fa3d75771ccfb6b;hpb=bf524922b592ede951bacfb56ea09c3dca93b462;p=packages%2Fxrdp.git diff --git a/xrdp.spec b/xrdp.spec index 757d9de..50b44ad 100644 --- a/xrdp.spec +++ b/xrdp.spec @@ -1,12 +1,12 @@ Summary: Remote desktop server Summary(pl.UTF-8): Serwer remote desktop Name: xrdp -Version: 0.9.7 +Version: 0.9.10 Release: 1 License: GPL Group: X11/Applications/Networking Source0: https://github.com/neutrinolabs/xrdp/releases/download/v%{version}/%{name}-%{version}.tar.gz -# Source0-md5: 5f8074a7bed8b45d43ef028748a86755 +# Source0-md5: f2cb9b1f502b88c958de3a424ed6baa9 Source1: %{name}.init Source2: %{name}.pamd Source3: %{name}.README.TLD @@ -17,7 +17,6 @@ Patch1: quiet.patch URL: http://www.xrdp.org/ BuildRequires: autoconf BuildRequires: automake -BuildRequires: freerdp-devel BuildRequires: libtool BuildRequires: openssl-devel BuildRequires: pam-devel @@ -27,6 +26,9 @@ Requires(post,preun): /sbin/chkconfig Requires: /usr/bin/Xvnc Requires: rc-scripts Requires: xinitrc-ng +Requires(postun): /usr/sbin/groupdel +Requires(pre): /usr/bin/getgid +Requires(pre): /usr/sbin/groupadd BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description @@ -97,8 +99,7 @@ install %{SOURCE4} README.TLD.pl %{__autoconf} %{__autoheader} %{__automake} -%configure \ - --enable-freerdp1 +%configure %{__make} %install @@ -118,6 +119,9 @@ install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/xrdp/startwm.sh :> $RPM_BUILD_ROOT/etc/security/blacklist.sesman +%pre +%groupadd -g 183 xrdp + %post /sbin/chkconfig --add xrdp %service xrdp restart "xrdp server" @@ -128,6 +132,11 @@ if [ "$1" = "0" ]; then /sbin/chkconfig --del xrdp fi +%postun +if [ "$1" = "0" ]; then + %groupremove xrdp +fi + %clean rm -rf $RPM_BUILD_ROOT