Sync from SUSE:SLFO:Main obs-service-recompress revision 124503fde614c4344161a833aafca073

This commit is contained in:
Adrian Schröter 2024-05-03 17:14:50 +02:00
commit bfac4b892f
8 changed files with 257 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

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

20
PKGBUILD Normal file
View File

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

17
_service Normal file
View File

@ -0,0 +1,17 @@
<services>
<service mode="manual" name="tar_scm">
<param name="url">https://github.com/openSUSE/obs-service-recompress.git</param>
<param name="scm">git</param>
<param name="version">0.5.2</param>
<param name="revision">0.5.2</param>
</service>
<service mode="manual" name="recompress">
<param name="file">*.tar</param>
<param name="compression">gz</param>
</service>
<service mode="manual" name="set_version">
<param name="basename">obs-service-recompress</param>
</service>
</services>

6
_servicedata Normal file
View File

@ -0,0 +1,6 @@
<servicedata>
<service name="tar_scm">
<param name="url">git@github.com:openSUSE/obs-service-recompress.git</param>
<param name="changesrevision">c11e489efc15590506dba3736d84b6e9d9d0b739</param>
</service>
</servicedata>

8
debian.dsc Normal file
View File

@ -0,0 +1,8 @@
Format: 1.0
Source: obs-service-recompress
Version: 0.5.2-0
Binary: obs-service-recompress
Maintainer: Adrian Schroeter <adrian@suse.de>
Architecture: all
Standards-Version: 3.7.2
Build-Depends: debhelper (>= 7)

BIN
obs-service-recompress-0.5.2.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,112 @@
-------------------------------------------------------------------
Tue Mar 1 14:41:26 UTC 2022 - Adrian Schröter <adrian@suse.de>
- update to version 0.5.2:
* zstd compression with rsyncable and higher compression
-------------------------------------------------------------------
Thu Feb 24 01:43:12 UTC 2022 - Luca Boccassi <bluca@debian.org>
- disable zstd on RHEL, the package is not available on OBS
-------------------------------------------------------------------
Sun Jan 30 23:05:35 UTC 2022 - Dirk Müller <dmueller@suse.com>
- use filebased requires on gzip so that zstd can supplement it as
well
-------------------------------------------------------------------
Wed May 26 11:55:33 UTC 2021 - Ferdinand Thiessen <rpm@fthiessen.de>
- 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

View File

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