| 1 | Summary: The GNU version of the awk text processing utility
|
|---|
| 2 | Name: gawk
|
|---|
| 3 | Version: 4.0.0
|
|---|
| 4 | Release: 2%{?dist}
|
|---|
| 5 |
|
|---|
| 6 | # Most of source files are licensed under GPLv3+,
|
|---|
| 7 | # several files are GPL or LGPLv2.1+ licensed,
|
|---|
| 8 | # gettext.h is LGPL and random.c is BSD licensed
|
|---|
| 9 | License: GPLv3+ and GPL and LGPLv3+ and LGPL and BSD
|
|---|
| 10 | Group: Applications/Text
|
|---|
| 11 | URL: http://www.gnu.org/software/gawk/gawk.html
|
|---|
| 12 | Source0: http://ftp.gnu.org/gnu/gawk/gawk-%{version}.tar.xz
|
|---|
| 13 |
|
|---|
| 14 | Patch0: gawk-os2.patch
|
|---|
| 15 |
|
|---|
| 16 | #BuildRequires: byacc
|
|---|
| 17 |
|
|---|
| 18 | %description
|
|---|
| 19 | The gawk package contains the GNU version of awk, a text processing
|
|---|
| 20 | utility. Awk interprets a special-purpose programming language to do
|
|---|
| 21 | quick and easy text pattern matching and reformatting jobs.
|
|---|
| 22 |
|
|---|
| 23 | Install the gawk package if you need a text processing utility. Gawk is
|
|---|
| 24 | considered to be a standard Linux tool for processing text.
|
|---|
| 25 |
|
|---|
| 26 | %prep
|
|---|
| 27 | %setup -q
|
|---|
| 28 | %patch0 -p1 -b .os2~
|
|---|
| 29 |
|
|---|
| 30 | %build
|
|---|
| 31 | export CONFIG_SHELL="/@unixroot/usr/bin/sh.exe"
|
|---|
| 32 | export LDFLAGS="-Zhigh-mem -Zomf"
|
|---|
| 33 | export LIBS="-lurpo -lmmap"
|
|---|
| 34 | %configure \
|
|---|
| 35 | "--cache-file=%{_topdir}/cache/%{name}-%{_target_cpu}.cache"
|
|---|
| 36 |
|
|---|
| 37 | make %{?_smp_mflags}
|
|---|
| 38 |
|
|---|
| 39 | #%check
|
|---|
| 40 | #make check diffout
|
|---|
| 41 |
|
|---|
| 42 | %install
|
|---|
| 43 | rm -rf $RPM_BUILD_ROOT
|
|---|
| 44 | make install DESTDIR=${RPM_BUILD_ROOT}
|
|---|
| 45 |
|
|---|
| 46 | #mkdir -p $RPM_BUILD_ROOT%{_bindir}
|
|---|
| 47 |
|
|---|
| 48 | ln -sf gawk.1.gz $RPM_BUILD_ROOT%{_mandir}/man1/awk.1.gz
|
|---|
| 49 | ln -sf gawk.exe $RPM_BUILD_ROOT%{_bindir}/awk
|
|---|
| 50 | ln -sf gawk.exe $RPM_BUILD_ROOT%{_bindir}/gawk
|
|---|
| 51 | #mv $RPM_BUILD_ROOT/bin/{p,i}gawk $RPM_BUILD_ROOT%{_bindir}
|
|---|
| 52 |
|
|---|
| 53 | # remove %{version}* , when we are building a snapshot...
|
|---|
| 54 | rm -f $RPM_BUILD_ROOT/bin/{,p}gawk-%{version}* $RPM_BUILD_ROOT%{_infodir}/dir
|
|---|
| 55 |
|
|---|
| 56 | #%find_lang %name
|
|---|
| 57 |
|
|---|
| 58 | %clean
|
|---|
| 59 | rm -rf $RPM_BUILD_ROOT
|
|---|
| 60 |
|
|---|
| 61 | %files
|
|---|
| 62 | %defattr(-,root,root,-)
|
|---|
| 63 | %doc README COPYING FUTURES LIMITATIONS NEWS
|
|---|
| 64 | %doc README_d/README.multibyte README_d/README.tests POSIX.STD
|
|---|
| 65 | %{_bindir}/*
|
|---|
| 66 | %{_mandir}/man1/*
|
|---|
| 67 | %{_infodir}/gawk.info*
|
|---|
| 68 | %{_infodir}/gawkinet.info*
|
|---|
| 69 | %{_libexecdir}/awk
|
|---|
| 70 | %{_datadir}/awk
|
|---|
| 71 | %{_datadir}/locale
|
|---|
| 72 |
|
|---|
| 73 | %changelog
|
|---|
| 74 | * Mon Nov 19 2012 yd
|
|---|
| 75 | - Fix CRLF translation to CRCRLF (removed -Zbin-files).
|
|---|
| 76 |
|
|---|
| 77 | * Wed Mar 21 2012 yd
|
|---|
| 78 | - initial unixroot build.
|
|---|