mirror of
https://abf.rosa.ru/djam/rqlite.git
synced 2025-02-24 10:22:59 +00:00
69 lines
1.4 KiB
RPMSpec
69 lines
1.4 KiB
RPMSpec
%define debug %nil
|
|
%define debug_package %nil
|
|
%define secscan 1
|
|
|
|
|
|
Name: rqlite
|
|
Version: 8.29.5
|
|
Release: 1
|
|
Summary: Distributed relational database built on SQLite
|
|
URL: http://www.rqlite.io
|
|
Source0: https://github.com/rqlite/rqlite/archive/v%{version}/%{name}-%{version}.tar.gz
|
|
License: MIT
|
|
Group: Development/Other
|
|
Provides: rqlite
|
|
Provides: rqbench
|
|
Provides: rqlited
|
|
BuildRequires: go
|
|
BuildRequires: git-core
|
|
BuildRequires: upx
|
|
|
|
%if %{secscan}
|
|
BuildRequires: clamav
|
|
BuildRequires: trivy
|
|
%endif
|
|
|
|
|
|
%description
|
|
rqlite is an easy-to-use, lightweight, distributed
|
|
relational database, which uses SQLite as its storage
|
|
engine. rqlite is simple to deploy, operating it is very
|
|
straightforward, and its clustering capabilities provide
|
|
you with fault-tolerance and high-availability. rqlite
|
|
is available for Linux, macOS, and Microsoft Windows.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%if %{secscan}
|
|
clamscan -ir .
|
|
trivy fs --scanners vuln --format cosign-vuln .
|
|
%endif
|
|
|
|
|
|
%build
|
|
export GOPROXY=direct
|
|
go build -o bin/rqbench ./cmd/rqbench
|
|
go build -o bin/rqlite ./cmd/rqlite
|
|
go build -o bin/rqlited ./cmd/rqlited
|
|
|
|
upx bin/*
|
|
|
|
|
|
%install
|
|
install -Dm0755 bin/rqbench %{buildroot}%{_bindir}/rqbench
|
|
install -Dm0755 bin/rqlite %{buildroot}%{_bindir}/rqlite
|
|
install -Dm0755 bin/rqlited %{buildroot}%{_bindir}/rqlited
|
|
|
|
%files
|
|
%doc README.md LICENSE DOC
|
|
%{_bindir}/*
|
|
|
|
|
|
%check
|
|
export GOPROXY=direct
|
|
# go test ./...
|
|
|
|
%if %{secscan}
|
|
clamscan -ir %{buildroot}
|
|
%endif
|