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="scm">git</param>
|
||||||
<param name="version">0.5.2</param>
|
<param name="version">0.5.2</param>
|
||||||
<param name="revision">0.5.2</param>
|
<param name="revision">0.5.2</param>
|
||||||
|
<param name="extract">dist/obs-service-recompress.spec</param>
|
||||||
</service>
|
</service>
|
||||||
|
|
||||||
<service mode="manual" name="recompress">
|
<service mode="manual" name="recompress">
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
|
|
||||||
|
|
||||||
%define service recompress
|
%define service recompress
|
||||||
|
|
||||||
Name: obs-service-%{service}
|
Name: obs-service-%{service}
|
||||||
Version: 0.5.2
|
Version: 0.5.2
|
||||||
Release: 0
|
Release: 0
|
||||||
@ -25,20 +26,22 @@ License: GPL-2.0-or-later
|
|||||||
Group: Development/Tools/Building
|
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
|
Source: %{name}-%{version}.tar.gz
|
||||||
|
BuildRequires: perl(Test::More)
|
||||||
|
|
||||||
BuildRequires: bzip2
|
BuildRequires: bzip2
|
||||||
BuildRequires: gzip
|
BuildRequires: gzip
|
||||||
BuildRequires: xz
|
BuildRequires: xz
|
||||||
BuildRequires: perl(Test::More)
|
|
||||||
Requires: %{_bindir}/gzip
|
|
||||||
Requires: bzip2
|
Requires: bzip2
|
||||||
|
Requires: gzip
|
||||||
Requires: xz
|
Requires: xz
|
||||||
BuildArch: noarch
|
|
||||||
# Enable zstd on all supported distributions
|
%if 0%{?suse_version} > 1500 || 0%{?sle_version} > 150000 || 0%{?fedora_version} > 25 || 0%{?rhel} >= 6
|
||||||
%if 0%{?suse_version} > 1500 || 0%{?sle_version} > 150000 || 0%{?fedora_version} > 25
|
|
||||||
BuildRequires: zstd
|
BuildRequires: zstd
|
||||||
Requires: zstd
|
Requires: zstd
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This is a source service for openSUSE Build Service.
|
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
|
%build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
make DESTDIR=%buildroot install
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%make_build test
|
make test
|
||||||
|
|
||||||
%files
|
%files
|
||||||
|
%defattr(-,root,root)
|
||||||
%dir %{_prefix}/lib/obs
|
%dir %{_prefix}/lib/obs
|
||||||
%{_prefix}/lib/obs/service
|
%{_prefix}/lib/obs/service
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user