bkabrda / rpms / grep

Forked from rpms/grep 6 years ago
Clone
cvsdist 5060d26
Summary: The GNU versions of grep pattern matching utilities.
cvsdist 5060d26
Name: grep
cvsdist 3bf11cc
Version: 2.5.1
c3fd6f2
Release: 42
cvsdist e3459fe
License: GPL
cvsdist 5060d26
Group: Applications/Text
cvsdist 51c5096
Source: ftp://ftp.gnu.org/pub/gnu/grep/grep-%{version}.tar.bz2
cvsdist ac51d85
Patch0: grep-2.5.1-fgrep.patch
cvsdist 51c5096
Patch1: grep-2.5.1-bracket.patch
cvsdist 51c5096
Patch2: grep-2.5-i18n.patch
cvsdist 51c5096
Patch3: grep-2.5.1-oi.patch
cvsdist 51c5096
Patch4: grep-2.5.1-manpage.patch
2c381ea
Patch5: grep-2.5.1-color.patch
2c381ea
Patch10: grep-2.5.1-egf-speedup.patch
2c381ea
Patch11: grep-2.5.1-dfa-optional.patch
0df661b
URL: http://www.gnu.org/software/grep/
cvsdist 5060d26
Prereq: /sbin/install-info
cvsdist 3d44c28
Buildroot: %{_tmppath}/%{name}-%{version}-root
cvsdist 51d1317
Requires: pcre
0df661b
Buildrequires: pcre-devel, texinfo, gettext, gzip
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
0df661b
%setup -q
cvsdist ac51d85
%patch0 -p1 -b .fgrep
cvsdist 51c5096
%patch1 -p1 -b .bracket
cvsdist 51c5096
%patch2 -p1 -b .i18n
cvsdist 51c5096
%patch3 -p1 -b .oi
cvsdist 51c5096
%patch4 -p1 -b .manpage
2c381ea
%patch5 -p1 -b .color
2c381ea
%patch10 -p1 -b .egf-speedup
2c381ea
%patch11 -p1 -b .dfa-optional
cvsdist 5060d26
cvsdist 5060d26
%build
cvsdist 51d1317
[ ! -e configure ] && ./autogen.sh
0df661b
%configure --without-included-regex
0df661b
make CFLAGS="$RPM_OPT_FLAGS -I%{_includedir}/pcre"
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
0df661b
mv -f $RPM_BUILD_ROOT%{_bindir}/* $RPM_BUILD_ROOT/bin
0df661b
rm -rf $RPM_BUILD_ROOT%{_bindir}
cvsdist 5060d26
%endif
cvsdist 5060d26
gzip -9f $RPM_BUILD_ROOT%{_infodir}/grep*
cvsdist 732ac98
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
cvsdist 5060d26
cvsdist 2393906
# Use symlinks for egrep and fgrep
cvsdist 2393906
ln -sf grep $RPM_BUILD_ROOT/bin/egrep
cvsdist 2393906
ln -sf grep $RPM_BUILD_ROOT/bin/fgrep
cvsdist 2393906
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
0df661b
%{_bindir}/*
cvsdist 5060d26
%endif
cvsdist 732ac98
%{_infodir}/*.info*.gz
cvsdist 5060d26
%{_mandir}/*/*
cvsdist 5060d26
cvsdist 5060d26
%changelog
c3fd6f2
* Tue Dec 14 2004 Tim Waugh <twaugh@redhat.com> 2.5.1-42
c3fd6f2
- Further UTF-8 processing avoided since a '\n' byte is always an
c3fd6f2
  end-of-line character in that encoding.
