From 177644aa746b3724f5c053a5d0b86be74a67ec2af9f55b4f915d6762d02ae64e Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Wed, 28 Mar 2007 22:41:19 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gzip?expand=0&rev=4 --- gzip.changes | 6 ++++++ gzip.spec | 25 ++++++++++++++++--------- 2 files changed, 22 insertions(+), 9 deletions(-) diff --git a/gzip.changes b/gzip.changes index 75a8b8a..2bf2e6e 100644 --- a/gzip.changes +++ b/gzip.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Mar 27 13:50:42 CEST 2007 - dmueller@suse.de + +- reenable profile feedback +- remove hardcoded -mcpu=pentiumpro for x86 + ------------------------------------------------------------------- Tue Feb 6 11:27:21 CET 2007 - schwab@suse.de diff --git a/gzip.spec b/gzip.spec index 5d62198..6af1445 100644 --- a/gzip.spec +++ b/gzip.spec @@ -11,14 +11,13 @@ # norootforbuild Name: gzip -%define do_profiling 0 URL: http://www.gzip.org/ License: GNU General Public License (GPL) Group: Productivity/Archiving/Compression Autoreqprov: on PreReq: %{install_info_prereq} Version: 1.3.11 -Release: 1 +Release: 8 Summary: GNU Zip Compression Utilities Source: %{name}-%{version}.tar.gz Patch: zgrep.diff @@ -51,9 +50,6 @@ Authors: %build CFLAGS="$RPM_OPT_FLAGS -fomit-frame-pointer \ -%ifarch %{ix86} --mcpu=pentiumpro \ -%endif -W -Wall -Wno-unused-parameter -Wstrict-prototypes -Wpointer-arith" ./configure CFLAGS="$CFLAGS" \ --prefix=%{_prefix} --infodir=%{_infodir} --mandir=%{_mandir} @@ -69,11 +65,19 @@ test_gzip() done done } +profile_gzip() +{ + tmpfile=$(mktemp) + tar cf $tmpfile /usr || true + time ./gzip $tmpfile + time ./gzip -d < $tmpfile.gz > /dev/null + rm -f $tmpfile $tmpfile.gz +} %if %{do_profiling} -make CFLAGS="$CFLAGS -fprofile-arcs" -test_gzip +make CFLAGS="$CFLAGS -fprofile-generate" +profile_gzip make clean -make CFLAGS="$CFLAGS -fbranch-probabilities" +make CFLAGS="$CFLAGS -fprofile-use" %else make %endif @@ -101,7 +105,10 @@ ln -sf zmore.1 $RPM_BUILD_ROOT%{_mandir}/man1/zless.1 %postun %install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz -%changelog -n gzip +%changelog +* Tue Mar 27 2007 - dmueller@suse.de +- reenable profile feedback +- remove hardcoded -mcpu=pentiumpro for x86 * Tue Feb 06 2007 - schwab@suse.de - Update to gzip 1.3.11. * As per the GNU coding standards, the behavior of gzip and its