2006-12-19 00:16:42 +01:00
|
|
|
#
|
2011-08-11 10:08:30 +02:00
|
|
|
# spec file for package grep
|
2006-12-19 00:16:42 +01:00
|
|
|
#
|
2012-02-07 11:09:11 +01:00
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2006-12-19 00:16:42 +01:00
|
|
|
#
|
2008-08-21 17:53:30 +02:00
|
|
|
# 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.
|
|
|
|
|
2006-12-19 00:16:42 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-03-14 11:21:46 +01:00
|
|
|
|
2006-12-19 00:16:42 +01:00
|
|
|
Name: grep
|
2011-12-01 16:53:45 +01:00
|
|
|
BuildRequires: automake
|
2006-12-19 00:16:42 +01:00
|
|
|
BuildRequires: pcre-devel
|
2010-09-23 23:58:18 +02:00
|
|
|
%if 0%{?suse_version} < 1120
|
|
|
|
BuildRequires: pcre
|
|
|
|
%endif
|
2007-10-03 00:55:33 +02:00
|
|
|
Url: http://www.gnu.org/software/grep/
|
2006-12-19 00:16:42 +01:00
|
|
|
Provides: base:/usr/bin/grep
|
|
|
|
PreReq: %{install_info_prereq}
|
2012-08-24 20:47:51 +02:00
|
|
|
Version: 2.14
|
2011-12-01 16:53:45 +01:00
|
|
|
Release: 0
|
2006-12-19 00:16:42 +01:00
|
|
|
Summary: Print lines matching a pattern
|
2012-02-07 11:09:11 +01:00
|
|
|
License: GPL-3.0+
|
|
|
|
Group: Productivity/Text/Utilities
|
2012-08-24 20:47:51 +02:00
|
|
|
# URL for Source0: http://ftp.gnu.org/gnu/grep/grep-2.14.tar.xz
|
|
|
|
# URL for the GPG signature for Source0: http://ftp.gnu.org/gnu/grep/grep-2.14.tar.xz.sig
|
2012-07-05 15:46:46 +02:00
|
|
|
# How to verify Source0:
|
|
|
|
# To import the required public key run: gpg --keyserver keys.gnupg.net --recv-keys 7FD9FCCB000BEEEE
|
2012-08-24 20:47:51 +02:00
|
|
|
# To verify Source0 run: gpg --verify grep-2.14.tar.xz.sig
|
2012-07-05 15:46:46 +02:00
|
|
|
# The result should look like:
|
|
|
|
# gpg: Good signature from "Jim Meyering <jim@meyering.net>"
|
|
|
|
# gpg: WARNING: This key is not certified with a trusted signature!
|
|
|
|
# In the openSUSE build service SLE_11_SP1 does not provide an "xz" package
|
|
|
|
# so that "BuildRequires: xz" cannot be used to make it work with Source0 as is.
|
2012-08-24 20:47:51 +02:00
|
|
|
# To convert from xz to bzip2 do: xz -cd grep-2.14.tar.xz | bzip2 -9c >grep-2.14.tar.bz2
|
2012-07-05 15:46:46 +02:00
|
|
|
Source0: grep-%{version}.tar.bz2
|
2012-08-24 20:47:51 +02:00
|
|
|
# Up-to-date German messages for grep
|
|
|
|
Source1: grep-%{version}.de.po.bz2
|
2006-12-19 00:16:42 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
2012-08-24 20:47:51 +02:00
|
|
|
The grep command searches one or more input files for lines
|
|
|
|
containing a match to a specified pattern. By default, grep prints
|
|
|
|
the matching lines.
|
2006-12-19 00:16:42 +01:00
|
|
|
|
|
|
|
%prep
|
2007-10-03 00:55:33 +02:00
|
|
|
%setup -q
|
2012-08-24 20:47:51 +02:00
|
|
|
bunzip2 -dc %{S:1} > po/de.po
|
2010-09-23 23:58:18 +02:00
|
|
|
%if 0%{?suse_version} < 1120
|
|
|
|
echo "ac_cv_search_pcre_compile=\${ac_cv_search_pcre_compile=%{_libdir}/libpcre.a}" >config.cache
|
|
|
|
%endif
|
2006-12-19 00:16:42 +01:00
|
|
|
|
2012-04-20 06:49:24 +02:00
|
|
|
%build
|
2011-10-29 20:54:23 +02:00
|
|
|
%ifarch ppc ppc64
|
2012-04-20 06:49:24 +02:00
|
|
|
export CFLAGS="$RPM_OPT_FLAGS -mlong-double-64"
|
2011-10-29 20:54:23 +02:00
|
|
|
%endif
|
2010-09-23 23:58:18 +02:00
|
|
|
%if 0%{?suse_version} < 1120
|
2011-08-10 11:57:16 +02:00
|
|
|
%configure -C --bindir=/bin --disable-silent-rules --without-included-regex
|
2010-09-23 23:58:18 +02:00
|
|
|
%else
|
2007-11-28 23:12:05 +01:00
|
|
|
AUTOPOINT=true autoreconf --force --install
|
2012-02-07 11:09:11 +01:00
|
|
|
%configure --disable-silent-rules --without-included-regex
|
2010-09-23 23:58:18 +02:00
|
|
|
%endif
|
2010-07-23 17:17:36 +02:00
|
|
|
%{__make} %{?_smp_mflags}
|
2009-06-05 22:56:59 +02:00
|
|
|
|
|
|
|
%check
|
2007-05-07 18:12:46 +02:00
|
|
|
make check VERBOSE=1
|
2006-12-19 00:16:42 +01:00
|
|
|
|
|
|
|
%install
|
2012-08-24 20:47:51 +02:00
|
|
|
%makeinstall
|
2012-02-07 11:09:11 +01:00
|
|
|
%if 0%{?suse_version} < 1120
|
2012-08-24 20:47:51 +02:00
|
|
|
install -d %{buildroot}/usr/bin
|
|
|
|
ln -sf ../../bin/egrep %{buildroot}%{_bindir}/egrep
|
|
|
|
ln -sf ../../bin/fgrep %{buildroot}%{_bindir}/fgrep
|
|
|
|
ln -sf ../../bin/grep %{buildroot}%{_bindir}/grep
|
2012-02-07 11:09:11 +01:00
|
|
|
%else
|
|
|
|
#UsrMerge
|
2012-08-24 20:47:51 +02:00
|
|
|
install -d %{buildroot}/bin
|
|
|
|
ln -sf %{_bindir}/egrep %{buildroot}/bin/egrep
|
|
|
|
ln -sf %{_bindir}/fgrep %{buildroot}/bin/fgrep
|
|
|
|
ln -sf %{_bindir}/grep %{buildroot}/bin/grep
|
2012-02-07 11:09:11 +01:00
|
|
|
#EndUsrMerge
|
|
|
|
%endif
|
2007-11-28 23:12:05 +01:00
|
|
|
%find_lang %name
|
2006-12-19 00:16:42 +01:00
|
|
|
|
|
|
|
%post
|
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/grep.info.gz
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/grep.info.gz
|
|
|
|
|
2007-11-28 23:12:05 +01:00
|
|
|
%files -f %name.lang
|
2006-12-19 00:16:42 +01:00
|
|
|
%defattr(-,root,root)
|
2007-11-28 23:12:05 +01:00
|
|
|
%doc README AUTHORS NEWS THANKS TODO
|
2012-02-07 11:09:11 +01:00
|
|
|
%if 0%{?suse_version} < 1120
|
2007-11-28 23:12:05 +01:00
|
|
|
/bin/*
|
2012-02-07 11:09:11 +01:00
|
|
|
%else
|
|
|
|
#UsrMerge
|
|
|
|
/bin/egrep
|
|
|
|
/bin/fgrep
|
|
|
|
/bin/grep
|
|
|
|
#EndUsrMerge
|
|
|
|
%endif
|
|
|
|
%{_bindir}/*
|
2011-08-10 11:57:16 +02:00
|
|
|
%{_mandir}/man1/*.gz
|
|
|
|
%{_infodir}/*.gz
|
2007-11-28 23:12:05 +01:00
|
|
|
|
2007-03-22 20:43:58 +01:00
|
|
|
%changelog
|