This commit is contained in:
parent
217e902bba
commit
177644aa74
@ -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
|
||||
|
||||
|
25
gzip.spec
25
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
|
||||
|
Loading…
Reference in New Issue
Block a user