瀏覽代碼

add patchlevel to both package version and online showed version; simplify packaging by merging %patch lines

Ralf S. Engelschall 21 年之前
父節點
當前提交
13be927ef7
共有 1 個文件被更改,包括 7 次插入10 次删除
  1. 7 10
      bash/bash.spec

+ 7 - 10
bash/bash.spec

@@ -26,6 +26,7 @@
 #   package version
 %define       V_real 2.05b
 %define       V_comp 205b
+%define       V_plvl 7
 
 #   package information
 Name:         bash
@@ -37,8 +38,8 @@ Distribution: OpenPKG
 Class:        CORE
 Group:        Shell
 License:      GPL
-Version:      %{V_real}
-Release:      20040207
+Version:      %{V_real}.%{V_plvl}
+Release:      20040327
 
 #   list of sources
 Source0:      ftp://ftp.cwru.edu/pub/bash/bash-%{V_real}.tar.gz
@@ -83,17 +84,13 @@ AutoReqProv:  no
 
 %prep
     %setup -q
-    %patch -p0
-    %patch -p0 -P 1
-    %patch -p0 -P 2
-    %patch -p0 -P 3
-    %patch -p0 -P 4
-    %patch -p0 -P 5
-    %patch -p0 -P 6
-    %patch -p0 -P 7
+    %patch -p0 -P 0 1 2 3 4 5 6 7
     %{l_shtool} subst \
         -e 's;@l_openpkg_release@;%{l_openpkg_release};' \
         version.c
+    %{l_shtool} subst \
+        -e 's;\(PATCHLEVEL\) 0;\1 %{V_plvl};' \
+        patchlevel.h
 
 %build
     #   configure package