[golang-github-rcrowley-go-metrics/f21] Initial commit
Jan Chaloupka
jchaloup at fedoraproject.org
Mon Sep 22 06:32:56 UTC 2014
commit 150fde2b731034c26760696cfb4da7ae3df2768e
Author: Jan Chaloupka <jchaloup at redhat.com>
Date: Mon Sep 22 08:32:41 2014 +0200
Initial commit
.gitignore | 1 +
golang-github-rcrowley-go-metrics.spec | 60 ++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 62 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..2256b88 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/golang-github-rcrowley-go-metrics-3be59ceb5538550555459fb77d0efe0e218cdfc7.tar.gz
diff --git a/golang-github-rcrowley-go-metrics.spec b/golang-github-rcrowley-go-metrics.spec
new file mode 100644
index 0000000..5ff7ed2
--- /dev/null
+++ b/golang-github-rcrowley-go-metrics.spec
@@ -0,0 +1,60 @@
+%global debug_package %{nil}
+%global provider github
+%global provider_tld com
+%global repo go-metrics
+%global project rcrowley
+%global import_path %{provider}.%{provider_tld}/%{project}/%{repo}
+%global commit 3be59ceb5538550555459fb77d0efe0e218cdfc7
+%global shortcommit %(c=%{commit}; echo ${c:0:7})
+
+Name: golang-%{provider}-%{project}-%{repo}
+Version: 0
+Release: 0.1.git%{shortcommit}%{?dist}
+Summary: Go port of Coda Hales Metrics library
+License: BSD
+URL: https://%{import_path}
+Source0: https://%{import_path}/archive/%{commit}/%{name}-%{commit}.tar.gz
+BuildArch: noarch
+
+%description
+Go port of Coda Hales Metrics library
+
+%package devel
+BuildRequires: golang >= 1.2.1-3
+Requires: golang >= 1.2.1-3
+Summary: Go port of Coda Hales Metrics library
+Provides: golang(%{import_path}) = %{version}-%{release}
+BuildArch: noarch
+
+%description devel
+%{summary}.
+
+%prep
+%setup -q -n %{repo}-%{commit}
+
+%build
+# the ./cmd pieces are presently examples
+
+%install
+install -d %{buildroot}/%{gopath}/src/%{import_path}
+cp -pav *.go %{buildroot}/%{gopath}/src/%{import_path}
+# we're not providing the ./influxdb, ./stathat, or ./librato pieces yet,
+# since they have additional dependencies and the core of this library isn't dependent of these pieces
+
+%check
+GOPATH=%{buildroot}/%{gopath}:%{gopath} go test %{import_path}
+
+%files devel
+%doc LICENSE README.md
+%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
+%dir %{gopath}/src/%{import_path}
+%{gopath}/src/%{import_path}/*.go
+
+%changelog
+* Fri Sep 19 2014 Lokesh Mandvekar <lsm5 at fedoraproject.org> - 0-0.1.git3be59ce
+- BuildArch: noarch for main package
+- defattr and attrs aren't needed in files listing
+- replacing repo and project values with macros
+
+* Thu Jul 17 2014 Colin Walters <walters at verbum.org> 0-0.0.git3be59ce
+- Initial package
diff --git a/sources b/sources
index e69de29..dabf2ef 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+951701e4d9af692f818c1590754043b3 golang-github-rcrowley-go-metrics-3be59ceb5538550555459fb77d0efe0e218cdfc7.tar.gz
More information about the scm-commits
mailing list