[packages/vault] new, version 0.5.3

glen glen at pld-linux.org
Tue Sep 27 23:26:56 CEST 2016


commit 840273c26eda745d62d8aa13f672be1e977d7332
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Wed Sep 28 00:26:33 2016 +0300

    new, version 0.5.3

 vault.spec | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 54 insertions(+)
---
diff --git a/vault.spec b/vault.spec
new file mode 100644
index 0000000..6822c7c
--- /dev/null
+++ b/vault.spec
@@ -0,0 +1,54 @@
+#
+# building:
+# https://github.com/hashicorp/vault#developing-vault
+#
+# Conditional build:
+%bcond_without	tests	# build without tests
+
+Summary:	A tool for managing secrets
+Name:		vault
+Version:	0.5.3
+Release:	0.2
+License:	MPL-2.0
+Group:		Applications/System
+Source0:	https://github.com/hashicorp/vault/archive/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5:	eb6fc39a061434da29a723d147b0f2f3
+URL:		https://vaultproject.io/
+BuildRequires:	golang >= 1.6
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define		_enable_debug_packages 0
+%define		gobuild(o:) go build -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n')" -a -v -x %{?**};
+%define		gopath		%{_libdir}/golang
+%define		import_path	github.com/hashicorp/vault
+
+%description
+Vault is a tool for securely accessing secrets. A secret is anything
+that you want to tightly control access to, such as API keys,
+passwords, certificates, and more. Vault provides a unified interface
+to any secret, while providing tight access control and recording a
+detailed audit log.
+
+%prep
+%setup -q
+
+install -d src/$(dirname %{import_path})
+ln -s ../../.. src/%{import_path}
+
+%build
+export GOPATH=$(pwd)
+
+%gobuild -o bin/%{name}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_bindir}
+install -p bin/%{name} $RPM_BUILD_ROOT%{_bindir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.md
+%attr(755,root,root) %{_bindir}/vault
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/vault.git/commitdiff/840273c26eda745d62d8aa13f672be1e977d7332



More information about the pld-cvs-commit mailing list