commit 759065e83550fce732fc25f78771af215791b937
Author: Jan Chaloupka <[email protected]>
Date: Mon Jan 12 13:08:39 2015 +0100
Bump to dee209f2455f101a5e4e593dea94872d2c62d85d
Add missing provides
- related: #1120867
.gitignore | 2 +-
golang-github-rcrowley-go-metrics.spec | 35 +++++++++++++++++++++++++------
sources | 2 +-
3 files changed, 30 insertions(+), 9 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 2256b88..ffe5f37 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1 @@
-/golang-github-rcrowley-go-metrics-3be59ceb5538550555459fb77d0efe0e218cdfc7.tar.gz
+/go-metrics-dee209f.tar.gz
diff --git a/golang-github-rcrowley-go-metrics.spec
b/golang-github-rcrowley-go-metrics.spec
index 5ff7ed2..8a25d1b 100644
--- a/golang-github-rcrowley-go-metrics.spec
+++ b/golang-github-rcrowley-go-metrics.spec
@@ -4,26 +4,41 @@
%global repo go-metrics
%global project rcrowley
%global import_path %{provider}.%{provider_tld}/%{project}/%{repo}
-%global commit 3be59ceb5538550555459fb77d0efe0e218cdfc7
+%global commit dee209f2455f101a5e4e593dea94872d2c62d85d
%global shortcommit %(c=%{commit}; echo ${c:0:7})
Name: golang-%{provider}-%{project}-%{repo}
Version: 0
-Release: 0.1.git%{shortcommit}%{?dist}
+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}/%{name}-%{commit}.tar.gz
+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
@@ -38,8 +53,10 @@ BuildArch: noarch
%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
+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}
@@ -47,10 +64,14 @@ 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
+%{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
diff --git a/sources b/sources
index dabf2ef..c281624 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-951701e4d9af692f818c1590754043b3
golang-github-rcrowley-go-metrics-3be59ceb5538550555459fb77d0efe0e218cdfc7.tar.gz
+e5b6e19362605db78e222a1f8776f50c go-metrics-dee209f.tar.gz
_______________________________________________
golang mailing list
[email protected]
https://lists.fedoraproject.org/mailman/listinfo/golang