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