From 1ded4feb96cca2d1e4c2a52422931ed8d7f3c057b301f7fcdd4b5c11074f365b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 26 Aug 2011 07:54:59 +0000 Subject: [PATCH] fix gzip timestamp handling OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-recompress?expand=0&rev=8 --- obs-service-recompress.spec | 20 +++++++++++++++++++- recompress | 2 +- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/obs-service-recompress.spec b/obs-service-recompress.spec index 006995a..b92139e 100644 --- a/obs-service-recompress.spec +++ b/obs-service-recompress.spec @@ -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 diff --git a/recompress b/recompress index 56b350e..2abb0cd 100644 --- a/recompress +++ b/recompress @@ -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 -"