]> git.pld-linux.org Git - packages/FreeWnn.git/commitdiff
- use %useradd/%groupadd macros
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 1 May 2005 17:31:30 +0000 (17:31 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    FreeWnn.spec -> 1.18

FreeWnn.spec

index 7c09a04cc997113a64d6614bcfafc689f0c4ca0b..cca1e43f4c4e390e5d50d8c8d2e7fe04dcca1cca 100644 (file)
@@ -26,7 +26,7 @@ BuildRequires:        autoconf
 BuildRequires: automake
 BuildRequires: libtool
 BuildRequires: ncurses-devel
-BuildRequires: rpmbuild(macros) >= 1.159
+BuildRequires: rpmbuild(macros) >= 1.202
 PreReq:                %{name}-common = %{epoch}:%{version}-%{release}
 Requires(post,preun):  /sbin/chkconfig
 Requires:      %{name}-libs = %{epoch}:%{version}-%{release}
@@ -375,23 +375,8 @@ fi
 %postun        -n kWnn-libs -p /sbin/ldconfig
 
 %pre common
-if [ -n "`/usr/bin/getgid wnn`" ]; then
-       if [ "`/usr/bin/getgid wnn`" != 42 ]; then
-               echo "Warning: group wnn doesn't have gid=42. Correct this before installing FreeWnn." 1>&2
-               exit 1
-       fi
-else
-       /usr/sbin/groupadd -g 42 wnn 1>&2
-fi
-if [ -n "`/bin/id -u wnn 2>/dev/null`" ]; then
-       if [ "`/bin/id -u wnn`" != 42 ]; then
-               echo "Warning: user wnn doesn't have uid=42. Correct this before installing FreeWnn." 1>&2
-               exit 1
-       fi
-else
-       /usr/sbin/useradd -u 42 -c "Wnn Service User" -g wnn \
-               -s /bin/false wnn 1>&2
-fi
+%groupadd -P %{name}-common -g 42 wnn
+%useradd -P %{name}-common -u 42 -c "Wnn Service User" -g wnn -s /bin/false wnn
 
 %postun common
 if [ "$1" = "0" ]; then
This page took 0.124166 seconds and 4 git commands to generate.