SHA256
1
0
forked from pool/gzip
OBS User unknown 2007-03-28 22:41:19 +00:00 committed by Git OBS Bridge
parent 217e902bba
commit 177644aa74
2 changed files with 22 additions and 9 deletions

View File

@ -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 Tue Feb 6 11:27:21 CET 2007 - schwab@suse.de

View File

@ -11,14 +11,13 @@
# norootforbuild # norootforbuild
Name: gzip Name: gzip
%define do_profiling 0
URL: http://www.gzip.org/ URL: http://www.gzip.org/
License: GNU General Public License (GPL) License: GNU General Public License (GPL)
Group: Productivity/Archiving/Compression Group: Productivity/Archiving/Compression
Autoreqprov: on Autoreqprov: on
PreReq: %{install_info_prereq} PreReq: %{install_info_prereq}
Version: 1.3.11 Version: 1.3.11
Release: 1 Release: 8
Summary: GNU Zip Compression Utilities Summary: GNU Zip Compression Utilities
Source: %{name}-%{version}.tar.gz Source: %{name}-%{version}.tar.gz
Patch: zgrep.diff Patch: zgrep.diff
@ -51,9 +50,6 @@ Authors:
%build %build
CFLAGS="$RPM_OPT_FLAGS -fomit-frame-pointer \ CFLAGS="$RPM_OPT_FLAGS -fomit-frame-pointer \
%ifarch %{ix86}
-mcpu=pentiumpro \
%endif
-W -Wall -Wno-unused-parameter -Wstrict-prototypes -Wpointer-arith" -W -Wall -Wno-unused-parameter -Wstrict-prototypes -Wpointer-arith"
./configure CFLAGS="$CFLAGS" \ ./configure CFLAGS="$CFLAGS" \
--prefix=%{_prefix} --infodir=%{_infodir} --mandir=%{_mandir} --prefix=%{_prefix} --infodir=%{_infodir} --mandir=%{_mandir}
@ -69,11 +65,19 @@ test_gzip()
done done
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} %if %{do_profiling}
make CFLAGS="$CFLAGS -fprofile-arcs" make CFLAGS="$CFLAGS -fprofile-generate"
test_gzip profile_gzip
make clean make clean
make CFLAGS="$CFLAGS -fbranch-probabilities" make CFLAGS="$CFLAGS -fprofile-use"
%else %else
make make
%endif %endif
@ -101,7 +105,10 @@ ln -sf zmore.1 $RPM_BUILD_ROOT%{_mandir}/man1/zless.1
%postun %postun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz %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 * Tue Feb 06 2007 - schwab@suse.de
- Update to gzip 1.3.11. - Update to gzip 1.3.11.
* As per the GNU coding standards, the behavior of gzip and its * As per the GNU coding standards, the behavior of gzip and its