Adrian Schröter 2011-08-26 07:54:59 +00:00 committed by Git OBS Bridge
parent 4d7aa5d98c
commit 1ded4feb96
2 changed files with 20 additions and 2 deletions

View File

@ -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

View File

@ -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 -"