SHA256
6
0
forked from pool/grep

Accepting request 210610 from home:AndreasStieger:branches:Base:System

Update to 2.15 (joined with SR#206801)

OBS-URL: https://build.opensuse.org/request/show/210610
OBS-URL: https://build.opensuse.org/package/show/Base:System/grep?expand=0&rev=34
This commit is contained in:
2013-12-19 10:06:49 +00:00
committed by Git OBS Bridge
parent 51a988006a
commit 78dd48e433
7 changed files with 60 additions and 25 deletions

View File

@@ -17,33 +17,23 @@
Name: grep
BuildRequires: automake
BuildRequires: pcre-devel
BuildRequires: texinfo
BuildRequires: xz
%if 0%{?suse_version} < 1120
BuildRequires: pcre
%endif
Url: http://www.gnu.org/software/grep/
Provides: base:/usr/bin/grep
PreReq: %{install_info_prereq}
Version: 2.14
Version: 2.15
Release: 0
Summary: Print lines matching a pattern
License: GPL-3.0+
Group: Productivity/Text/Utilities
# 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
# How to verify Source0:
# To import the required public key run: gpg --keyserver keys.gnupg.net --recv-keys 7FD9FCCB000BEEEE
# To verify Source0 run: gpg --verify grep-2.14.tar.xz.sig
# 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.
# To convert from xz to bzip2 do: xz -cd grep-2.14.tar.xz | bzip2 -9c >grep-2.14.tar.bz2
Source0: http://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz
# Up-to-date German messages for grep
Source1: grep-%{version}.de.po.bz2
Source2: http://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz.sig
Source3: http://savannah.gnu.org/project/memberlist-gpgkeys.php?group=grep&download=1#/%{name}.keyring
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
@@ -53,7 +43,6 @@ the matching lines.
%prep
%setup -q
bunzip2 -dc %{S:1} > po/de.po
%if 0%{?suse_version} < 1120
echo "ac_cv_search_pcre_compile=\${ac_cv_search_pcre_compile=%{_libdir}/libpcre.a}" >config.cache
%endif
@@ -63,9 +52,10 @@ echo "ac_cv_search_pcre_compile=\${ac_cv_search_pcre_compile=%{_libdir}/libpcre.
export CFLAGS="$RPM_OPT_FLAGS -mlong-double-64"
%endif
%if 0%{?suse_version} < 1120
%configure -C --bindir=/bin --disable-silent-rules --without-included-regex
%configure -C --bindir=/bin --disable-silent-rules
%else if 0%{?suse_version} < 1310
%configure --disable-silent-rules
%else
AUTOPOINT=true autoreconf --force --install
%configure --disable-silent-rules --without-included-regex
%endif
%{__make} %{?_smp_mflags}
@@ -98,7 +88,7 @@ ln -sf %{_bindir}/grep %{buildroot}/bin/grep
%files -f %name.lang
%defattr(-,root,root)
%doc README AUTHORS NEWS THANKS TODO
%doc README AUTHORS NEWS THANKS TODO COPYING ChangeLog*
%if 0%{?suse_version} < 1120
/bin/*
%else