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