SHA256
1
0
forked from pool/gzip
OBS User unknown
2007-01-08 21:52:58 +00:00
committed by Git OBS Bridge
parent d54774ae10
commit fd3dbe9010
6 changed files with 49 additions and 74 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package gzip (Version 1.3.9)
# spec file for package gzip (Version 1.3.10)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
@@ -17,7 +17,7 @@ License: GNU General Public License (GPL)
Group: Productivity/Archiving/Compression
Autoreqprov: on
PreReq: %{install_info_prereq}
Version: 1.3.9
Version: 1.3.10
Release: 1
Summary: GNU Zip Compression Utilities
Source: %{name}-%{version}.tar.gz
@@ -57,10 +57,9 @@ CFLAGS="$RPM_OPT_FLAGS -fomit-frame-pointer \
-W -Wall -Wno-unused-parameter -Wstrict-prototypes -Wpointer-arith"
./configure CFLAGS="$CFLAGS" \
--prefix=%{_prefix} --infodir=%{_infodir} --mandir=%{_mandir}
%if %{do_profiling}
make CFLAGS="$CFLAGS -fprofile-arcs"
for i in 1 2 3 4 5 6 7 8 9
do
test_gzip()
{
for i in 1 2 3 4 5 6 7 8 9; do
for f in build-aux/texinfo.tex /bin/bash; do
basef=${f##*/}
time ./gzip -$i < $f > $basef.gz
@@ -69,21 +68,16 @@ CFLAGS="$RPM_OPT_FLAGS -fomit-frame-pointer \
cmp $f $basef.test$i
done
done
make clean
make CFLAGS="$CFLAGS -fbranch-probabilities"
}
%if %{do_profiling}
make CFLAGS="$CFLAGS -fprofile-arcs"
test_gzip
make clean
make CFLAGS="$CFLAGS -fbranch-probabilities"
%else
make
make
%endif
for i in 1 2 3 4 5 6 7 8 9
do
for f in build-aux/texinfo.tex /bin/bash; do
basef=${f##*/}
time ./gzip -$i < $f > $basef.gz
./gzip --test $basef.gz
./gzip -d < $basef.gz > $basef.test$i
cmp $f $basef.test$i
done
done
test_gzip
%install
make DESTDIR=$RPM_BUILD_ROOT install
@@ -111,6 +105,15 @@ ln -sf zmore.1 $RPM_BUILD_ROOT%{_mandir}/man1/zless.1
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%changelog -n gzip
* Mon Jan 08 2007 - schwab@suse.de
- Update to gzip 1.3.10.
* gzip -c and zcat now work on special files, files with special mode bits,
and files with multiple hard links.
* gzip -q now exits with status 2 (not 1) when SIGPIPE is received.
* zcmp and zdiff did not work in the usual case, due to a typo.
* zgrep has many bugs fixed with argument handling, special characters,
and exit status.
* zless no longer mishandles $%%=~ in file names.
* Fri Dec 15 2006 - schwab@suse.de
- Update to gzip 1.3.9.
* No major changes; only porting fixes.