X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=Canna.spec;h=f51bc9e8a6506e2f1197451ecdacc0509666050d;hb=51cb32d45d8822eff95e1cf381951259d738ed3c;hp=41c43d83f346ac892166ac2d47d066aaabc37ef7;hpb=769d51e940b2e9dcab8866670d4dd2f00802f15c;p=packages%2FCanna.git diff --git a/Canna.spec b/Canna.spec index 41c43d8..f51bc9e 100644 --- a/Canna.spec +++ b/Canna.spec @@ -25,12 +25,12 @@ URL: http://www.nec.co.jp/japanese/product/computer/soft/canna/ BuildRequires: imake PreReq: rc-scripts Requires(post,preun): /sbin/chkconfig -Requires(pre): /bin/id -Requires(pre): /usr/bin/getgid -Requires(pre): /usr/sbin/groupadd -Requires(pre): /usr/sbin/useradd -Requires(postun): /usr/sbin/userdel -Requires(postun): /usr/sbin/groupdel +Requires(pre): /bin/id +Requires(pre): /usr/bin/getgid +Requires(pre): /usr/sbin/groupadd +Requires(pre): /usr/sbin/useradd +Requires(postun): /usr/sbin/userdel +Requires(postun): /usr/sbin/groupdel Requires: %{name}-libs = %{version} BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) ExcludeArch: ia64 @@ -154,21 +154,21 @@ rm -fr $RPM_BUILD_ROOT %pre if [ -n "`getgid canna`" ]; then - if [ "`getgid canna`" != "41" ]; then - echo "Warning: group canna doesn't have gid=41. Correct this before installing Canna." 1>&2 - exit 1 - fi + if [ "`getgid canna`" != "41" ]; then + echo "Warning: group canna doesn't have gid=41. Correct this before installing Canna." 1>&2 + exit 1 + fi else - /usr/sbin/groupadd -g 41 -r -f canna + /usr/sbin/groupadd -g 41 -r -f canna fi if [ -n "`id -u canna 2>/dev/null`" ]; then - if [ "`id -u canna`" != "41" ]; then - echo "Warning: user canna doesn't have uid=41. Correct this before installing Canna." 1>&2 - exit 1 - fi + if [ "`id -u canna`" != "41" ]; then + echo "Warning: user canna doesn't have uid=41. Correct this before installing Canna." 1>&2 + exit 1 + fi else - /usr/sbin/useradd -u 41 -r -d /var/lib/canna -s /bin/false \ - -c "Canna Service User" -g canna canna 1>&2 + /usr/sbin/useradd -u 41 -r -d /var/lib/canna -s /bin/false \ + -c "Canna Service User" -g canna canna 1>&2 fi %post @@ -189,7 +189,7 @@ fi %postun if [ "$1" = "0" ]; then - /usr/sbin/userdel canna + /usr/sbin/userdel canna fi %post libs -p /sbin/ldconfig