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