cvsdist bf4371c
%define beta %nil
cvsdist bf4371c
%define rel 1
cvsdist 5060d26
Summary: The GNU versions of grep pattern matching utilities.
cvsdist 5060d26
Name: grep
cvsdist 3bf11cc
Version: 2.5.1
cvsdist 51d1317
%if "%{beta}" != ""
cvsdist 51d1317
Release: 0.%{beta}.%{rel}
cvsdist 51d1317
%else
cvsdist 51d1317
Release: %{rel}
cvsdist 51d1317
%endif
cvsdist e3459fe
License: GPL
cvsdist 5060d26
Group: Applications/Text
cvsdist 51d1317
Source: ftp://ftp.gnu.org/pub/gnu/grep/grep-%{version}%{beta}.tar.bz2
cvsdist 5060d26
Prefix: %{_prefix}
cvsdist 5060d26
Prereq: /sbin/install-info
cvsdist 3d44c28
Buildroot: %{_tmppath}/%{name}-%{version}-root
cvsdist 51d1317
Requires: pcre
cvsdist bf4371c
Buildrequires: pcre-devel
cvsdist 5060d26
cvsdist 5060d26
%description
cvsdist 5060d26
The GNU versions of commonly used grep utilities.  Grep searches
cvsdist 5060d26
through textual input for lines which contain a match to a specified
cvsdist 5060d26
pattern and then prints the matching lines.  GNU's grep utilities
cvsdist 5060d26
include grep, egrep and fgrep.
cvsdist 5060d26
cvsdist 5060d26
You should install grep on your system, because it is a very useful
cvsdist 5060d26
utility for searching through text.
cvsdist 5060d26
cvsdist 5060d26
%prep
cvsdist 51d1317
%setup -q -n %{name}-%{version}%{beta}
cvsdist 5060d26
cvsdist 5060d26
%build
cvsdist 51d1317
[ ! -e configure ] && ./autogen.sh
cvsdist 51d1317
%configure --prefix=/usr --without-included-regex
cvsdist 5060d26
make
cvsdist 5060d26
cvsdist 5060d26
%install
cvsdist 5060d26
rm -rf ${RPM_BUILD_ROOT}
cvsdist 5060d26
%makeinstall LDFLAGS=-s prefix=${RPM_BUILD_ROOT}%{_prefix} exec_prefix=${RPM_BUILD_ROOT}
cvsdist 5060d26
%ifos Linux
cvsdist 5060d26
mkdir -p $RPM_BUILD_ROOT/bin
cvsdist 5060d26
mv $RPM_BUILD_ROOT%{_prefix}/bin/* $RPM_BUILD_ROOT/bin
cvsdist 5060d26
rm -rf $RPM_BUILD_ROOT%{_prefix}/bin
cvsdist 5060d26
%endif
cvsdist 5060d26
gzip -9f $RPM_BUILD_ROOT%{_infodir}/grep*
cvsdist 5060d26
cvsdist 3d44c28
%find_lang %name
cvsdist 3d44c28
cvsdist 5060d26
%clean
cvsdist 5060d26
rm -rf ${RPM_BUILD_ROOT}
cvsdist 5060d26
cvsdist 5060d26
%post
cvsdist bf4371c
[ -e %{_infodir}/grep.info.gz ] && /sbin/install-info --quiet --info-dir=%{_infodir} %{_infodir}/grep.info.gz || :
cvsdist 5060d26
cvsdist 5060d26
%preun
cvsdist 5060d26
if [ $1 = 0 ]; then
cvsdist bf4371c
	[ -e %{_infodir}/grep.info.gz ] && /sbin/install-info --quiet --info-dir=%{_infodir} --delete %{_infodir}/grep.info.gz
cvsdist 5060d26
fi
cvsdist 5060d26
cvsdist 3d44c28
%files -f %{name}.lang
cvsdist 5060d26
%defattr(-,root,root)
cvsdist 5060d26
%doc ABOUT-NLS AUTHORS THANKS TODO NEWS README ChangeLog
cvsdist 5060d26
cvsdist 5060d26
%ifos Linux
cvsdist 5060d26
/bin/*
cvsdist 5060d26
%else
cvsdist 5060d26
%{_prefix}/bin/*
cvsdist 5060d26
%endif
cvsdist 5060d26
%{_infodir}/*.info.gz
cvsdist 5060d26
%{_mandir}/*/*
cvsdist 5060d26
cvsdist 5060d26
%changelog
cvsdist 3bf11cc
* Tue Mar 26 2002 Bernhard Rosenkraenzer <bero@redhat.com> 2.5.1-1
cvsdist 3bf11cc
- 2.5.1
cvsdist 3bf11cc
cvsdist bf4371c
* Wed Mar 13 2002 Bernhard Rosenkraenzer <bero@redhat.com> 2.5-1
cvsdist bf4371c
- 2.5 final
cvsdist bf4371c
cvsdist bf4371c
* Wed Jan 23 2002 Bernhard Rosenkraenzer <bero@redhat.com> 2.5-0.g.1
cvsdist bf4371c
- 2.5g
cvsdist bf4371c
cvsdist bf4371c
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
cvsdist bf4371c
- automated rebuild
cvsdist bf4371c
cvsdist bf4371c
* Mon Nov 19 2001 Bernhard Rosenkraenzer <bero@redhat.com> 2.5-0.f.4
cvsdist bf4371c
- Update CVS to reduce bloat
cvsdist bf4371c
cvsdist bf4371c
* Thu Nov  8 2001 Bernhard Rosenkraenzer <bero@redhat.com> 2.5-0.f.3
cvsdist bf4371c
- Don't fail %%post with --excludedocs
cvsdist bf4371c
cvsdist 51d1317
* Wed Sep 26 2001 Bernhard Rosenkraenzer <bero@redhat.com> 2.5-0.f.2
cvsdist 51d1317
- Fix up echo A |grep '[A-Z0-9]' in locales other than C
cvsdist 51d1317
cvsdist 51d1317
* Tue Sep 25 2001 Bernhard Rosenkraenzer <bero@redhat.com> 2.5-0.f.1
cvsdist 51d1317
- 2.5f, fixes #53603
cvsdist 51d1317
cvsdist 51d1317
* Wed Jul 18 2001 Bernhard Rosenkraenzer <bero@redhat.com> 2.4.2-7
cvsdist e3459fe
- Fix up the i18n patch - it used to break "grep '[]a]'" (#49003)
cvsdist 51d1317
- revert to 2.4.2 (latest official release) for now
cvsdist 51d1317
cvsdist 51d1317
* Mon May 28 2001 Bernhard Rosenkraenzer <bero@redhat.com> 2.5e-4
cvsdist 51d1317
- Fix "echo Linux forever |grep -D skip Linux"
cvsdist 51d1317
cvsdist 51d1317
* Mon May 21 2001 Bernhard Rosenkraenzer <bero@redhat.com> 2.5e-3
cvsdist 51d1317
- Add new -D, --devices option
cvsdist 51d1317
- Fix a bug with "directories" being uninitialized
cvsdist 51d1317
cvsdist 51d1317
* Sun May 13 2001 Bernhard Rosenkraenzer <bero@redhat.com> 2.5e-2
cvsdist 51d1317
- Fix up the --color option to behave like the one from ls (--color=auto)
cvsdist 51d1317
  Sooner or later, some people will alias grep="grep --color" and wonder why
cvsdist 51d1317
  their scripts break.
cvsdist 51d1317
- Update docs accordingly
cvsdist 51d1317
- Get rid of the annoying blinking in grep --color
cvsdist e3459fe
cvsdist 51d1317
* Sun May 13 2001 Bernhard Rosenkraenzer <bero@redhat.com> 2.5e-1
cvsdist 51d1317
- 2.5e
cvsdist 27caf70
cvsdist 3d44c28
* Tue Feb 27 2001 Trond Eivind Glomsrød <teg@redhat.com>
cvsdist 3d44c28
- use %%{_tmppath}
cvsdist 3d44c28
- langify
cvsdist 3d44c28
cvsdist 5060d26
* Sun Aug 20 2000 Jakub Jelinek <jakub@redhat.com>
cvsdist 5060d26
- i18n character ranges patch from Ulrich Drepper
cvsdist 5060d26
cvsdist 5060d26
* Thu Jul 13 2000 Prospector <bugzilla@redhat.com>
cvsdist 5060d26
- automatic rebuild
cvsdist 5060d26
cvsdist 5060d26
* Mon Jun 19 2000 Bernhard Rosenkraenzer <bero@redhat.com>
cvsdist 5060d26
- FHSify
cvsdist 5060d26
cvsdist 5060d26
* Tue Mar 21 2000 Florian La Roche <Florian.LaRoche@redhat.com>
cvsdist 5060d26
- update to 2.4.2
cvsdist 5060d26
- fix download URL
cvsdist 5060d26
cvsdist 5060d26
* Thu Feb 03 2000 Bernhard Rosenkraenzer <bero@redhat.com>
cvsdist 5060d26
- gzip info pages (Bug #9035)
cvsdist 5060d26
cvsdist 5060d26
* Wed Feb 02 2000 Cristian Gafton <gafton@redhat.com>
cvsdist 5060d26
- fix description
cvsdist 5060d26
cvsdist 5060d26
* Wed Dec 22 1999 Jeff Johnson <jbj@redhat.com>
cvsdist 5060d26
- update to 2.4.
cvsdist 5060d26
cvsdist 5060d26
* Wed Oct 20 1999 Bill Nottingham <notting@redhat.com>
cvsdist 5060d26
- prereq install-info
cvsdist 5060d26
cvsdist 5060d26
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> 
cvsdist 5060d26
- auto rebuild in the new build environment (release 2)
cvsdist 5060d26
cvsdist 5060d26
* Mon Mar 08 1999 Preston Brown <pbrown@redhat.com>
cvsdist 5060d26
- upgraded to grep 2.3, added install-info %post/%preun for info
cvsdist 5060d26
cvsdist 5060d26
* Wed Feb 24 1999 Preston Brown <pbrown@redhat.com>
cvsdist 5060d26
- Injected new description and group.
cvsdist 5060d26
cvsdist 5060d26
* Sat May 09 1998 Prospector System <bugs@redhat.com>
cvsdist 5060d26
- translations modified for de, fr, tr
cvsdist 5060d26
cvsdist 5060d26
* Fri May 01 1998 Cristian Gafton <gafton@redhat.com>
cvsdist 5060d26
- updated to 2.2
cvsdist 5060d26
cvsdist 5060d26
* Thu Oct 16 1997 Donnie Barnes <djb@redhat.com>
cvsdist 5060d26
- updated from 2.0 to 2.1
cvsdist 5060d26
- spec file cleanups
cvsdist 5060d26
- added BuildRoot
cvsdist 5060d26
cvsdist 5060d26
* Mon Jun 02 1997 Erik Troan <ewt@redhat.com>
cvsdist 5060d26
- built against glibc