diff --git a/PKGBUILD b/PKGBUILD
index 839767c..84d5091 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,5 +1,5 @@
pkgname=obs-service-recompress
-pkgver=0.4.0+git20200123.696d003
+pkgver=0.5.0
pkgrel=0
pkgdesc="An OBS source service: Recompress files"
arch=('i686' 'x86_64')
diff --git a/_service b/_service
index b5c276f..555b33f 100644
--- a/_service
+++ b/_service
@@ -2,9 +2,9 @@
git@github.com:openSUSE/obs-service-recompress.git
git
- git-master
- @PARENT_TAG@+git%cd.%h
- master
+ .git
+ 0.5.0
+ 0.5.0
enable
diff --git a/_servicedata b/_servicedata
index 389178b..23cb2f2 100644
--- a/_servicedata
+++ b/_servicedata
@@ -1,4 +1,6 @@
-
- git@github.com:openSUSE/obs-service-recompress.git
- 696d003be1c1ac48e4a77dedb4e594c794a301fe
\ No newline at end of file
+
+ git@github.com:openSUSE/obs-service-recompress.git
+ a821ab0e08ec171891c3bbcf16fd97c3cf00a82b
+
+
diff --git a/debian.dsc b/debian.dsc
index e6ef287..3fd0a04 100644
--- a/debian.dsc
+++ b/debian.dsc
@@ -1,6 +1,6 @@
Format: 1.0
Source: obs-service-recompress
-Version: 0.4.0+git20200123.696d003-0
+Version: 0.5.0-0
Binary: obs-service-recompress
Maintainer: Adrian Schroeter
Architecture: all
diff --git a/obs-service-recompress-0.4.0+git20200123.696d003.tar.gz b/obs-service-recompress-0.4.0+git20200123.696d003.tar.gz
deleted file mode 100644
index 42a3323..0000000
--- a/obs-service-recompress-0.4.0+git20200123.696d003.tar.gz
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:e8e55234b46f9a83dcdfc03c3be53856436caf66d446aebb8607625b4c25a252
-size 4708
diff --git a/obs-service-recompress-0.5.0.tar.gz b/obs-service-recompress-0.5.0.tar.gz
new file mode 100644
index 0000000..a7223f1
--- /dev/null
+++ b/obs-service-recompress-0.5.0.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ed744833bfd1fa0f3c0e525f491791c63449477f2b5f7039f1b6e1bce2018a65
+size 11436
diff --git a/obs-service-recompress.changes b/obs-service-recompress.changes
index ccd1903..eba41f1 100644
--- a/obs-service-recompress.changes
+++ b/obs-service-recompress.changes
@@ -1,3 +1,13 @@
+-------------------------------------------------------------------
+Mon Jul 27 06:25:18 UTC 2020 - adrian@suse.de
+
+- Update to version 0.5.0:
+ * do not follow symlinks (issue 9)
+ * add license file
+ * compression using # of core threads for zstd and xz
+ * Add support for keeping of original file
+ * use --threads=0
+
-------------------------------------------------------------------
Thu Jan 23 08:44:27 UTC 2020 - adrian@suse.de
diff --git a/obs-service-recompress.spec b/obs-service-recompress.spec
index f9514d2..88c26d6 100644
--- a/obs-service-recompress.spec
+++ b/obs-service-recompress.spec
@@ -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,30 @@
%define service recompress
Name: obs-service-%{service}
-Version: 0.4.0+git20200123.696d003
+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
+BuildRoot: %{_tmppath}/%{name}-%{version}-build
+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,7 +63,7 @@ It supports to compress, uncompress or recompress files from or to
%build
%install
-%makeinstall
+make DESTDIR=%buildroot install
%check
make test