fix gzip timestamp handling
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-recompress?expand=0&rev=8
This commit is contained in:
parent
4d7aa5d98c
commit
1ded4feb96
@ -1,3 +1,21 @@
|
||||
#
|
||||
# spec file for package obs-service-recompress
|
||||
#
|
||||
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
|
||||
Name: obs-service-recompress
|
||||
License: GPL v2 or later
|
||||
@ -27,7 +45,6 @@ It supports to compress, uncompress or recompress files from or to
|
||||
|
||||
%build
|
||||
|
||||
|
||||
%install
|
||||
mkdir -p $RPM_BUILD_ROOT/usr/lib/obs/service
|
||||
install -m 0755 %{SOURCE0} $RPM_BUILD_ROOT/usr/lib/obs/service
|
||||
@ -38,3 +55,4 @@ install -m 0644 %{SOURCE1} $RPM_BUILD_ROOT/usr/lib/obs/service
|
||||
%dir /usr/lib/obs
|
||||
/usr/lib/obs/service
|
||||
|
||||
%changelog
|
||||
|
@ -72,7 +72,7 @@ for i in $FILES; do
|
||||
fi
|
||||
|
||||
if [ "$MYCOMPRESSION" == "gz" ]; then
|
||||
COMPRESS="gzip -c -"
|
||||
COMPRESS="gzip -c -n --rsyncable -"
|
||||
NEWFILE="${BASENAME#_service:}.gz"
|
||||
elif [ "$MYCOMPRESSION" == "bz2" ]; then
|
||||
COMPRESS="bzip2 -c -"
|
||||
|
Loading…
Reference in New Issue
Block a user