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
|
Tue Feb 6 11:27:21 CET 2007 - schwab@suse.de
|
||||||
|
|
||||||
|
25
gzip.spec
25
gzip.spec
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user