瀏覽代碼

fix freebsd4 including fix from http://www.freebsd.org/cgi/cvsweb.cgi/ports/archivers/sharutils/Makefile#rev1.28

Thomas Lotterer 20 年之前
父節點
當前提交
372607d047
共有 1 個文件被更改,包括 8 次插入1 次删除
  1. 8 1
      sharutils/sharutils.spec

+ 8 - 1
sharutils/sharutils.spec

@@ -33,7 +33,7 @@ Class:        BASE
 Group:        Archiver
 License:      GPL
 Version:      4.3.80
-Release:      20050430
+Release:      20050612
 
 #   list of sources
 Source0:      ftp://ftp.gnu.org/gnu/sharutils/REL-%{version}/sharutils-%{version}.tar.gz
@@ -71,6 +71,13 @@ AutoReqProv:  no
 %prep
     %setup -q
     chmod a+rx install-sh
+    case "%{l_platform -t}" in
+        *-freebsd4* )
+            %{l_shtool} subst \
+                -e 's|uintmax_t|unsigned long long|;s|intmax_t|long long|' \
+                */*.[ch]
+            ;;
+    esac
 
 %build
     CC="%{l_cc}" \