Rid build conf of potentially conflicting getline(3), use parallel make, and

Tue, 28 Aug 2012 18:53:05 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 28 Aug 2012 18:53:05 +0200
changeset 611
90f4e2a1b949
parent 610
b1f22a1e2d4c
child 612
b63dd3965ecb

Rid build conf of potentially conflicting getline(3), use parallel make, and
modernize packaging in preparation of forthcoming stack release.

awk/awk.spec file | annotate | diff | comparison | revisions
     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  

mercurial