[golang-github-openshift-go-json-rest] Bug 1085030 - initial upload
by Lokesh Mandvekar
commit c90c32962a0c00a2a5d01f7100538d0c548d8239
Author: Lokesh Mandvekar <lsm5(a)redhat.com>
Date: Fri Apr 11 14:28:10 2014 -0400
Bug 1085030 - initial upload
.gitignore | 1 +
golang-github-openshift-go-json-rest.spec | 64 +++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 66 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..185a566 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/go-systemd-7715b15.tar.gz
diff --git a/golang-github-openshift-go-json-rest.spec b/golang-github-openshift-go-json-rest.spec
new file mode 100644
index 0000000..1a4efa3
--- /dev/null
+++ b/golang-github-openshift-go-json-rest.spec
@@ -0,0 +1,64 @@
+%global debug_package %{nil}
+%global import_path github.com/openshift/go-json-rest
+%global gopath %{_datadir}/gocode
+%global commit 7715b156a4414c449c49e2a98dda4fb84ea5fc11
+%global shortcommit %(c=%{commit}; echo ${c:0:7})
+
+Name: golang-github-openshift-go-json-rest
+Version: 0
+Release: 0.1.git%{shortcommit}%{?dist}
+Summary: A quick and easy way to setup a RESTful JSON API
+License: ASL 2.0
+URL: http://%{import_path}
+Source0: https://%{import_path}/archive/%{commit}/go-systemd-%{shortcommit}.tar.gz
+%if 0%{?fedora} >= 19 || 0%{?rhel} >= 7
+BuildArch: noarch
+%else
+ExclusiveArch: %{ix86} x86_64 %{arm}
+%endif
+
+%description
+%{summary}
+
+%package devel
+Requires: golang
+Summary: A quick and easy way to setup a RESTFUL JSON API
+Provides: golang(%{import_path}) = %{version}-%{release}
+Provides: golang(%{import_path}/test) = %{version}-%{release}
+Provides: golang(%{import_path}/trie) = %{version}-%{release}
+
+%description devel
+%{summary}
+
+This package contains library source intended for building other packages
+which use openshift/go-json-rest.
+
+%prep
+%setup -n go-json-rest-%{commit}
+
+%build
+
+%install
+for d in . test trie; do
+ install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$d
+ cp -av $d/*.go %{buildroot}/%{gopath}/src/%{import_path}/$d
+done
+
+%check
+
+%files devel
+%doc LICENSE README.md
+%dir %attr(755,root,root) %{gopath}
+%dir %attr(755,root,root) %{gopath}/src
+%dir %attr(755,root,root) %{gopath}/src/github.com
+%dir %attr(755,root,root) %{gopath}/src/github.com/openshift
+%dir %attr(755,root,root) %{gopath}/src/%{import_path}
+%dir %attr(755,root,root) %{gopath}/src/%{import_path}/test
+%dir %attr(755,root,root) %{gopath}/src/%{import_path}/trie
+%{gopath}/src/%{import_path}/*.go
+%{gopath}/src/%{import_path}/test/*.go
+%{gopath}/src/%{import_path}/trie/*.go
+
+%changelog
+* Fri Apr 04 2014 Lokesh Mandvekar <lsm5(a)redhat.com> 0-0.1.git
+- Initial package
diff --git a/sources b/sources
index e69de29..f8900cd 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+08718c0df5263a03c3f75c0c27f6b071 go-systemd-7715b15.tar.gz
10 years, 1 month