X-Git-Url: https://git.tld-linux.org/?a=blobdiff_plain;f=xrdp.spec;h=c80f65ff07d88060d4eae2b51f0084c27e67359c;hb=be08a91e41b194fc1a614af8ab2ce5c3f213ba97;hp=757d9de6b22823af8ee5ad4b6fa3d75771ccfb6b;hpb=bf524922b592ede951bacfb56ea09c3dca93b462;p=packages%2Fxrdp.git diff --git a/xrdp.spec b/xrdp.spec index 757d9de..c80f65f 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.9 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: d2f57182036c3f69dcaca0dfed4aaa6b 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