forked from pool/obs-service-recompress
use git spec file
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-recompress?expand=0&rev=48
This commit is contained in:
parent
44d78aac00
commit
777eb2a2cf
1
_service
1
_service
@ -4,6 +4,7 @@
|
||||
<param name="scm">git</param>
|
||||
<param name="version">0.5.2</param>
|
||||
<param name="revision">0.5.2</param>
|
||||
<param name="extract">dist/obs-service-recompress.spec</param>
|
||||
</service>
|
||||
|
||||
<service mode="manual" name="recompress">
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user