%include /usr/lib/rpm/macros.perl
+%define sub_ver pre2
Summary: A Mail Virus Scanner
Summary(pl): Antywirusowy skaner poczty elektronicznej
Name: amavis
-Version: 11
-Release: 4
+Version: 0.3.13%{sub_ver}
+Release: 0.1
URL: http://www.amavis.org/
-Source0: http://www.amavis.org/dist/perl/%{name}-perl-%{version}.tar.gz
-# Source0-md5: e19bfabb2da4aeccc8227766995442d5
-Patch0: %{name}-perl-mks32.patch
-Patch1: %{name}-nomilter.patch
+Source0: http://www.amavis.org/dist/perl/%{name}-%{version}.tar.gz
+# Source0-md5: 2b90dba30a5ea2b73c2b348e26967f30
License: GPL
Group: Applications/Mail
Obsoletes: AMaViS
BuildRequires: ncompress
BuildRequires: unrar
BuildRequires: zoo
-Requires(pre): /bin/id
-Requires(pre): /usr/sbin/useradd
-Requires(postun): /usr/sbin/userdel
+Requires(pre): /bin/id
+Requires(pre): /usr/sbin/useradd
+Requires(postun): /usr/sbin/userdel
Requires: file
Requires: sh-utils
Requires: arc
a jednym lub wiêcej programów antywirusowych.
%prep
-%setup -q -n %{name}-perl-%{version}
-%patch0 -p1
-%patch1 -p1
+%setup -q
%build
%{__aclocal}
%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
+ 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
+ /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
+ /usr/sbin/userdel amavis
fi
%files