source: spec/trunk/SPECS/grep.spec@ 268

Last change on this file since 268 was 268, checked in by Yuri Dario, 14 years ago

spec: grep, Pattern matching utilities, initial build.

File size: 1.6 KB
Line 
1#%define _bindir /bin
2
3Summary: Pattern matching utilities
4Name: grep
5Version: 2.10
6Release: 1%{?dist}
7License: GPLv3+
8Group: Applications/Text
9Source: ftp://ftp.gnu.org/pub/gnu/grep/grep-%{version}.tar.xz
10Patch0: grep-os2.patch
11
12URL: http://www.gnu.org/software/grep/
13
14BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
15BuildRequires: pcre-devel >= 3.9-10, gettext
16#BuildRequires: texinfo
17#BuildRequires: autoconf automake
18
19%description
20The GNU versions of commonly used grep utilities. Grep searches through
21textual input for lines which contain a match to a specified pattern and then
22prints the matching lines. GNU's grep utilities include grep, egrep and fgrep.
23
24GNU grep is needed by many scripts, so it shall be installed on every system.
25
26%prep
27%setup -q
28%patch0 -p1
29
30%build
31export CONFIG_SHELL="/@unixroot/usr/bin/sh.exe"
32export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
33export LIBS="-lurpo -lmmap"
34export CPPFLAGS="-I%{_includedir}/pcre"
35%configure \
36 --without-included-regex \
37 "--cache-file=%{_topdir}/cache/%{name}-%{_target_cpu}.cache"
38make %{?_smp_mflags}
39
40%install
41rm -rf ${RPM_BUILD_ROOT}
42make %{?_smp_mflags} DESTDIR=$RPM_BUILD_ROOT install
43gzip $RPM_BUILD_ROOT%{_infodir}/grep*
44rm -f $RPM_BUILD_ROOT%{_infodir}/dir
45rm -f $RPM_BUILD_ROOT/%{_libdir}/charset.alias
46
47#%find_lang %name
48
49#%check
50#make check
51
52%clean
53rm -rf ${RPM_BUILD_ROOT}
54
55%files
56# -f %{name}.lang
57%defattr(-,root,root)
58%doc ABOUT-NLS AUTHORS THANKS TODO NEWS README ChangeLog COPYING
59%{_bindir}/*
60%{_infodir}/*.info*.gz
61%{_mandir}/*/*
62%{_datadir}/locale/*
63
64%changelog
65* Sun Jan 08 2012 yd
66- initial unixroot build.
Note: See TracBrowser for help on using the repository browser.