File ispell-3.3.02-config.patch of Package ispell

--- Makefile
+++ Makefile	2007-05-31 17:28:33.532557680 +0200
@@ -249,6 +249,10 @@ EXTRADICT = Use_config.sh
 SHELL = /bin/sh
 MAKE = make
 
+ifeq ($(RPM_OPT_FLAGS),)
+RPM_OPT_FLAGS = -O2
+endif
+
 #
 #	Set this to "-vx" in the make command line if you need to
 #	debug the complex shell commands.
@@ -638,7 +642,7 @@ config.h:	config.X local.h
 #	Create a sample local.h if no such file currently exists
 local.h:
 	set +e; \
-	  [ -r local.h ]  ||  (cp local.h.generic local.h; chmod u+w local.h)
+	  sed "s/.[{(]\?RPM_OPT_FLAGS[})]\?/$(RPM_OPT_FLAGS)/" < local.h.linux > local.h
 
 msgs.h:	config.sh FRC
 	@. ./config.sh; \
--- local.h.linux
+++ local.h.linux	2007-05-31 17:48:04.745014132 +0200
@@ -68,6 +68,8 @@
 #define GENERATE_LIBRARY_PROTOS
 #define	EGREPCMD "grep -Ei"
 #define	HAS_RENAME
+#undef	NO_FCNTL_H	/* Define if you get compile errors on fcntl.h */
+#undef	NO_MKSTEMP	/* Define if you get compile or link errors */
 
 /*
  * Important directory paths.  If you change MAN45DIR from man5 to
@@ -75,14 +77,43 @@
  * MAN45EXT (but not if you keep the man pages in section 5 and just
  * store them in a different place).
  */
-#define BINDIR	"/usr/local/bin"
-#define LIBDIR	"/usr/local/lib"
-#define MAN1DIR	"/usr/local/man/man1"
-#define	MAN45DIR "/usr/local/man/man5"
-#define	MAN45EXT ".5"
+#define BINDIR		"/usr/bin"
+#define LIBDIR		"/usr/lib/ispell"
+#define MAN1DIR		"/usr/share/man/man1"
+#define	MAN45DIR	"/usr/share/man/man5"
+#define	MAN45EXT	".5"
 
 /*
  * Place any locally-required #include statements here
  */
 
+#define WORDS		"/usr/share/dict/words"
+#define CC		"gcc"
+#define CFLAGS		"$RPM_OPT_FLAGS -pipe"
+#define TERMLIB		"-lncurses"
+#define LINK		"ln -s"
+#define LANGUAGES	"{american,MASTERDICTS=american.xlg,HASHFILES=americanxlg.hash,EXTRADICT=} {british,MASTERDICTS=british.xlg,HASHFILES=britishxlg.hash,EXTRADICT=} {american,MASTERDICTS=american.med,HASHFILES=americanmed.hash,EXTRADICT=} {british,MASTERDICTS=british.med,HASHFILES=britishmed.hash,EXTRADICT=}"
+
+/*
+ * Settings
+ */
+
+#define COMMANDFORSPACE
+#define MASKBITS	64
+#define INPUTWORDLEN	256
+#define MAXAFFIXLEN	48
+#define MAXSTRINGCHARS	512
+#define MASTERHASH	"britishxlg.hash"
+#define DEFNOBACKUPFLAG	0
+#define BAKEX		"~"
+#define DEFTEXFLAG	DEFORMAT_TEX
+#undef  EGREPCMD
+#define EGREPCMD	"/bin/grep -iE"
+#define LOOK		"/usr/bin/look -df"
+#define MAKE_SORTTMP	"-T ${TMPDIR-/var/tmp}"
+#define SORTPERSONAL	6000
+#define USESH
+#undef  TIB_XREF
+#define TIB_XREF	".IR tib (not\\ available),"
+
 #endif /* LOCAL_H_INCLUDED */
openSUSE Build Service is sponsored by