SHA256
3
0
forked from pool/grep

Accepting request 500479 from home:pluskalm:branches:Base:System

- Use https url's
- Drop no longer needed explicit pie
- Enable profiled build

OBS-URL: https://build.opensuse.org/request/show/500479
OBS-URL: https://build.opensuse.org/package/show/Base:System/grep?expand=0&rev=81
This commit is contained in:
Andreas Stieger 2017-06-05 18:55:41 +00:00 committed by Git OBS Bridge
parent 7bdb31fdca
commit bf6fd4341d
2 changed files with 23 additions and 9 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Jun 1 19:23:26 UTC 2017 - mpluskal@suse.com
- Use https url's
- Drop no longer needed explicit pie
- Enable profiled build
-------------------------------------------------------------------
Sat Feb 11 07:19:36 UTC 2017 - mpluskal@suse.com

View File

@ -22,10 +22,10 @@ Release: 0
Summary: Print lines matching a pattern
License: GPL-3.0+
Group: Productivity/Text/Utilities
Url: http://www.gnu.org/software/grep/
Source0: http://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz
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
Url: https://www.gnu.org/software/grep/
Source0: https://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz
Source2: https://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz.sig
Source3: https://savannah.gnu.org/project/memberlist-gpgkeys.php?group=grep&download=1#/%{name}.keyring
BuildRequires: fdupes
BuildRequires: makeinfo
BuildRequires: pcre-devel
@ -44,13 +44,20 @@ match to a specified pattern. By default, grep prints the matching lines.
%setup -q
%build
%global optflags %{optflags} -fPIE
export LDFLAGS="-pie"
%configure --disable-silent-rules --without-included-regex
make %{?_smp_mflags}
%configure \
--disable-silent-rules \
--without-included-regex
%if %{do_profiling}
make %{?_smp_mflags} CFLAGS="%{optflags} %{cflags_profile_generate}"
make %{?_smp_mflags} CFLAGS="%{optflags} %{cflags_profile_generate}" check
make clean
make %{?_smp_mflags} CFLAGS="%{optflags} %{cflags_profile_feedback}"
%else
make %{?_smp_mflags} CFLAGS="%{optflags}"
%endif
%check
make check VERBOSE=1 %{?_smp_mflags}
make %{?_smp_mflags} check
%install
%make_install