source: spec/trunk/SPECS/gawk.spec@ 1010

Last change on this file since 1010 was 320, checked in by Yuri Dario, 13 years ago

spec: gawk Fix CRLF translation to CRCRLF (removed -Zbin-files).

File size: 2.0 KB
Line 
1Summary: The GNU version of the awk text processing utility
2Name: gawk
3Version: 4.0.0
4Release: 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
9License: GPLv3+ and GPL and LGPLv3+ and LGPL and BSD
10Group: Applications/Text
11URL: http://www.gnu.org/software/gawk/gawk.html
12Source0: http://ftp.gnu.org/gnu/gawk/gawk-%{version}.tar.xz
13
14Patch0: gawk-os2.patch
15
16#BuildRequires: byacc
17
18%description
19The gawk package contains the GNU version of awk, a text processing
20utility. Awk interprets a special-purpose programming language to do
21quick and easy text pattern matching and reformatting jobs.
22
23Install the gawk package if you need a text processing utility. Gawk is
24considered to be a standard Linux tool for processing text.
25
26%prep
27%setup -q
28%patch0 -p1 -b .os2~
29
30%build
31export CONFIG_SHELL="/@unixroot/usr/bin/sh.exe"
32export LDFLAGS="-Zhigh-mem -Zomf"
33export LIBS="-lurpo -lmmap"
34%configure \
35 "--cache-file=%{_topdir}/cache/%{name}-%{_target_cpu}.cache"
36
37make %{?_smp_mflags}
38
39#%check
40#make check diffout
41
42%install
43rm -rf $RPM_BUILD_ROOT
44make install DESTDIR=${RPM_BUILD_ROOT}
45
46#mkdir -p $RPM_BUILD_ROOT%{_bindir}
47
48ln -sf gawk.1.gz $RPM_BUILD_ROOT%{_mandir}/man1/awk.1.gz
49ln -sf gawk.exe $RPM_BUILD_ROOT%{_bindir}/awk
50ln -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...
54rm -f $RPM_BUILD_ROOT/bin/{,p}gawk-%{version}* $RPM_BUILD_ROOT%{_infodir}/dir
55
56#%find_lang %name
57
58%clean
59rm -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.
Note: See TracBrowser for help on using the repository browser.