awk/awk.spec

Mon, 28 Jan 2013 17:37:18 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Mon, 28 Jan 2013 17:37:18 +0100
changeset 758
a2c6460cfb16
parent 611
90f4e2a1b949
permissions
-rw-r--r--

Correct socket error reporting improvement with IPv6 portable code,
after helpful recommendation by Saúl Ibarra Corretgé on OSips devlist.

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

mercurial