Hello community,
here is the log from the commit of package obs-service-recompress for
openSUSE:Factory checked in at 2020-08-04 20:17:50
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/obs-service-recompress (Old)
and /work/SRC/openSUSE:Factory/.obs-service-recompress.new.3592 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "obs-service-recompress"
Tue Aug 4 20:17:50 2020 rev:17 rq:824028 version:0.5.1
Changes:
--------
---
/work/SRC/openSUSE:Factory/obs-service-recompress/obs-service-recompress.changes
2020-07-28 17:23:46.805798657 +0200
+++
/work/SRC/openSUSE:Factory/.obs-service-recompress.new.3592/obs-service-recompress.changes
2020-08-04 20:18:09.460923195 +0200
@@ -1,0 +2,6 @@
+Mon Aug 03 05:25:43 UTC 2020 - [email protected]
+
+- Update to version 0.5.1:
+ * Use at least 2 threads for xz compression
+
+-------------------------------------------------------------------
Old:
----
obs-service-recompress-0.5.0.tar.gz
New:
----
obs-service-recompress-0.5.1.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ obs-service-recompress.spec ++++++
--- /var/tmp/diff_new_pack.8jXGzF/_old 2020-08-04 20:18:11.152923960 +0200
+++ /var/tmp/diff_new_pack.8jXGzF/_new 2020-08-04 20:18:11.152923960 +0200
@@ -19,7 +19,7 @@
%define service recompress
Name: obs-service-%{service}
-Version: 0.5.0
+Version: 0.5.1
Release: 0
Summary: An OBS source service: Recompress files
License: GPL-2.0-or-later
++++++ PKGBUILD ++++++
--- /var/tmp/diff_new_pack.8jXGzF/_old 2020-08-04 20:18:11.188923976 +0200
+++ /var/tmp/diff_new_pack.8jXGzF/_new 2020-08-04 20:18:11.188923976 +0200
@@ -1,5 +1,5 @@
pkgname=obs-service-recompress
-pkgver=0.5.0
+pkgver=0.5.1
pkgrel=0
pkgdesc="An OBS source service: Recompress files"
arch=('i686' 'x86_64')
++++++ _service ++++++
--- /var/tmp/diff_new_pack.8jXGzF/_old 2020-08-04 20:18:11.220923990 +0200
+++ /var/tmp/diff_new_pack.8jXGzF/_new 2020-08-04 20:18:11.220923990 +0200
@@ -3,8 +3,8 @@
<param
name="url">[email protected]:openSUSE/obs-service-recompress.git</param>
<param name="scm">git</param>
<param name="exclude">.git</param>
- <param name="version">0.5.0</param>
- <param name="revision">0.5.0</param>
+ <param name="version">0.5.1</param>
+ <param name="revision">0.5.1</param>
<param name="changesgenerate">enable</param>
</service>
++++++ _servicedata ++++++
--- /var/tmp/diff_new_pack.8jXGzF/_old 2020-08-04 20:18:11.240923999 +0200
+++ /var/tmp/diff_new_pack.8jXGzF/_new 2020-08-04 20:18:11.240923999 +0200
@@ -1,6 +1,6 @@
<servicedata>
<service name="tar_scm">
<param
name="url">[email protected]:openSUSE/obs-service-recompress.git</param>
- <param
name="changesrevision">a821ab0e08ec171891c3bbcf16fd97c3cf00a82b</param>
+ <param
name="changesrevision">c11e489efc15590506dba3736d84b6e9d9d0b739</param>
</service>
-</servicedata>
+</servicedata>
\ No newline at end of file
++++++ debian.dsc ++++++
--- /var/tmp/diff_new_pack.8jXGzF/_old 2020-08-04 20:18:11.260924008 +0200
+++ /var/tmp/diff_new_pack.8jXGzF/_new 2020-08-04 20:18:11.260924008 +0200
@@ -1,6 +1,6 @@
Format: 1.0
Source: obs-service-recompress
-Version: 0.5.0-0
+Version: 0.5.1-0
Binary: obs-service-recompress
Maintainer: Adrian Schroeter <[email protected]>
Architecture: all
++++++ obs-service-recompress-0.5.0.tar.gz ->
obs-service-recompress-0.5.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/obs-service-recompress-0.5.0/dist/obs-service-recompress.spec
new/obs-service-recompress-0.5.1/dist/obs-service-recompress.spec
--- old/obs-service-recompress-0.5.0/dist/obs-service-recompress.spec
2020-07-27 08:23:34.000000000 +0200
+++ new/obs-service-recompress-0.5.1/dist/obs-service-recompress.spec
2020-08-03 07:24:32.000000000 +0200
@@ -1,7 +1,7 @@
#
# spec file for package obs-service-recompress
#
-# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -19,21 +19,29 @@
%define service recompress
Name: obs-service-%{service}
-Version: 0.4.0+git20200123.946b23f
+Version: 0.5.0
Release: 0
Summary: An OBS source service: Recompress files
License: GPL-2.0-or-later
Group: Development/Tools/Building
-Url: https://github.com/openSUSE/obs-service-%{service}
+URL: https://github.com/openSUSE/obs-service-%{service}
Source: %{name}-%{version}.tar.gz
+BuildRequires: perl(Test::More)
+
BuildRequires: bzip2
BuildRequires: gzip
BuildRequires: xz
-BuildRequires: zstd
Requires: bzip2
Requires: gzip
Requires: xz
+
+%if (0%{?suse_version} <= 1500 && 0%{?sle_version} <= 150000) ||
0%{?fedora_version} < 25 || 0%{?rhel_version} < 6
+# noop
+%else
+BuildRequires: zstd
Requires: zstd
+%endif
+
BuildArch: noarch
%description
@@ -54,14 +62,13 @@
%build
%install
-%makeinstall
+make DESTDIR=%buildroot install
%check
make test
%files
%defattr(-,root,root)
-%license COPYING
%dir %{_prefix}/lib/obs
%{_prefix}/lib/obs/service
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/obs-service-recompress-0.5.0/recompress
new/obs-service-recompress-0.5.1/recompress
--- old/obs-service-recompress-0.5.0/recompress 2020-07-27 08:23:34.000000000
+0200
+++ new/obs-service-recompress-0.5.1/recompress 2020-08-03 07:24:32.000000000
+0200
@@ -85,7 +85,9 @@
COMPRESS="bzip2 -c -"
NEWFILE="${BASENAME#_service:}.bz2"
elif [ "$MYCOMPRESSION" == "xz" ]; then
- COMPRESS="xz --threads=0 -c -"
+ # --threads=0 should be used, but it is reported to create non
deterministic output
+ # https://github.com/openSUSE/obs-service-recompress/pull/17
+ COMPRESS="xz --threads=$(n=$(nproc); [[ $n > 1 ]] || n=2; echo $n) -c -"
NEWFILE="${BASENAME#_service:}.xz"
elif [ "$MYCOMPRESSION" == "zstd" -o "$MYCOMPRESSION" == "zst" ]; then
COMPRESS="zstd --threads=0 -c -"