]> git.pld-linux.org Git - packages/amavis.git/blobdiff - amavis.spec
- Req user-amavis
[packages/amavis.git] / amavis.spec
index 2b57df3c1533f0cbb155c2ccad19b8a720f6d08d..a32a258fd53a0c1dcd50508da6c7ad81b88d48a7 100644 (file)
@@ -4,7 +4,7 @@ Summary:        A Mail Virus Scanner
 Summary(pl):   Antywirusowy skaner poczty elektronicznej
 Name:          amavis
 Version:       11
-Release:       3
+Release:       4
 URL:           http://www.amavis.org/
 Source0:       http://www.amavis.org/dist/perl/%{name}-perl-%{version}.tar.gz
 Patch0:                %{name}-perl-mks32.patch
@@ -32,9 +32,7 @@ BuildRequires:        unarj
 BuildRequires: ncompress
 BuildRequires: unrar
 BuildRequires: zoo
-Requires(pre): /bin/id
-Requires(pre): /usr/sbin/useradd
-Requires(postun):      /usr/sbin/userdel
+Requires(pre): user-amavis
 Requires:      file
 Requires:      sh-utils
 Requires:      arc
@@ -45,6 +43,7 @@ Requires:     ncompress
 Requires:      unrar
 Requires:      zoo
 Requires:      /usr/sbin/sendmail
+Obsoletes:     amavisd
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -61,8 +60,8 @@ a jednym lub wi
 %patch1 -p1
 
 %build
-aclocal
-automake -a -c
+%{__aclocal}
+%{__automake}
 %{__autoconf}
 %configure \
        --enable-all \
@@ -84,21 +83,6 @@ rm -rf $RPM_BUILD_ROOT
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%pre
-if [ -n "`id -u amavis 2>/dev/null`" ]; then
-       if [ "`id -u amavis`" != "97" ]; then
-               echo "Error: user amavis doesn't have uid=97. Correct this before installing amavis." 1>&2
-               exit 1
-       fi
-else
-       /usr/sbin/useradd -u 97 -r -d /var/spool/amavis  -s /bin/false -c "Anti Virus Checker" -g nobody  amavis 1>&2
-fi
-
-%postun
-if [ "$1" = "0" ]; then
-       /usr/sbin/userdel amavis
-fi
-
 %files
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_sbindir}/*
This page took 0.028508 seconds and 4 git commands to generate.