]> git.pld-linux.org Git - packages/amavis.git/blobdiff - amavis.spec
- outdated
[packages/amavis.git] / amavis.spec
index f2d09f75420455d03e386fb4a8293fbd7464685c..4ada6e6cc514a7adfd09d9809a566756b76b570e 100644 (file)
@@ -1,15 +1,14 @@
 %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
@@ -32,9 +31,9 @@ BuildRequires:        unarj
 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
@@ -57,9 +56,7 @@ AMaViS to skrypt po
 a jednym lub wiêcej programów antywirusowych.
 
 %prep
-%setup -q -n %{name}-perl-%{version}
-%patch0 -p1
-%patch1 -p1
+%setup -q
 
 %build
 %{__aclocal}
@@ -88,17 +85,17 @@ 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
+       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
This page took 0.049172 seconds and 4 git commands to generate.