]> git.pld-linux.org Git - packages/mawk.git/blob - mawk.spec
9f845e46110b22825cd6902494ff16a372621f9a
[packages/mawk.git] / mawk.spec
1 Summary:        An interpreter for the awk programming language.
2 Name:           mawk
3 Version:        1.2.2
4 Release:        12
5 Copyright:      GPL
6 Group:          Applications/Text
7 Source:         ftp://ftp.oxy.edu/public/%{name}%{version}.tar.gz
8 Patch:          mawk-prefix.patch
9 BuildRoot:      /tmp/%{name}-%{version}-root
10
11 %description
12 Mawk is a version of the awk programming language.  Awk interprets a 
13 special-purpose programming language to do quick text pattern matching
14 and reformatting.  Mawk improves on awk in certain ways and can 
15 sometimes outperform gawk, the standard awk program for Linux.  Mawk
16 conforms to the POSIX 1003.2 (draft 11.3) definition of awk.
17
18 You should install mawk if you use awk.
19
20 %prep
21 %setup -q
22 %patch -p1
23
24 %build
25 CFLAGS="$RPM_OPT_FLAGS" \
26 ./configure \
27         --prefix=%{_prefix}
28 make
29
30 %install
31 rm -rf $RPM_BUILD_ROOT
32 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
33
34 make install \
35         prefix=$RPM_BUILD_ROOT%{_prefix} \
36         MANDIR=$RPM_BUILD_ROOT%{_mandir}/man1
37
38 strip $RPM_BUILD_ROOT%{_bindir}/*
39
40 gzip -9nf ACKNOWLEDGMENT CHANGES README
41
42 %clean
43 rm -rf $RPM_BUILD_ROOT
44
45 %files
46 %defattr(644,root,root,755)
47 %doc *.gz
48 %attr(755,root,root) %{_bindir}/mawk
49 %{_mandir}/man1/mawk.1*
This page took 0.043303 seconds and 2 git commands to generate.