2006-12-19 00:16:42 +01:00
|
|
|
#
|
2007-05-07 18:12:46 +02:00
|
|
|
# spec file for package grep (Version 2.5.2)
|
2006-12-19 00:16:42 +01:00
|
|
|
#
|
2007-03-22 20:43:58 +01:00
|
|
|
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2006-12-19 00:16:42 +01:00
|
|
|
# This file and all modifications and additions to the pristine
|
|
|
|
# package are under the same license as the package itself.
|
|
|
|
#
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
|
|
|
Name: grep
|
|
|
|
BuildRequires: pcre-devel
|
|
|
|
URL: http://www.gnu.org/software/grep/
|
2007-03-22 20:43:58 +01:00
|
|
|
License: GNU General Public License (GPL)
|
2006-12-19 00:16:42 +01:00
|
|
|
Group: Productivity/Text/Utilities
|
|
|
|
Provides: base:/usr/bin/grep
|
|
|
|
Autoreqprov: on
|
|
|
|
PreReq: %{install_info_prereq}
|
2007-05-07 18:12:46 +02:00
|
|
|
Version: 2.5.2
|
2007-05-17 11:38:38 +02:00
|
|
|
Release: 3
|
2006-12-19 00:16:42 +01:00
|
|
|
Summary: Print lines matching a pattern
|
|
|
|
Source: grep-%{version}.tar.bz2
|
|
|
|
Patch: grep-%{version}.diff
|
|
|
|
Patch1: pcre-static.patch
|
2007-05-07 18:12:46 +02:00
|
|
|
Patch2: grep-2.5.2-conf.patch
|
|
|
|
Patch3: grep-2.5.2-nb.patch
|
|
|
|
Patch4: wordmatch.patch
|
|
|
|
Patch5: grep-2.5.1a-mbcset.diff
|
|
|
|
Patch6: xfail-tests.diff
|
2007-05-17 11:38:38 +02:00
|
|
|
Patch7: icase.diff
|
2006-12-19 00:16:42 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
GNU grep, the "fastest grep in the west" (hopefully).
|
|
|
|
|
|
|
|
`grep' searches for lines matching a pattern.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Alain Magloire <alainm@rcsm.ece.mcgill.ca>
|
|
|
|
Aharon Robbins <arnold@gnu.org>
|
|
|
|
David J MacKenzie <djm@catapult.va.pubnix.com>
|
|
|
|
Karl Berry <karl@cs.umb.edu>
|
|
|
|
Ulrich Drepper <drepper@cygnus.com>
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup
|
|
|
|
%patch
|
|
|
|
%patch1
|
2007-05-07 18:12:46 +02:00
|
|
|
%patch2
|
2006-12-19 00:16:42 +01:00
|
|
|
%patch3
|
|
|
|
%patch4
|
|
|
|
%patch5
|
|
|
|
%patch6
|
2007-05-17 11:38:38 +02:00
|
|
|
%patch7
|
2006-12-19 00:16:42 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
%{suse_update_config -f}
|
2007-05-07 18:12:46 +02:00
|
|
|
rm -f m4/header.m4 m4/install.m4 m4/isc-posix.m4 m4/largefile.m4 m4/missing.m4 m4/sanity.m4
|
2006-12-19 00:16:42 +01:00
|
|
|
autoreconf --force --install
|
|
|
|
test -f po/Makevars || mv po/Makevars.template po/Makevars
|
|
|
|
./configure CFLAGS="$RPM_OPT_FLAGS" \
|
|
|
|
--prefix=/usr --mandir=%{_mandir} --infodir=%{_infodir} \
|
|
|
|
--bindir=/bin --build=%{_target_cpu}-suse-linux
|
|
|
|
make
|
2007-05-07 18:12:46 +02:00
|
|
|
make check VERBOSE=1
|
2006-12-19 00:16:42 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
install -d $RPM_BUILD_ROOT/usr/bin
|
|
|
|
ln -sf ../../bin/egrep $RPM_BUILD_ROOT/usr/bin/egrep
|
|
|
|
ln -sf ../../bin/fgrep $RPM_BUILD_ROOT/usr/bin/fgrep
|
|
|
|
ln -sf ../../bin/grep $RPM_BUILD_ROOT/usr/bin/grep
|
|
|
|
|
|
|
|
%post
|
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/grep.info.gz
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/grep.info.gz
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc README ABOUT-NLS AUTHORS COPYING NEWS THANKS TODO
|
|
|
|
/bin/egrep
|
|
|
|
/bin/fgrep
|
|
|
|
/bin/grep
|
|
|
|
/usr/bin/egrep
|
|
|
|
/usr/bin/fgrep
|
|
|
|
/usr/bin/grep
|
|
|
|
%doc %{_mandir}/man1/egrep.1.gz
|
|
|
|
%doc %{_mandir}/man1/fgrep.1.gz
|
|
|
|
%doc %{_mandir}/man1/grep.1.gz
|
|
|
|
%doc %{_infodir}/grep*.gz
|
|
|
|
/usr/share/locale/*/LC_MESSAGES/grep.mo
|
|
|
|
|
2007-03-22 20:43:58 +01:00
|
|
|
%changelog
|
2007-05-17 11:38:38 +02:00
|
|
|
* Tue May 15 2007 - schwab@suse.de
|
|
|
|
- Fix some icase bugs.
|
2007-05-07 18:12:46 +02:00
|
|
|
* Mon May 07 2007 - schwab@suse.de
|
|
|
|
- Try to get something sensible out of CVS.
|
2007-03-22 20:43:58 +01:00
|
|
|
* Thu Mar 22 2007 - schwab@suse.de
|
|
|
|
- Add a variant of the mbcache patch.
|
2006-12-19 00:16:42 +01:00
|
|
|
* Mon Jul 17 2006 - schwab@suse.de
|
|
|
|
- Fix matching in unsafe encodings [#192390].
|
|
|
|
* Sun Jun 11 2006 - schwab@suse.de
|
|
|
|
- Fix crash with -P '\xa'.
|
|
|
|
* Wed Mar 15 2006 - schwab@suse.de
|
|
|
|
- Don't block on opening a pipe when devices are supposed to be skipped
|
|
|
|
[#149660].
|
|
|
|
* Wed Feb 08 2006 - schwab@suse.de
|
|
|
|
- Fix dfa generation of interval expressions [#148453].
|
|
|
|
* Wed Jan 25 2006 - mls@suse.de
|
|
|
|
- converted neededforbuild to BuildRequires
|
|
|
|
* Fri Jan 20 2006 - agruen@suse.de
|
|
|
|
- Fix a formatting error in the man page.
|
|
|
|
* Sat Mar 12 2005 - schwab@suse.de
|
|
|
|
- Fix word matching.
|
|
|
|
* Mon Nov 22 2004 - schwab@suse.de
|
|
|
|
- Update to grep 2.5.1a.
|
|
|
|
* Wed Oct 20 2004 - ro@suse.de
|
|
|
|
- locale rename: no -> nb
|
|
|
|
* Thu Sep 23 2004 - schwab@suse.de
|
|
|
|
- Better fix for last change [#45689].
|
|
|
|
* Wed Mar 17 2004 - schwab@suse.de
|
|
|
|
- Fix dangling pointer [#36172].
|
|
|
|
* Wed Mar 03 2004 - schwab@suse.de
|
|
|
|
- Update from CVS.
|
|
|
|
* Thu Feb 19 2004 - kukuk@suse.de
|
|
|
|
- Cleanup neededforbuild
|
|
|
|
* Tue Feb 10 2004 - schwab@suse.de
|
|
|
|
- Fix configure test for strerror [#34231].
|
|
|
|
* Sat Jan 10 2004 - adrian@suse.de
|
|
|
|
- add %%defattr
|
|
|
|
- let rpm strip
|
|
|
|
* Fri Jul 25 2003 - schwab@suse.de
|
|
|
|
- Fix parsing of bracket expressions.
|
|
|
|
* Mon Jul 21 2003 - schwab@suse.de
|
|
|
|
- Fix use of pointer after free.
|
|
|
|
* Fri Jun 20 2003 - ro@suse.de
|
|
|
|
- build with current gettext
|
|
|
|
* Wed Apr 30 2003 - schwab@suse.de
|
|
|
|
- Add i18n speedup patch from Takashi.
|
|
|
|
* Thu Apr 24 2003 - ro@suse.de
|
|
|
|
- fix install_info --delete call and move from preun to postun
|
|
|
|
* Mon Apr 07 2003 - schwab@suse.de
|
|
|
|
- Only delete info entries when removing last version.
|
|
|
|
* Wed Feb 12 2003 - schwab@suse.de
|
|
|
|
- Disable huge backref test for now.
|
|
|
|
* Thu Feb 06 2003 - schwab@suse.de
|
|
|
|
- Use %%install_info.
|
|
|
|
* Mon Nov 18 2002 - schwab@suse.de
|
|
|
|
- Add AM_GNU_GETTEXT_VERSION.
|
|
|
|
* Thu Aug 15 2002 - schwab@suse.de
|
|
|
|
- Add i18n patches.
|
|
|
|
* Wed Apr 03 2002 - schwab@suse.de
|
|
|
|
- Link -lpcre statically.
|
|
|
|
* Wed Apr 03 2002 - schwab@suse.de
|
|
|
|
- Update to grep 2.5.1.
|
|
|
|
* Includes support for Perl regexps.
|
|
|
|
* Wed Apr 03 2002 - ro@suse.de
|
|
|
|
- build with current autoconf/automake
|
|
|
|
* Tue Feb 05 2002 - schwab@suse.de
|
|
|
|
- Don't replace autoconf macros from gettext.
|
|
|
|
* Mon Jan 28 2002 - schwab@suse.de
|
|
|
|
- Add i18n patch.
|
|
|
|
* Tue Sep 04 2001 - schwab@suse.de
|
|
|
|
- Update to grep 2.4.2:
|
2007-03-22 20:43:58 +01:00
|
|
|
- New option --binary-files
|
|
|
|
- Final newline silently provided.
|
2006-12-19 00:16:42 +01:00
|
|
|
* Thu Mar 22 2001 - ro@suse.de
|
|
|
|
- added split-aliases as provides
|
|
|
|
* Wed Mar 07 2001 - schwab@suse.de
|
|
|
|
- Split from base.
|