Browse Source

upgrading package: antiword 0.35 -> 0.36

Thorsten Hohmeier 21 years ago
parent
commit
850a62b06e
1 changed files with 17 additions and 2 deletions
  1. 17 2
      antiword/antiword.spec

+ 17 - 2
antiword/antiword.spec

@@ -33,8 +33,8 @@ Distribution: OpenPKG
 Class:        PLUS
 Group:        Converter
 License:      GPL
-Version:      0.35
-Release:      20040207
+Version:      0.36
+Release:      20041025
 
 #   list of sources
 Source0:      http://www.winfield.demon.nl/linux/antiword-%{version}.tar.gz
@@ -70,6 +70,21 @@ AutoReqProv:  no
     %{l_shtool} subst \
         -e 's;szHome = szGetHomeDirectory()\;;;g' \
         fonts_u.c options.c
+    case "%{l_platform -t}" in
+        *-freebsd4* )
+                %{l_shtool} subst \
+                    -e 's;\(^#if defined(__STDC_ISO_10646__)\);\1 || defined(__FreeBSD__);' \
+                    main_u.c
+            ;;
+        *-freebsd5* | *-netbsd* | *-linux2* | sun4*-sunos5* )
+                %{l_shtool} subst \
+                    -e 's;\(^#if defined(__STDC_ISO_10646__)\);\1 || defined(__FreeBSD__) || defined(__NetBSD__)\n#include<wchar.h>;' \
+                    *.[ch]
+                ;;
+            * ) echo "Platform %{l_platform -t} not supported" | %{l_rpmtool} msg -b
+                exit 1
+                ;;
+    esac
     CC="%{l_cc}" \
     CFLAGS="%{l_cflags -O}" \
     %{l_make} %{l_mflags -O} antiword