[golang-github-docker-libtrust] Resolves: rhbz#1154165 - initial package upload

Lokesh Mandvekar lsm5 at fedoraproject.org
Sat Oct 18 01:19:56 UTC 2014


commit a6804616b2e02a9d48d92795c8ab3139b0d55898
Author: Lokesh Mandvekar <lsm5 at fedoraproject.org>
Date:   Fri Oct 17 20:19:49 2014 -0500

    Resolves: rhbz#1154165 - initial package upload
    
    Signed-off-by: Lokesh Mandvekar <lsm5 at fedoraproject.org>

 .gitignore                         |    1 +
 golang-github-docker-libtrust.spec |   87 ++++++++++++++++++++++++++++++++++++
 sources                            |    1 +
 3 files changed, 89 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..d0d365b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/libtrust-d273ef2.tar.gz
diff --git a/golang-github-docker-libtrust.spec b/golang-github-docker-libtrust.spec
new file mode 100644
index 0000000..b890009
--- /dev/null
+++ b/golang-github-docker-libtrust.spec
@@ -0,0 +1,87 @@
+%global debug_package   %{nil}
+%global provider_tld    com
+%global provider        github
+%global project         docker
+%global repo            libtrust
+%global import_path     %{provider}.%{provider_tld}/%{project}/%{repo}
+%global commit          d273ef2565cab2fd9832b8a3d6320e5ab39ef9db
+%global shortcommit     %(c=%{commit}; echo ${c:0:7})
+
+Name:           golang-%{provider}-%{project}-%{repo}
+Version:        0
+Release:        0.1.git%{shortcommit}%{?dist}
+Summary:        Library for managing authentication and authorization
+License:        ASL 2.0
+URL:            https://%{import_path}
+Source0:        https://%{import_path}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
+BuildArch:      noarch
+
+%description
+%{summary}.
+
+Authentication is handled using the identity attached
+to the public key. Libtrust provides multiple methods
+to prove possession of the private key associated with
+an identity.
+
+    - TLS x509 certificates
+    - Signature verification
+    - Key Challenge
+
+Authorization and access control is managed through a
+distributed trust graph. Trust servers are used as the
+authorities of the trust graph and allow caching portions
+of the graph for faster access.
+
+%package devel
+BuildRequires:  golang >= 1.2.1-3
+Requires:       golang >= 1.2.1-3
+Summary:        Library for managing authentication and authorization
+Provides:       golang(%{import_path}) = %{version}-%{release}
+Provides:       golang(%{import_path}/trustgraph) = %{version}-%{release}
+Provides:       golang(%{import_path}/testutil) = %{version}-%{release}
+
+%description devel
+%{summary}.
+
+Authentication is handled using the identity attached
+to the public key. Libtrust provides multiple methods
+to prove possession of the private key associated with
+an identity.
+
+    - TLS x509 certificates
+    - Signature verification
+    - Key Challenge
+
+Authorization and access control is managed through a
+distributed trust graph. Trust servers are used as the
+authorities of the trust graph and allow caching portions
+of the graph for faster access.
+
+
+%prep
+%setup -qn %{repo}-%{commit}
+
+%build
+
+%install
+install -dp %{buildroot}%{gopath}/src/%{import_path}/trustgraph
+cp -rpav {*.go,trustgraph,testutil} %{buildroot}%{gopath}/src/%{import_path}/
+
+%check
+GOPATH=%{buildroot}%{gopath}:%{gopath} go test %{import_path}
+GOPATH=%{buildroot}%{gopath}:%{gopath} go test %{import_path}/trustgraph
+
+%files devel
+%doc CONTRIBUTING.md LICENSE MAINTAINERS README.md
+%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
+%dir %{gopath}/src/%{import_path}
+%{gopath}/src/%{import_path}/*.go
+%dir %{gopath}/src/%{import_path}/trustgraph
+%{gopath}/src/%{import_path}/trustgraph/*.go
+%dir %{gopath}/src/%{import_path}/testutil
+%{gopath}/src/%{import_path}/testutil/*.go
+
+%changelog
+* Fri Oct 17 2014 Lokesh Mandvekar <lsm5 at fedoraproject.org> - 0-0.1.gitd273ef2
+- Resolves: rhbz#1154165 - initial package
diff --git a/sources b/sources
index e69de29..c49ed41 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+3d2d0b01448ef92abea7d91ac951c4d0  libtrust-d273ef2.tar.gz


More information about the scm-commits mailing list