2022-09-29 22:53:01 +03:00
|
|
|
%define debug %nil
|
|
|
|
%define debug_package %nil
|
2024-10-08 08:46:11 +00:00
|
|
|
%define secscan 0
|
2024-07-02 08:48:39 +00:00
|
|
|
|
2022-09-29 22:53:01 +03:00
|
|
|
|
|
|
|
Name: rqlite
|
2025-02-05 07:34:05 +00:00
|
|
|
Version: 8.36.11
|
2022-09-29 22:53:01 +03:00
|
|
|
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
|
2024-11-05 17:58:02 +00:00
|
|
|
BuildRequires: pkgconfig(openssl3.3)
|
2022-09-29 22:53:01 +03:00
|
|
|
|
2024-07-02 08:48:39 +00:00
|
|
|
%if %{secscan}
|
|
|
|
BuildRequires: clamav
|
|
|
|
BuildRequires: trivy
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
2022-09-29 22:53:01 +03:00
|
|
|
%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
|
|
|
|
|
2024-07-02 08:48:39 +00:00
|
|
|
%if %{secscan}
|
|
|
|
clamscan -ir .
|
|
|
|
trivy fs --scanners vuln --format cosign-vuln .
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
2022-09-29 22:53:01 +03:00
|
|
|
%build
|
2024-10-08 08:46:11 +00:00
|
|
|
export GOPROXY=https://proxy.golang.org/cached-only
|
2022-09-29 22:53:01 +03:00
|
|
|
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}/*
|
|
|
|
|
|
|
|
|
2024-07-02 08:48:39 +00:00
|
|
|
%check
|
|
|
|
export GOPROXY=direct
|
2024-08-08 14:25:19 +00:00
|
|
|
# go test ./...
|
2024-07-02 08:48:39 +00:00
|
|
|
|
|
|
|
%if %{secscan}
|
|
|
|
clamscan -ir %{buildroot}
|
|
|
|
%endif
|