2024-09-03 23:50:33 +03:00
|
|
|
|
%define debug %nil
|
|
|
|
|
%define debug_package %nil
|
|
|
|
|
|
|
|
|
|
Name: openbao
|
2025-01-21 22:07:33 +00:00
|
|
|
|
Version: 2.1.1
|
2024-09-03 23:50:33 +03:00
|
|
|
|
Release: 1
|
|
|
|
|
Summary: А managament sensitive data including secrets
|
|
|
|
|
URL: https://openbao.org
|
|
|
|
|
Source0: https://github.com/openbao/openbao/archive/v%{version}/%{name}-%{version}.tar.gz
|
|
|
|
|
License: MPL-2.0
|
|
|
|
|
Group: Security
|
|
|
|
|
BuildRequires: go
|
|
|
|
|
BuildRequires: git-core
|
|
|
|
|
BuildRequires: upx
|
2024-11-19 10:14:55 +00:00
|
|
|
|
BuildRequires: pkgconfig(openssl3.3)
|
2024-09-03 23:50:33 +03:00
|
|
|
|
Provides: bao == %{EVRD}
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
OpenBao exists to provide a software solution to manage,
|
|
|
|
|
store, and distribute sensitive data including secrets,
|
|
|
|
|
certificates, and keys. The OpenBao community intends to
|
|
|
|
|
provide this software under an OSI-approved open-source
|
|
|
|
|
license, led by a community run under open governance
|
|
|
|
|
principles.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
export GOPROXY=https://proxy.golang.org/cached-only
|
|
|
|
|
go build -ldflags "-s -w -X github.com/openbao/openbao/version.GitCommit='' -X github.com/openbao/openbao/version.BuildDate=''" \
|
|
|
|
|
-o bin/bao .
|
|
|
|
|
go build -ldflags '-s -w' -o bin/mysql-database-plugin ./plugins/database/mysql/mysql-database-plugin
|
|
|
|
|
go build -ldflags '-s -w' -o bin/mysql-legacy-database-plugin ./plugins/database/mysql/mysql-legacy-database-plugin
|
|
|
|
|
go build -ldflags '-s -w' -o bin/cassandra-database-plugin ./plugins/database/cassandra/cassandra-database-plugin
|
|
|
|
|
go build -ldflags '-s -w' -o bin/influxdb-database-plugin ./plugins/database/influxdb/influxdb-database-plugin
|
|
|
|
|
go build -ldflags '-s -w' -o bin/postgresql-database-plugin ./plugins/database/postgresql/postgresql-database-plugin
|
|
|
|
|
|
|
|
|
|
#go build -o bin/mssql-database-plugin ./plugins/database/mssql/mssql-database-plugin
|
|
|
|
|
#go build -o bin/hana-database-plugin ./plugins/database/hana/hana-database-plugin
|
|
|
|
|
#go build -o bin/mongodb-database-plugin ./plugins/database/mongodb/mongodb-database-plugin
|
|
|
|
|
|
|
|
|
|
upx bin/*
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
install -Dm0755 bin/bao %{buildroot}%{_bindir}/bao
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%doc README.md LICENSE
|
|
|
|
|
%{_bindir}/bao
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
export GOPROXY=https://proxy.golang.org/cached-only
|
|
|
|
|
|