commit 36bf90cfd1ee685c975c858bd3ad638add18a990
Author: Jan Chaloupka <[email protected]>
Date: Mon Jan 12 13:08:39 2015 +0100
Bump to dee209f2455f101a5e4e593dea94872d2c62d85d
Add missing provides
- related: #1120867
.gitignore | 1 +
golang-github-rcrowley-go-metrics.spec | 81 ++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 83 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..ffe5f37 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/go-metrics-dee209f.tar.gz
diff --git a/golang-github-rcrowley-go-metrics.spec
b/golang-github-rcrowley-go-metrics.spec
new file mode 100644
index 0000000..8a25d1b
--- /dev/null
+++ b/golang-github-rcrowley-go-metrics.spec
@@ -0,0 +1,81 @@
+%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 dee209f2455f101a5e4e593dea94872d2c62d85d
+%global shortcommit %(c=%{commit}; echo ${c:0:7})
+
+Name: golang-%{provider}-%{project}-%{repo}
+Version: 0
+Release: 0.2.git%{shortcommit}%{?dist}
+Summary: Go port of Coda Hales Metrics library
+License: BSD
+URL: https://%{import_path}
+Source0:
https://%{import_path}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
+%if 0%{?fedora} >= 19 || 0%{?rhel} >= 7
+BuildArch: noarch
+%else
+ExclusiveArch: %{ix86} x86_64 %{arm}
+%endif
+
+%description
+Go port of Coda Hales Metrics library
+
+%package devel
+BuildRequires: golang >= 1.2.1-3
+BuildRequires: golang(github.com/influxdb/influxdb/client)
+BuildRequires: golang(github.com/stathat/go)
+Requires: golang >= 1.2.1-3
+Requires: golang(github.com/influxdb/influxdb/client)
+Requires: golang(github.com/stathat/go)
+Summary: Go port of Coda Hales Metrics library
+Provides: golang(%{import_path}) = %{version}-%{release}
+Provides: golang(%{import_path}/stathat) = %{version}-%{release}
+Provides: golang(%{import_path}/librato) = %{version}-%{release}
+Provides: golang(%{import_path}/influxdb) = %{version}-%{release}
+Provides: golang(%{import_path}/cmd/never-read) = %{version}-%{release}
+Provides: golang(%{import_path}/cmd/metrics-bench) =
%{version}-%{release}
+Provides: golang(%{import_path}/cmd/metrics-example) =
%{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}
+cp -rpav stathat %{buildroot}/%{gopath}/src/%{import_path}/
+cp -rpav librato %{buildroot}/%{gopath}/src/%{import_path}/
+cp -rpav influxdb %{buildroot}/%{gopath}/src/%{import_path}/
+cp -rpav cmd %{buildroot}/%{gopath}/src/%{import_path}/
+
+%check
+GOPATH=%{buildroot}/%{gopath}:%{gopath} go test %{import_path}
+
+%files devel
+%doc LICENSE README.md
+%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
+%{gopath}/src/%{import_path}
+
+%changelog
+* Mon Jan 12 2015 jchaloup <[email protected]> - 0-0.2.gitdee209f
+- Bump to dee209f2455f101a5e4e593dea94872d2c62d85d
+ adding missing provides
+ related: #1120867
+
+* Fri Sep 19 2014 Lokesh Mandvekar <[email protected]> - 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 <[email protected]> 0-0.0.git3be59ce
+- Initial package
diff --git a/sources b/sources
index e69de29..c281624 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+e5b6e19362605db78e222a1f8776f50c go-metrics-dee209f.tar.gz
_______________________________________________
golang mailing list
[email protected]
https://lists.fedoraproject.org/mailman/listinfo/golang