From 777eb2a2cf00dae50583619636f2960790362190107568a39182f4447bef1cd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Tue, 1 Mar 2022 15:17:54 +0000 Subject: [PATCH] use git spec file OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-recompress?expand=0&rev=48 --- _service | 1 + obs-service-recompress.spec | 18 +++++++++++------- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/_service b/_service index c2c3036..9e967d9 100644 --- a/_service +++ b/_service @@ -4,6 +4,7 @@ git 0.5.2 0.5.2 + dist/obs-service-recompress.spec diff --git a/obs-service-recompress.spec b/obs-service-recompress.spec index 76f8ed2..5444174 100644 --- a/obs-service-recompress.spec +++ b/obs-service-recompress.spec @@ -17,6 +17,7 @@ %define service recompress + Name: obs-service-%{service} Version: 0.5.2 Release: 0 @@ -25,20 +26,22 @@ License: GPL-2.0-or-later Group: Development/Tools/Building URL: https://github.com/openSUSE/obs-service-%{service} Source: %{name}-%{version}.tar.gz +BuildRequires: perl(Test::More) + BuildRequires: bzip2 BuildRequires: gzip BuildRequires: xz -BuildRequires: perl(Test::More) -Requires: %{_bindir}/gzip Requires: bzip2 +Requires: gzip Requires: xz -BuildArch: noarch -# Enable zstd on all supported distributions -%if 0%{?suse_version} > 1500 || 0%{?sle_version} > 150000 || 0%{?fedora_version} > 25 + +%if 0%{?suse_version} > 1500 || 0%{?sle_version} > 150000 || 0%{?fedora_version} > 25 || 0%{?rhel} >= 6 BuildRequires: zstd Requires: zstd %endif +BuildArch: noarch + %description This is a source service for openSUSE Build Service. @@ -56,12 +59,13 @@ It supports to compress, uncompress or recompress files from or to %build %install -%make_install +make DESTDIR=%buildroot install %check -%make_build test +make test %files +%defattr(-,root,root) %dir %{_prefix}/lib/obs %{_prefix}/lib/obs/service