瀏覽代碼

not sure why this patch hack is needed, but it does satisfy some rather popular dictionaries who check the legacy (?) existance of a !NO8BIT identifier

Michael Schloh von Bennewitz 21 年之前
父節點
當前提交
fb29031e1f
共有 2 個文件被更改,包括 27 次插入3 次删除
  1. 26 0
      ispell/ispell.patch
  2. 1 3
      ispell/ispell.spec

+ 26 - 0
ispell/ispell.patch

@@ -0,0 +1,26 @@
+--- config.X.orig	Mon Jan 23 19:28:24 1995
++++ config.X	Sun Mar 18 13:11:18 2001
+@@ -107,9 +107,6 @@
+ 
+ #include <sys/param.h>
+ #include <sys/types.h>
+-#ifndef USG
+-#include <sys/dir.h>
+-#endif /* USG */
+ 
+ /*
+ ** Things that normally go in a Makefile.  Define these just like you
+--- ispell.c.orig	2004-05-19 18:07:49.552575166 +0200
++++ ispell.c	2004-05-19 18:08:46.017820502 +0200
+@@ -494,6 +494,11 @@
+ #else /* MINIMENU */
+ 		    (void) printf ("\t!MINIMENU\n");
+ #endif /* MINIMENU */
++#ifdef NO8BIT
++		    (void) printf ("\tNO8BIT\n");
++#else /* NO8BIT */
++		    (void) printf ("\t!NO8BIT\n");
++#endif /* NO8BIT */
+ 		    (void) printf ("\tMINWORD = %d\n", MINWORD);
+ 		    (void) printf ("\tMSDOS_BINARY_OPEN = 0x%x\n",
+ 		      (unsigned int) MSDOS_BINARY_OPEN);

+ 1 - 3
ispell/ispell.spec

@@ -38,7 +38,7 @@ Class:        BASE
 Group:        Text
 License:      BSD
 Version:      %{V_ispell}
-Release:      20040207
+Release:      20040520
 
 #   list of sources
 Source0:      http://fmg-www.cs.ucla.edu/geoff/tars/ispell-%{V_ispell}.tar.gz
@@ -100,7 +100,6 @@ AutoReqProv:  no
     done
     [ ".$termlib" = . ] && exit 1
     ( echo "#define MINIMENU"
-      echo "#undef  NO8BIT"
       echo "#define MASKBITS 64"
       echo "#define CC         \"%{l_cc}\""
       echo "#define CFLAGS     \"%{l_cflags -O}\""
@@ -150,7 +149,6 @@ AutoReqProv:  no
         $RPM_BUILD_ROOT%{l_prefix}/man \
         $RPM_BUILD_ROOT%{l_prefix}/share/ispell
     ( echo "#define MINIMENU"
-      echo "#undef  NO8BIT"
       echo "#define MASKBITS 64"
       echo "#define CC         \"%{l_cc}\""
       echo "#define CFLAGS     \"%{l_cflags -O}\""