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