From 7a50d85936fe137232e700944944ebe05bf75bb3 Mon Sep 17 00:00:00 2001 From: "Ralf S. Engelschall" Date: Mon, 24 Mar 2003 11:23:51 +0000 Subject: [PATCH] speclint police and fix building --- spegla/spegla.spec | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/spegla/spegla.spec b/spegla/spegla.spec index 44e592fcec..165f58c92f 100644 --- a/spegla/spegla.spec +++ b/spegla/spegla.spec @@ -33,7 +33,7 @@ Distribution: OpenPKG [EVAL] Group: Network License: BSD Version: 1.1p4 -Release: 20030103 +Release: 20030324 # package options %option with_ipv6 no @@ -61,14 +61,17 @@ AutoReqProv: no %setup -q %patch0 -p0 %patch1 -p0 - cp regex/*.[ch] . %build cp Makefile.linux Makefile %{l_shtool} subst \ -e 's;gcc;$(CC);' \ - -e 's;^\(OBJS[ ]*=\);\1 regcomp.o regerror.o regexec.o regfree.o;' \ + -e 's;^\(OBJS[ ]*=\);\1 regex/regcomp.o regex/regerror.o regex/regexec.o regex/regfree.o;' \ Makefile + for name in regex/regcomp regex/regerror regex/regexec regex/regfree; do + echo "$name.o: $name.c" >>Makefile + echo " \$(CC) \$(CFLAGS) -o $name.o $name.c \$(DEFS)" >>Makefile + done CC="%{l_cc}" CFLAGS="%{l_cflags -O} -c" %if "%{with_ipv6}" == "yes" @@ -80,7 +83,7 @@ AutoReqProv: no case "%{l_target}" in *-freebsd* ) DEFS="$DEFS -DFREEBSD"; LDFLAGS="$LDFLAGS -lcompat" ;; *-linux* ) DEFS="$DEFS -DLINUX" ;; - *-solaris* ) DEFS="$DEFS -DSolaris -DMTYPES-DPROGNAME=\\\"spegla\\\"" ;; + *-solaris* ) DEFS="$DEFS -DSolaris -DMTYPES -DNOCDEFS -DPROGNAME=\\\"spegla\\\"" ;; esac %{l_make} %{l_mflags -O} \ CC="$CC" CFLAGS="$CFLAGS" DEFS="$DEFS" LDFLAGS="$LDFLAGS"