]> TLD Linux GIT Repositories - packages/xrdp.git/blobdiff - xrdp.spec
- updated to 0.9.8, updated README files
[packages/xrdp.git] / xrdp.spec
index 757d9de6b22823af8ee5ad4b6fa3d75771ccfb6b..f6210287c61ba79fe7af1c93c52b918996a7ca1b 100644 (file)
--- 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.8
 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: 88a3c075583ccedf2183098478b57c17
 Source1:       %{name}.init
 Source2:       %{name}.pamd
 Source3:       %{name}.README.TLD
@@ -27,6 +27,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
@@ -118,6 +121,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 +134,11 @@ if [ "$1" = "0" ]; then
        /sbin/chkconfig --del xrdp
 fi
 
+%postun
+if [ "$1" = "0" ]; then
+       %groupremove xrdp
+fi
+
 %clean
 rm -rf $RPM_BUILD_ROOT