181 lines
5.1 KiB
RPMSpec
181 lines
5.1 KiB
RPMSpec
#
|
|
# spec file for package grep (Version 2.5.2)
|
|
#
|
|
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
# 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/
|
|
License: GPL v2 or later
|
|
Group: Productivity/Text/Utilities
|
|
Provides: base:/usr/bin/grep
|
|
AutoReqProv: on
|
|
PreReq: %{install_info_prereq}
|
|
Version: 2.5.2
|
|
Release: 50
|
|
Summary: Print lines matching a pattern
|
|
Source: grep-%{version}.tar.bz2
|
|
Patch: grep-%{version}.diff
|
|
Patch1: pcre-static.patch
|
|
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
|
|
Patch7: icase.diff
|
|
Patch8: grep-i18n-speedup.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
|
|
%patch6
|
|
%patch7
|
|
%patch8
|
|
rm -f lib/regex.[ch]
|
|
|
|
%build
|
|
rm -f m4/header.m4 m4/install.m4 m4/isc-posix.m4 m4/largefile.m4 m4/missing.m4 m4/sanity.m4
|
|
AUTOPOINT=true autoreconf --force --install
|
|
./configure CFLAGS="$RPM_OPT_FLAGS" \
|
|
--prefix=/usr --mandir=%{_mandir} --infodir=%{_infodir} \
|
|
--bindir=/bin --build=%{_target_cpu}-suse-linux \
|
|
--without-included-regex
|
|
make
|
|
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
|
|
* 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.
|