194 lines
5.7 KiB
RPMSpec
194 lines
5.7 KiB
RPMSpec
#
|
|
# spec file for package grep (Version 2.5.4)
|
|
#
|
|
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
|
|
Name: grep
|
|
BuildRequires: pcre-devel
|
|
Url: http://www.gnu.org/software/grep/
|
|
License: GPL v2 or later
|
|
Group: Productivity/Text/Utilities
|
|
Provides: base:/usr/bin/grep
|
|
AutoReqProv: on
|
|
PreReq: %{install_info_prereq}
|
|
Version: 2.5.4
|
|
Release: 3
|
|
Summary: Print lines matching a pattern
|
|
Source: grep-%{version}.tar.bz2
|
|
Patch: grep-%{version}.diff
|
|
Patch1: pcre-static.patch
|
|
Patch2: grep-2.5.1a-mbcset.diff
|
|
Patch3: icase.diff
|
|
Patch4: grep-i18n-speedup.diff
|
|
Patch5: grep-glibc210.diff
|
|
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 -q
|
|
%patch
|
|
%patch1
|
|
%patch2
|
|
%patch3
|
|
%patch4
|
|
%patch5 -p1
|
|
rm -f lib/regex.h
|
|
rm -f m4/header.m4 m4/install.m4 m4/isc-posix.m4 m4/largefile.m4 m4/missing.m4 m4/sanity.m4
|
|
|
|
%build
|
|
AUTOPOINT=true autoreconf --force --install
|
|
%configure --bindir=/bin --without-included-regex
|
|
%{__make} %{?jobs:-j%jobs}
|
|
|
|
%check
|
|
make check VERBOSE=1
|
|
|
|
%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
|
|
%find_lang %name
|
|
|
|
%post
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/grep.info.gz
|
|
|
|
%postun
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/grep.info.gz
|
|
|
|
%files -f %name.lang
|
|
%defattr(-,root,root)
|
|
%doc README AUTHORS NEWS THANKS TODO
|
|
/bin/*
|
|
/usr/bin/*
|
|
%doc %{_mandir}/man1/*.gz
|
|
%doc %{_infodir}/*.gz
|
|
|
|
%changelog
|
|
* Thu Jun 11 2009 coolo@novell.com
|
|
- rediff to avoid fuzz
|
|
- fix build with glibc 2.10
|
|
* Thu Jun 04 2009 crrodriguez@suse.de
|
|
- link pcre library dynamically
|
|
* Wed Feb 11 2009 schwab@suse.de
|
|
- Update to grep 2.5.4.
|
|
* This is a bugfix release. No new features.
|
|
* Thu Aug 14 2008 schwab@suse.de
|
|
- More speedups.
|
|
* Tue Jun 03 2008 schwab@suse.de
|
|
- Fix last change.
|
|
* Tue May 27 2008 schwab@suse.de
|
|
- Some speedups.
|
|
* Mon Feb 11 2008 schwab@suse.de
|
|
- Fix another icase bug.
|
|
* Wed Nov 28 2007 schwab@suse.de
|
|
- General cleanup.
|
|
* Wed Sep 12 2007 schwab@suse.de
|
|
- Allocate MB properties lazily.
|
|
* Tue May 15 2007 schwab@suse.de
|
|
- Fix some icase bugs.
|
|
* Mon May 07 2007 schwab@suse.de
|
|
- Try to get something sensible out of CVS.
|
|
* Thu Mar 22 2007 schwab@suse.de
|
|
- Add a variant of the mbcache patch.
|
|
* 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:
|
|
- New option --binary-files
|
|
- Final newline silently provided.
|
|
* Thu Mar 22 2001 ro@suse.de
|
|
- added split-aliases as provides
|
|
* Wed Mar 07 2001 schwab@suse.de
|
|
- Split from base.
|