# HG changeset patch # User Michael Schloh von Bennewitz # Date 1346172785 -7200 # Node ID 90f4e2a1b9499739cfd316b99e09974bbd55b73d # Parent b1f22a1e2d4c074cab742a51d40665721a9a9f9e Rid build conf of potentially conflicting getline(3), use parallel make, and modernize packaging in preparation of forthcoming stack release. diff -r b1f22a1e2d4c -r 90f4e2a1b949 awk/awk.spec --- a/awk/awk.spec Tue Aug 28 18:53:00 2012 +0200 +++ b/awk/awk.spec Tue Aug 28 18:53:05 2012 +0200 @@ -32,20 +32,16 @@ Group: Language License: BSD Version: 20071023 -Release: 20080101 +Release: 20120800 # list of sources Source0: ftp://ftp.openpkg.org/sources/CPY/VERSIONED/awk/awk-%{version}.tar.gz Patch0: awk.patch # build information -Prefix: %{l_prefix} -BuildRoot: %{l_buildroot} -BuildPreReq: OpenPKG, openpkg >= 20040130, make, bison -PreReq: OpenPKG, openpkg >= 20040130 +BuildPreReq: OpenPKG, openpkg >= 20100101, make, bison +PreReq: OpenPKG, openpkg >= 20100101 AutoReq: no -AutoReqProv: no -Conflicts: gawk %description Awk is the one true implementation of the AWK programming language @@ -61,13 +57,19 @@ %prep %setup -q -c %patch -p0 + %{l_shtool} subst \ + -e 's;Cell[\ \t][\ \t]*\*getline;Cell \*awk_getline;' \ + proto.h \ + run.c + %{l_shtool} subst \ + -e 's;getline;awk_getline;g' \ + maketab.c %build - %{l_make} %{l_mflags} \ + %{l_make} %{l_mflags -O} \ YACC="bison -y" CC="%{l_cc}" CFLAGS="%{l_cflags -O}" %install - rm -rf $RPM_BUILD_ROOT %{l_shtool} mkdir -f -p -m 755 \ $RPM_BUILD_ROOT%{l_prefix}/bin \ $RPM_BUILD_ROOT%{l_prefix}/man/man1 @@ -80,5 +82,4 @@ %files -f files %clean - rm -rf $RPM_BUILD_ROOT