Browse Source

use base source and patches

Michael van Elst 22 years ago
parent
commit
aab445f511
1 changed files with 7 additions and 7 deletions
  1. 7 7
      amavisd/amavisd.spec

+ 7 - 7
amavisd/amavisd.spec

@@ -26,10 +26,6 @@
 #   FIXME mlelstv - junk because untested, especially milter option
 
 #   version numbers
-%define       V_base    20030314
-%define       V_pl      1
-%define       V_openpkg %{V_base}_p%{V_pl}
-%define       V_vendor  %{V_base}-p%{V_pl}
 
 #   package information
 Name:         amavisd
@@ -40,15 +36,17 @@ Packager:     The OpenPKG Project
 Distribution: OpenPKG [JUNK]
 Group:        Mail
 License:      GPL
-Version:      %{V_openpkg}
+Version:      20030314
 Release:      20030422
 
 #   package options
 %option       with_milter no
 
 #   list of sources
-Source0:      http://www.ijs.si/software/amavisd/amavisd-new-%{V_vendor}.tar.gz
+Source0:      http://www.ijs.si/software/amavisd/amavisd-new-%{version}.tar.gz
 Source1:      rc.amavisd
+Patch0:       http://www.ijs.si/software/amavisd/amavisd-new-%{version}-p1A.patch
+Patch1:       http://www.ijs.si/software/amavisd/amavisd-new-%{version}-p1B.patch
 
 #   build information
 Prefix:       %{l_prefix}
@@ -73,7 +71,9 @@ AutoReqProv:  no
     with any MTA as a SMTP relay.
 
 %prep
-    %setup -q -n %{name}-new-%{V_base}
+    %setup -q -n %{name}-new-%{version}
+    %patch0 -p0
+    %patch1 -p0
 
 %build
 %if "%{with_milter}" == "yes"