Преглед на файлове

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}" \