[golang-github-rackspace-gophercloud] Initial commit - resolves: #1153733

Jan Chaloupka jchaloup at fedoraproject.org
Thu Oct 16 21:35:49 UTC 2014


commit 55182d012f1e58dde0a370a30f4ac1c4fbbd3bed
Author: Jan Chaloupka <jchaloup at redhat.com>
Date:   Thu Oct 16 23:05:25 2014 +0200

    Initial commit
    - resolves: #1153733

 .gitignore                               |    1 +
 golang-github-rackspace-gophercloud.spec |   80 ++++++++++++++++++++++++++++++
 sources                                  |    1 +
 3 files changed, 82 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..37bce50 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/gophercloud-e13cda2.tar.gz
diff --git a/golang-github-rackspace-gophercloud.spec b/golang-github-rackspace-gophercloud.spec
new file mode 100644
index 0000000..73b64a0
--- /dev/null
+++ b/golang-github-rackspace-gophercloud.spec
@@ -0,0 +1,80 @@
+%global debug_package   %{nil}
+%global provider        github
+%global provider_tld    com
+%global project         rackspace
+%global repo            gophercloud
+%global import_path     %{provider}.%{provider_tld}/%{project}/%{repo}
+%global commit          e13cda260ce48d63ce816f4fa72b6c6cd096596d
+%global shortcommit     %(c=%{commit}; echo ${c:0:7})
+
+Name:           golang-%{provider}-%{project}-%{repo}
+Version:        0
+Release:        0.1.git%{shortcommit}%{?dist}
+Summary:        The Go SDK for Openstack http://gophercloud.io
+License:        ASL 2.0
+URL:            https://%{import_path}
+Source0:        https://%{import_path}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
+BuildArch:      noarch
+
+%description
+Gophercloud currently lets you authenticate with OpenStack providers to create
+and manage servers. We are working on extending the API to further include
+cloud files, block storage, DNS, databases, security groups,
+and other features.
+
+This library is still in the very early stages of development.
+
+%package devel
+BuildRequires:  golang >= 1.2.1-3
+BuildRequires:  golang(github.com/mitchellh/mapstructure)
+BuildRequires:  golang(github.com/racker/perigee)
+BuildRequires:  golang(github.com/tonnerre/golang-pretty)
+Requires:       golang >= 1.2.1-3
+Requires:       golang(github.com/mitchellh/mapstructure)
+Requires:       golang(github.com/racker/perigee)
+Requires:       golang(github.com/tonnerre/golang-pretty)
+Summary:        %{summary}
+Provides:       golang(%{import_path}) = %{version}-%{release}
+Provides:       golang(%{import_path}/acceptance) = %{version}-%{release}
+Provides:       golang(%{import_path}/osutil) = %{version}-%{release}
+
+%description devel
+Gophercloud currently lets you authenticate with OpenStack providers to create 
+and manage servers. We are working on extending the API to further include 
+cloud files, block storage, DNS, databases, security groups, 
+and other features.
+
+This library is still in the very early stages of development.
+
+This package contains library source intended for 
+building other packages which use %{project}/%{repo}.
+
+%prep
+%setup -q -n %{repo}-%{commit}
+
+%build
+
+%install
+install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
+cp -pav *.go %{buildroot}/%{gopath}/src/%{import_path}/
+cp -pav {acceptance,osutil} %{buildroot}/%{gopath}/src/%{import_path}/
+
+%check
+GOPATH=%{buildroot}/%{gopath}:%{gopath} go test %{import_path}
+GOPATH=%{buildroot}/%{gopath}:%{gopath} go test %{import_path}/osutil
+
+
+%files devel
+%doc README.asciidoc LICENSE CONTRIBUTORS.md
+%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
+%dir %{gopath}/src/%{import_path}/
+%dir %{gopath}/src/%{import_path}/acceptance
+%dir %{gopath}/src/%{import_path}/osutil
+%{gopath}/src/%{import_path}/*.go
+%{gopath}/src/%{import_path}/*/*.go
+
+%changelog
+* Thu Oct 16 2014 jchaloup <jchaloup at redhat.com> - 0-0.1.gite13cda2
+- First package for Fedora
+  resolves: #1153733
+
diff --git a/sources b/sources
index e69de29..c8e51b9 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+c5869fbddc394858c611de8750e50e9f  gophercloud-e13cda2.tar.gz


More information about the scm-commits mailing list