Mon, 28 Jan 2013 17:37:18 +0100
Correct socket error reporting improvement with IPv6 portable code,
after helpful recommendation by Saúl Ibarra Corretgé on OSips devlist.
1 ##
2 ## awk.spec -- OpenPKG RPM Package Specification
3 ## Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/>
4 ##
5 ## Permission to use, copy, modify, and distribute this software for
6 ## any purpose with or without fee is hereby granted, provided that
7 ## the above copyright notice and this permission notice appear in all
8 ## copies.
9 ##
10 ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
11 ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
12 ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
13 ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
14 ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
15 ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
16 ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
17 ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
18 ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
19 ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
21 ## SUCH DAMAGE.
22 ##
24 # package information
25 Name: awk
26 Summary: The One True Awk
27 URL: http://cm.bell-labs.com/who/bwk/
28 Vendor: Brian W. Kernighan
29 Packager: OpenPKG Foundation e.V.
30 Distribution: OpenPKG Community
31 Class: BASE
32 Group: Language
33 License: BSD
34 Version: 20071023
35 Release: 20120800
37 # list of sources
38 Source0: ftp://ftp.openpkg.org/sources/CPY/VERSIONED/awk/awk-%{version}.tar.gz
39 Patch0: awk.patch
41 # build information
42 BuildPreReq: OpenPKG, openpkg >= 20100101, make, bison
43 PreReq: OpenPKG, openpkg >= 20100101
44 AutoReq: no
46 %description
47 Awk is the one true implementation of the AWK programming language
48 from Brian W. Kernighan.
50 %track
51 prog awk = {
52 version = %{version}
53 url = ftp://ftp.openpkg.org/sources/CPY/VERSIONED/awk/
54 regex = awk-(__VER__)\.tar\.gz
55 }
57 %prep
58 %setup -q -c
59 %patch -p0
60 %{l_shtool} subst \
61 -e 's;\(Cell.*\)\*getline;\1*awk_getline;' \
62 proto.h \
63 run.c
64 %{l_shtool} subst \
65 -e 's;getline;awk_getline;g' \
66 maketab.c \
67 lex.c
69 %build
70 %{l_make} %{l_mflags -O} \
71 YACC="bison -y" CC="%{l_cc}" CFLAGS="%{l_cflags -O}"
73 %install
74 %{l_shtool} mkdir -f -p -m 755 \
75 $RPM_BUILD_ROOT%{l_prefix}/bin \
76 $RPM_BUILD_ROOT%{l_prefix}/man/man1
77 %{l_shtool} install -c -s -m 755 \
78 a.out $RPM_BUILD_ROOT%{l_prefix}/bin/awk
79 %{l_shtool} install -c -m 644 \
80 awk.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/
81 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
83 %files -f files
85 %clean