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