[golang-github-influxdb-go-cache/f21] Initial commit - resolves: #1148692

Jan Chaloupka jchaloup at fedoraproject.org
Thu Oct 9 09:02:41 UTC 2014


commit 820b798e57e89bf5048a6996a98b3a77fa4b5a9d
Author: Jan Chaloupka <jchaloup at redhat.com>
Date:   Thu Oct 9 10:56:08 2014 +0200

    Initial commit
    - resolves: #1148692

 .gitignore                           |    1 +
 golang-github-influxdb-go-cache.spec |   61 ++++++++++++++++++++++++++++++++++
 sources                              |    1 +
 3 files changed, 63 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..a9513e5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/go-cache-7d1d6d6.tar.gz
diff --git a/golang-github-influxdb-go-cache.spec b/golang-github-influxdb-go-cache.spec
new file mode 100644
index 0000000..04ac0fc
--- /dev/null
+++ b/golang-github-influxdb-go-cache.spec
@@ -0,0 +1,61 @@
+%global provider	github
+%global provider_tld	com
+%global project		influxdb
+%global repo		go-cache
+%global commit		7d1d6d6ae935664bc8b80ab2b1fc7ab77a7e46da
+
+%global import_path	%{provider}.%{provider_tld}/%{project}/%{repo}
+%global shortcommit	%(c=%{commit}; echo ${c:0:7})
+%global debug_package	%{nil}
+
+Name:		golang-%{provider}-%{project}-%{repo}
+Version:	0
+Release:	0.1.git%{shortcommit}%{?dist}
+Summary:	An in-memory key:value store/cache library for Go
+License:	MIT
+URL:		http://%{import_path}
+Source0:	https://github.com/%{project}/%{repo}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
+BuildArch:	noarch
+
+%description
+An in-memory key:value store/cache (similar to Memcached) library for Go,
+suitable for single-machine applications
+
+
+%package devel
+BuildRequires:	golang >= 1.2.1-3
+Requires:	golang >= 1.2.1-3
+Summary:	An in-memory key:value store/cache library for Go
+Provides:	golang(%{import_path}) = %{version}-%{release}
+
+%description devel
+An in-memory key:value store/cache (similar to Memcached) library for Go,
+suitable for single-machine applications
+
+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}/
+
+%check
+GOPATH=%{buildroot}/%{gopath}:%{gopath} go test %{import_path}
+
+%files devel
+%doc LICENSE README CONTRIBUTORS
+%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
+%dir %{gopath}/src/%{import_path}
+%{gopath}/src/%{import_path}/*.go
+
+%changelog
+* Thu Sep 25 2014 Jan Chaloupka <jchaloup at redhat.com> - 0-0.1.git7d1d6d6
+- First package for Fedora
+
+
+
diff --git a/sources b/sources
index e69de29..bb41156 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+60d06866df4ed61334cefa71e9e77aaa  go-cache-7d1d6d6.tar.gz


More information about the scm-commits mailing list