awk/awk.spec

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

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 28 Aug 2012 18:53:00 +0200
changeset 610
b1f22a1e2d4c
child 611
90f4e2a1b949
permissions
-rw-r--r--

Import package vendor original specs for necessary manipulations.

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@610 35 Release: 20080101
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@610 42 Prefix: %{l_prefix}
michael@610 43 BuildRoot: %{l_buildroot}
michael@610 44 BuildPreReq: OpenPKG, openpkg >= 20040130, make, bison
michael@610 45 PreReq: OpenPKG, openpkg >= 20040130
michael@610 46 AutoReq: no
michael@610 47 AutoReqProv: no
michael@610 48 Conflicts: gawk
michael@610 49
michael@610 50 %description
michael@610 51 Awk is the one true implementation of the AWK programming language
michael@610 52 from Brian W. Kernighan.
michael@610 53
michael@610 54 %track
michael@610 55 prog awk = {
michael@610 56 version = %{version}
michael@610 57 url = ftp://ftp.openpkg.org/sources/CPY/VERSIONED/awk/
michael@610 58 regex = awk-(__VER__)\.tar\.gz
michael@610 59 }
michael@610 60
michael@610 61 %prep
michael@610 62 %setup -q -c
michael@610 63 %patch -p0
michael@610 64
michael@610 65 %build
michael@610 66 %{l_make} %{l_mflags} \
michael@610 67 YACC="bison -y" CC="%{l_cc}" CFLAGS="%{l_cflags -O}"
michael@610 68
michael@610 69 %install
michael@610 70 rm -rf $RPM_BUILD_ROOT
michael@610 71 %{l_shtool} mkdir -f -p -m 755 \
michael@610 72 $RPM_BUILD_ROOT%{l_prefix}/bin \
michael@610 73 $RPM_BUILD_ROOT%{l_prefix}/man/man1
michael@610 74 %{l_shtool} install -c -s -m 755 \
michael@610 75 a.out $RPM_BUILD_ROOT%{l_prefix}/bin/awk
michael@610 76 %{l_shtool} install -c -m 644 \
michael@610 77 awk.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/
michael@610 78 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
michael@610 79
michael@610 80 %files -f files
michael@610 81
michael@610 82 %clean
michael@610 83 rm -rf $RPM_BUILD_ROOT
michael@610 84

mercurial