vault-openvpn/vault-openvpn.spec

31 lines
No EOL
683 B
RPMSpec

%define debug_package %nil
Name: vault-openvpn
Version: 1.9.1
Release: 1
Summary: OpenVPN configuration combined with a Vault
License: ASL 2.0
URL: https://github.com/Luzifer/vault-openvpn
Source0: https://github.com/Luzifer/vault-openvpn/archive/v%{version}/%{name}-%{version}.tar.gz
Group: Networking/Remote access
BuildRequires: go
BuildRequires: upx
%description
Small wrapper utility to manage OpenVPN configuration
combined with a Vault PKI
%prep
%setup -q
%build
go build -ldflags="-X main.version=%{version}"
upx %{name}
%install
install -Dm0755 %{name} %{buildroot}%{_bindir}/%{name}
%files
%doc README.md LICENSE
%{_bindir}/%{name}