c3fd6f2
5b2463a
* Fri Dec  3 2004 Tim Waugh <twaugh@redhat.com> 2.5.1-41
5b2463a
- Fixed a busy loop in the egf-speedup patch (bug #140781).
5b2463a
41ed493
* Thu Nov 18 2004 Tim Waugh <twaugh@redhat.com> 2.5.1-40
41ed493
- Fixed a bug in the fgrep patch, exposed by the dfa-optional patch
41ed493
  (bug #138558).
41ed493
8c440df
* Tue Nov 16 2004 Tim Waugh <twaugh@redhat.com> 2.5.1-39
8c440df
- Fixed last patch.
8c440df
2c381ea
* Tue Nov 16 2004 Tim Waugh <twaugh@redhat.com> 2.5.1-38
2c381ea
- Applied patch from Karsten Hopp to fix background colour problems with
2c381ea
  --color output (bug #138913).
2c381ea
818af75
* Wed Nov 10 2004 Tim Waugh <twaugh@redhat.com> 2.5.1-37
acd16e9
- Prevent false matches when DFA is disabled (bug #138558).
acd16e9
553606a
* Mon Nov  8 2004 Tim Waugh <twaugh@redhat.com> 2.5.1-36
553606a
- Automatically disable DFA when processing multibyte input.  GREP_USE_DFA
553606a
  environment variable overrides.
553606a
d619d25
* Fri Nov  5 2004 Tim Waugh <twaugh@redhat.com> 2.5.1-35
d619d25
- Fixes to egf-speedup patch: now it does not change any functionality,
d619d25
  as intended.
d619d25
- GREP_NO_DFA now turns off the DFA engine, for performance testing.
d619d25
9fa0ec1
* Thu Nov  4 2004 Tim Waugh <twaugh@redhat.com> 2.5.1-34
9fa0ec1
- More improvements to egf-speedup patch (bug #138076).
9fa0ec1
6f2e162
* Thu Nov  4 2004 Tim Waugh <twaugh@redhat.com> 2.5.1-33
6f2e162
- Small improvements to egf-speedup patch.
6f2e162
e1ca941
* Wed Nov  3 2004 Tim Waugh <twaugh@redhat.com> 2.5.1-32
e1ca941
- Remove mb-caching hack.
6f2e162
- Better multibyte handling in EGexecute() and Fexecute().
e1ca941
- Don't need regex.c changes in grep-2.5-i18n.patch.
e1ca941
c1d7d02
* Wed Oct 13 2004 Tim Waugh <twaugh@redhat.com> 2.5.1-31
c1d7d02
- Make 'grep -F' avoid UTF-8 processing if the pattern contains no
c1d7d02
  multibyte characters (bug #133932).
c1d7d02
0df661b
* Mon Oct 11 2004 Tim Waugh <twaugh@redhat.com> 2.5.1-30
0df661b
- Applied patch from Robert Scheck to tidy spec file and add a URL
0df661b
  tag (bug #135185).
0df661b
cvsdist f3044f5
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
cvsdist f3044f5
- rebuilt
cvsdist f3044f5
cvsdist f3044f5
* Fri Jun  4 2004 Tim Waugh <twaugh@redhat.com>
cvsdist f3044f5
- More build requirements (bug #125323).
cvsdist f3044f5
cvsdist 51c5096
* Tue May 18 2004 Jeremy Katz <katzj@redhat.com> 2.5.1-28
cvsdist 51c5096
- rebuild
cvsdist 51c5096
cvsdist 51c5096
* Tue May 18 2004 Tim Waugh <twaugh@redhat.com> 2.5.1-27
cvsdist 51c5096
- Fix dfa multibyte character class matching when -i is used (bug #123363).
cvsdist 51c5096
- Use bracket patch before i18n patch to make it clear that the bug exists
cvsdist 51c5096
  upstream.
cvsdist 51c5096
cvsdist ac51d85
* Thu Feb 26 2004 Tim Waugh <twaugh@redhat.com> 2.5.1-26
cvsdist ac51d85
- Fix fgrep (bug #116909).
cvsdist ac51d85
cvsdist ac51d85
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
cvsdist ac51d85
- rebuilt
cvsdist ac51d85
cvsdist 2393906
* Mon Jan  5 2004 Tim Waugh <twaugh@redhat.com> 2.5.1-24
cvsdist 2393906
- Work around glibc bug #112869 (segfault in re_compile_pattern).
cvsdist 2393906
- Avoid patching Makefile.am, to avoid automake/autoconf weirdness.
cvsdist 2393906
cvsdist 2393906
* Wed Dec 10 2003 Tim Waugh <twaugh@redhat.com> 2.5.1-23
cvsdist f8033fc
- Another multibyte efficiency bug-fix (bug #111800).
cvsdist f8033fc
cvsdist 2393906
* Mon Dec  8 2003 Tim Waugh <twaugh@redhat.com> 2.5.1-22
cvsdist 2393906
- Fixed [:alpha:]-type character classes (bug #108484).
cvsdist 5cfaddb
- Fixed -o -i properly (bug #111489).
cvsdist 5cfaddb
cvsdist 2393906
* Sat Dec  6 2003 Tim Waugh <twaugh@redhat.com> 2.5.1-21
cvsdist 2393906
- Fixed 'fgrep -i' (bug #111614).
cvsdist 5cfaddb
cvsdist 2393906
* Fri Nov 21 2003 Tim Waugh <twaugh@redhat.com> 2.5.1-20
cvsdist fd96add
- Another two multibyte efficiency bug-fixes (bug #110524).
cvsdist fd96add
cvsdist 2393906
* Thu Nov  6 2003 Tim Waugh <twaugh@redhat.com> 2.5.1-19
cvsdist fd96add
- Fixed a multibyte efficiency bug.
cvsdist fd96add
cvsdist 2393906
* Thu Nov  6 2003 Tim Waugh <twaugh@redhat.com> 2.5.1-18
cvsdist 2393906
- Turn on multibyte efficiency patch again to shake out bugs.
cvsdist 2393906
cvsdist 2393906
* Wed Oct  8 2003 Tim Waugh <twaugh@redhat.com>
cvsdist 2393906
- Fixed man page bug (bug #106267).
cvsdist 2393906
cvsdist 438e8df
* Thu Sep 18 2003 Tim Waugh <twaugh@redhat.com> 2.5.1-17
cvsdist 438e8df
- Use symlinks for egrep/fgrep, rather than shell script wrappers.
cvsdist 45a556b
cvsdist 438e8df
* Fri Jun 27 2003 Tim Waugh <twaugh@redhat.com>
cvsdist 438e8df
- Fix debuginfo package.
cvsdist ac8957a
cvsdist 438e8df
* Fri Jun 27 2003 Tim Waugh <twaugh@redhat.com> 2.5.1-16.1
cvsdist 438e8df
- Rebuilt.
cvsdist ac8957a
cvsdist 438e8df
* Fri Jun 27 2003 Tim Waugh <twaugh@redhat.com> 2.5.1-16
cvsdist 438e8df
- Finally give up on making grep go fast. :-(
cvsdist ac8957a
cvsdist 438e8df
* Thu Jun 26 2003 Tim Waugh <twaugh@redhat.com> 2.5.1-15.1
cvsdist 438e8df
- Rebuilt.
cvsdist e798d0b
cvsdist 438e8df
* Thu Jun 26 2003 Tim Waugh <twaugh@redhat.com> 2.5.1-15
cvsdist e798d0b
- Fixed grep -i bug introduced by cache.
cvsdist e798d0b
cvsdist 438e8df
* Mon Jun 23 2003 Tim Waugh <twaugh@redhat.com> 2.5.1-14.1
cvsdist 438e8df
- Rebuilt.
cvsdist 438e8df
cvsdist 438e8df
* Mon Jun 23 2003 Tim Waugh <twaugh@redhat.com> 2.5.1-14
cvsdist e798d0b
- Redo the gofast patch (bug #97785).
cvsdist e798d0b
cvsdist 438e8df
* Thu Jun 12 2003 Tim Waugh <twaugh@redhat.com> 2.5.1-13.1
cvsdist 438e8df
- Rebuilt.
cvsdist 438e8df
cvsdist 438e8df
* Thu Jun 12 2003 Tim Waugh <twaugh@redhat.com> 2.5.1-13
cvsdist 438e8df
- Fixed a bug in the gofast patch (bug #97266).
cvsdist e798d0b
cvsdist 438e8df
* Tue Jun 10 2003 Tim Waugh <twaugh@redhat.com> 2.5.1-12.1
cvsdist 438e8df
- Rebuilt.
cvsdist 438e8df
cvsdist 438e8df
* Tue Jun 10 2003 Tim Waugh <twaugh@redhat.com> 2.5.1-12
cvsdist e798d0b
- Go faster (bug #69900).
cvsdist 438e8df
- Fix man page.
cvsdist 438e8df
cvsdist 438e8df
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
cvsdist 438e8df
- rebuilt
cvsdist 438e8df
cvsdist 438e8df
* Thu May 29 2003 Tim Waugh <twaugh@redhat.com> 2.5.1-10.1
cvsdist 438e8df
- Rebuilt.
cvsdist 438e8df
cvsdist 438e8df
* Thu May 29 2003 Tim Waugh <twaugh@redhat.com> 2.5.1-10
cvsdist 438e8df
- Use system regex again.
cvsdist 438e8df
cvsdist 438e8df
* Thu May 29 2003 Tim Waugh <twaugh@redhat.com> 2.5.1-9
cvsdist 438e8df
- Fixed bug in go-fast patch.
cvsdist e798d0b
cvsdist 438e8df
* Wed May 28 2003 Tim Waugh <twaugh@redhat.com> 2.5.1-8
cvsdist e798d0b
- Go fast (bug #69900).
cvsdist 438e8df
- Run test suite.
cvsdist e798d0b
cvsdist e798d0b
* Wed Jan 22 2003 Tim Powers <timp@redhat.com> 2.5.1-7
cvsdist 732ac98
- rebuilt
cvsdist 732ac98
cvsdist 732ac98
* Tue Nov 19 2002 Tim Waugh <twaugh@redhat.com> 2.5.1-6
cvsdist 732ac98
- i18n patch.
cvsdist 732ac98
cvsdist 732ac98
* Mon Oct 21 2002 Tim Waugh <twaugh@redhat.com> 2.5.1-5
cvsdist 732ac98
- Don't install /usr/share/info/dir.
cvsdist 732ac98
- Fix -o -i (bug #72641).
cvsdist 732ac98
cvsdist 732ac98
* Sat Jul 20 2002 Florian La Roche <Florian.LaRoche@redhat.de>
cvsdist 732ac98
- install all info files #69204
cvsdist 732ac98
cvsdist 732ac98
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
cvsdist 732ac98
- automated rebuild
cvsdist 732ac98
cvsdist 732ac98
* Thu May 23 2002 Tim Powers <timp@redhat.com>
cvsdist 732ac98
- automated rebuild
cvsdist 732ac98
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