From bf6fd4341d7636a178ff7d9bcf4683785a4404521ab863874ae33b507078dcb2 Mon Sep 17 00:00:00 2001 From: Andreas Stieger Date: Mon, 5 Jun 2017 18:55:41 +0000 Subject: [PATCH] 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 --- grep.changes | 7 +++++++ grep.spec | 25 ++++++++++++++++--------- 2 files changed, 23 insertions(+), 9 deletions(-) diff --git a/grep.changes b/grep.changes index b901f97..bf1e041 100644 --- a/grep.changes +++ b/grep.changes @@ -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 diff --git a/grep.spec b/grep.spec index 9667b84..91835ce 100644 --- a/grep.spec +++ b/grep.spec @@ -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