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

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

spec: grep, fixed bindir value.

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