From bfac4b892f554e229796bfc080a6c6fd07b8e21cdef1f512461eae53183fe10a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 3 May 2024 17:14:50 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main obs-service-recompress revision 124503fde614c4344161a833aafca073 --- .gitattributes | 23 ++++++ PKGBUILD | 20 +++++ _service | 17 +++++ _servicedata | 6 ++ debian.dsc | 8 ++ obs-service-recompress-0.5.2.tar.gz | 3 + obs-service-recompress.changes | 112 ++++++++++++++++++++++++++++ obs-service-recompress.spec | 68 +++++++++++++++++ 8 files changed, 257 insertions(+) create mode 100644 .gitattributes create mode 100644 PKGBUILD create mode 100644 _service create mode 100644 _servicedata create mode 100644 debian.dsc create mode 100644 obs-service-recompress-0.5.2.tar.gz create mode 100644 obs-service-recompress.changes create mode 100644 obs-service-recompress.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..23ecd0c --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,20 @@ +pkgname=obs-service-recompress +pkgver=0.5.2 +pkgrel=0 +pkgdesc="An OBS source service: Recompress files" +arch=('i686' 'x86_64') +url="https://www.github.com/openSUSE/obs-service-recompress" +license=('GPL-2.0+' 'GPL-2.0') +groups=('base-devel') +depends=('gzip' 'bzip2' 'xz' 'zstd') +source=(obs-service-recompress-${pkgver}.tar.gz) +md5sums=('SKIP') + +package() { + msg "Installing build ..." + cd "${srcdir}"/obs-service-recompress-${pkgver} + mkdir -p ${pkgdir}/usr/lib/obs/service + install -m 0755 recompress ${pkgdir}/usr/lib/obs/service + install -m 0644 recompress.service ${pkgdir}/usr/lib/obs/service +} + diff --git a/_service b/_service new file mode 100644 index 0000000..c2c3036 --- /dev/null +++ b/_service @@ -0,0 +1,17 @@ + + + https://github.com/openSUSE/obs-service-recompress.git + git + 0.5.2 + 0.5.2 + + + + *.tar + gz + + + + obs-service-recompress + + diff --git a/_servicedata b/_servicedata new file mode 100644 index 0000000..c363db4 --- /dev/null +++ b/_servicedata @@ -0,0 +1,6 @@ + + + git@github.com:openSUSE/obs-service-recompress.git + c11e489efc15590506dba3736d84b6e9d9d0b739 + + \ No newline at end of file diff --git a/debian.dsc b/debian.dsc new file mode 100644 index 0000000..13e80ee --- /dev/null +++ b/debian.dsc @@ -0,0 +1,8 @@ +Format: 1.0 +Source: obs-service-recompress +Version: 0.5.2-0 +Binary: obs-service-recompress +Maintainer: Adrian Schroeter +Architecture: all +Standards-Version: 3.7.2 +Build-Depends: debhelper (>= 7) diff --git a/obs-service-recompress-0.5.2.tar.gz b/obs-service-recompress-0.5.2.tar.gz new file mode 100644 index 0000000..b9a8058 --- /dev/null +++ b/obs-service-recompress-0.5.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:da2791d4916c9e306b6834d9140168ac58d3cefa670d24ad5f90f086aea97e05 +size 11444 diff --git a/obs-service-recompress.changes b/obs-service-recompress.changes new file mode 100644 index 0000000..66c09f0 --- /dev/null +++ b/obs-service-recompress.changes @@ -0,0 +1,112 @@ +------------------------------------------------------------------- +Tue Mar 1 14:41:26 UTC 2022 - Adrian Schröter + +- update to version 0.5.2: + * zstd compression with rsyncable and higher compression + +------------------------------------------------------------------- +Thu Feb 24 01:43:12 UTC 2022 - Luca Boccassi + +- disable zstd on RHEL, the package is not available on OBS + +------------------------------------------------------------------- +Sun Jan 30 23:05:35 UTC 2022 - Dirk Müller + +- use filebased requires on gzip so that zstd can supplement it as + well + +------------------------------------------------------------------- +Wed May 26 11:55:33 UTC 2021 - Ferdinand Thiessen + +- Fixed checking for zstd support on different distributions + +------------------------------------------------------------------- +Mon Aug 03 05:25:43 UTC 2020 - adrian@suse.de + +- Update to version 0.5.1: + * Use at least 2 threads for xz compression + +------------------------------------------------------------------- +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 + +- Update to version 0.4.0+git20200123.696d003: + * run test suite during build + +------------------------------------------------------------------- +Thu Jan 23 08:34:09 UTC 2020 - adrian@suse.de + +- Update to version 0.4.0+git20200123.946b23f: + * add zstd compression support + +------------------------------------------------------------------- +Fri Sep 01 11:11:35 UTC 2017 - adrian@suse.de + +- Update to version 0.3.1+git20170704.59bf231: + * Add README.md file + * [dist] added spec file to git + +------------------------------------------------------------------- +Wed Feb 17 13:14:50 UTC 2016 - opensuse-packaging@opensuse.org + +- Update to version 0.3.1+git20160217.7897d3f: + + security fixes (boo#967265) + +------------------------------------------------------------------- +Wed Jun 24 15:56:34 UTC 2015 - hib@hiberis.nl + +- Fix build for Debian 8.0 +- Use install target from Makefile +- Include git revision in version number +- Update to version 0.3.1+git20150622.d908b54: + + Tell rm not to prompt + + Change debian source format to 'native' + + Add Makefile with install target + +------------------------------------------------------------------- +Wed Jul 9 15:36:43 UTC 2014 - jblunck@infradead.org + +- Update to version 0.3.1: + + debian: use install-file to simplify rules-file + + Initial debianization + + - avoid problematic quoting + + Fix typo + +------------------------------------------------------------------- +Tue Nov 5 16:17:34 UTC 2013 - speilicke@suse.com + +- Update to version 0.3.1: + + Fix diffing uncompressed files + +------------------------------------------------------------------- +Mon Nov 4 09:13:15 UTC 2013 - speilicke@suse.com + +- Update to version 0.3: + + Don't overwrite identical files + +------------------------------------------------------------------- +Tue Oct 29 13:53:50 UTC 2013 - speilicke@suse.com + +- Move service to github.com/openSUSE/obs-service-recompress +- Add _service file to update package from there +- Drop local sources and use tarball from source services + +------------------------------------------------------------------- +Thu Mar 1 18:50:01 GMT 2012 - aspiers@suse.com + +- Display message on successful (re)compression. + +------------------------------------------------------------------- +Thu Feb 14 15:52:17 UTC 2012 - aspiers@suse.com + +- always remove uncompressed files +- fix rpmlint warnings diff --git a/obs-service-recompress.spec b/obs-service-recompress.spec new file mode 100644 index 0000000..76f8ed2 --- /dev/null +++ b/obs-service-recompress.spec @@ -0,0 +1,68 @@ +# +# spec file +# +# Copyright (c) 2022 SUSE LLC +# +# 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 https://bugs.opensuse.org/ +# + + +%define service recompress +Name: obs-service-%{service} +Version: 0.5.2 +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} +Source: %{name}-%{version}.tar.gz +BuildRequires: bzip2 +BuildRequires: gzip +BuildRequires: xz +BuildRequires: perl(Test::More) +Requires: %{_bindir}/gzip +Requires: bzip2 +Requires: xz +BuildArch: noarch +# Enable zstd on all supported distributions +%if 0%{?suse_version} > 1500 || 0%{?sle_version} > 150000 || 0%{?fedora_version} > 25 +BuildRequires: zstd +Requires: zstd +%endif + +%description +This is a source service for openSUSE Build Service. + +It supports to compress, uncompress or recompress files from or to + + none : No Compression + gz : Gzip Compression + bz2 : Bzip2 Compression + xz : XZ Compression + zstd : Zstd Compression + +%prep +%setup -q + +%build + +%install +%make_install + +%check +%make_build test + +%files +%dir %{_prefix}/lib/obs +%{_prefix}/lib/obs/service + +%changelog