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 | |
---|
1 | Summary: Pattern matching utilities
|
---|
2 | Name: grep
|
---|
3 | Version: 2.10
|
---|
4 | Release: 2%{?dist}
|
---|
5 | License: GPLv3+
|
---|
6 | Group: Applications/Text
|
---|
7 | Source: ftp://ftp.gnu.org/pub/gnu/grep/grep-%{version}.tar.xz
|
---|
8 | Patch0: grep-os2.patch
|
---|
9 |
|
---|
10 | URL: http://www.gnu.org/software/grep/
|
---|
11 |
|
---|
12 | BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
---|
13 | BuildRequires: pcre-devel >= 3.9-10, gettext
|
---|
14 | #BuildRequires: texinfo
|
---|
15 | #BuildRequires: autoconf automake
|
---|
16 |
|
---|
17 | %description
|
---|
18 | The GNU versions of commonly used grep utilities. Grep searches through
|
---|
19 | textual input for lines which contain a match to a specified pattern and then
|
---|
20 | prints the matching lines. GNU's grep utilities include grep, egrep and fgrep.
|
---|
21 |
|
---|
22 | GNU 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
|
---|
29 | export CONFIG_SHELL="/@unixroot/usr/bin/sh.exe"
|
---|
30 | export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
|
---|
31 | export LIBS="-lurpo -lmmap"
|
---|
32 | export CPPFLAGS="-I%{_includedir}/pcre"
|
---|
33 | %configure \
|
---|
34 | --without-included-regex \
|
---|
35 | "--cache-file=%{_topdir}/cache/%{name}-%{_target_cpu}.cache"
|
---|
36 | make %{?_smp_mflags}
|
---|
37 |
|
---|
38 | %install
|
---|
39 | rm -rf ${RPM_BUILD_ROOT}
|
---|
40 | make %{?_smp_mflags} DESTDIR=$RPM_BUILD_ROOT install
|
---|
41 | gzip $RPM_BUILD_ROOT%{_infodir}/grep*
|
---|
42 | rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
---|
43 | rm -f $RPM_BUILD_ROOT/%{_libdir}/charset.alias
|
---|
44 |
|
---|
45 | #%find_lang %name
|
---|
46 |
|
---|
47 | #%check
|
---|
48 | #make check
|
---|
49 |
|
---|
50 | %clean
|
---|
51 | rm -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.