1.1 --- a/awk/awk.spec Tue Aug 28 18:53:00 2012 +0200 1.2 +++ b/awk/awk.spec Tue Aug 28 18:53:05 2012 +0200 1.3 @@ -32,20 +32,16 @@ 1.4 Group: Language 1.5 License: BSD 1.6 Version: 20071023 1.7 -Release: 20080101 1.8 +Release: 20120800 1.9 1.10 # list of sources 1.11 Source0: ftp://ftp.openpkg.org/sources/CPY/VERSIONED/awk/awk-%{version}.tar.gz 1.12 Patch0: awk.patch 1.13 1.14 # build information 1.15 -Prefix: %{l_prefix} 1.16 -BuildRoot: %{l_buildroot} 1.17 -BuildPreReq: OpenPKG, openpkg >= 20040130, make, bison 1.18 -PreReq: OpenPKG, openpkg >= 20040130 1.19 +BuildPreReq: OpenPKG, openpkg >= 20100101, make, bison 1.20 +PreReq: OpenPKG, openpkg >= 20100101 1.21 AutoReq: no 1.22 -AutoReqProv: no 1.23 -Conflicts: gawk 1.24 1.25 %description 1.26 Awk is the one true implementation of the AWK programming language 1.27 @@ -61,13 +57,19 @@ 1.28 %prep 1.29 %setup -q -c 1.30 %patch -p0 1.31 + %{l_shtool} subst \ 1.32 + -e 's;Cell[\ \t][\ \t]*\*getline;Cell \*awk_getline;' \ 1.33 + proto.h \ 1.34 + run.c 1.35 + %{l_shtool} subst \ 1.36 + -e 's;getline;awk_getline;g' \ 1.37 + maketab.c 1.38 1.39 %build 1.40 - %{l_make} %{l_mflags} \ 1.41 + %{l_make} %{l_mflags -O} \ 1.42 YACC="bison -y" CC="%{l_cc}" CFLAGS="%{l_cflags -O}" 1.43 1.44 %install 1.45 - rm -rf $RPM_BUILD_ROOT 1.46 %{l_shtool} mkdir -f -p -m 755 \ 1.47 $RPM_BUILD_ROOT%{l_prefix}/bin \ 1.48 $RPM_BUILD_ROOT%{l_prefix}/man/man1 1.49 @@ -80,5 +82,4 @@ 1.50 %files -f files 1.51 1.52 %clean 1.53 - rm -rf $RPM_BUILD_ROOT 1.54