From 4392aa97db01f1c6e93fd2cfc5eb0b0346419690 Mon Sep 17 00:00:00 2001 From: Jan Chaloupka Date: Jun 28 2018 10:54:19 +0000 Subject: Upload glide files --- diff --git a/.gitignore b/.gitignore index ffe5f37..0a53935 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -/go-metrics-dee209f.tar.gz +/go-metrics-dee209f2455f101a5e4e593dea94872d2c62d85d.tar.gz diff --git a/glide.lock b/glide.lock new file mode 100644 index 0000000..237d883 --- /dev/null +++ b/glide.lock @@ -0,0 +1,10 @@ +hash: 2fde1cf6ebde7b88bd4fd37e0ccd095573b65966cc9e6c5e4fa605d94b99bc02 +imports: +- name: github.com/influxdb/influxdb + subpackages: + - client + version: b611d020cd78886232cfa6c2ea0606b49d307ed2 +- name: github.com/stathat/go + version: 01d012b9ee2ecc107cb28b6dd32d9019ed5c1d77 +updated: '2018-06-28T10:37:26.147406+00:00' + diff --git a/glide.yaml b/glide.yaml new file mode 100644 index 0000000..aca853c --- /dev/null +++ b/glide.yaml @@ -0,0 +1,9 @@ +import: +- package: github.com/influxdb/influxdb + subpackages: + - client + version: b611d020cd78886232cfa6c2ea0606b49d307ed2 +- package: github.com/stathat/go + version: 01d012b9ee2ecc107cb28b6dd32d9019ed5c1d77 +package: github.com/rcrowley/go-metrics + diff --git a/golang-github-rcrowley-go-metrics.spec b/golang-github-rcrowley-go-metrics.spec index efbcff2..c5225c5 100644 --- a/golang-github-rcrowley-go-metrics.spec +++ b/golang-github-rcrowley-go-metrics.spec @@ -1,182 +1,55 @@ -%if 0%{?fedora} || 0%{?rhel} == 6 -%global with_devel 1 -%global with_bundled 0 -%global with_debug 0 -# Test failed in koji: meter_test.go:35: m.RateMean() didn't decrease -%global with_check 0 -%global with_unit_test 1 -%else -%global with_devel 0 -%global with_bundled 0 -%global with_debug 0 -%global with_check 0 -%global with_unit_test 0 -%endif - -%if 0%{?with_debug} -%global _dwz_low_mem_die_limit 0 -%else -%global debug_package %{nil} -%endif - -%define copying() \ -%if 0%{?fedora} >= 21 || 0%{?rhel} >= 7 \ -%license %{*} \ -%else \ -%doc %{*} \ -%endif - -%global provider github -%global provider_tld com -%global project rcrowley -%global repo go-metrics -# https://github.com/rcrowley/go-metrics -%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo} -%global import_path %{provider_prefix} +# http://github.com/rcrowley/go-metrics + +%global goipath github.com/rcrowley/go-metrics %global commit dee209f2455f101a5e4e593dea94872d2c62d85d -%global shortcommit %(c=%{commit}; echo ${c:0:7}) -Name: golang-%{provider}-%{project}-%{repo} + +%gometa -i + +Name: golang-github-rcrowley-go-metrics Version: 0 -Release: 0.12.git%{shortcommit}%{?dist} +Release: 0.13%{?dist} Summary: Go port of Coda Hales Metrics library License: BSD -URL: https://%{provider_prefix} -Source0: https://%{provider_prefix}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz - -# If go_arches not defined fall through to implicit golang archs -%if 0%{?go_arches:1} -ExclusiveArch: %{go_arches} -%else -ExclusiveArch: %{ix86} x86_64 %{arm} -%endif -# If gccgo_arches does not fit or is not defined fall through to golang -%ifarch 0%{?gccgo_arches} -BuildRequires: gcc-go >= %{gccgo_min_vers} -%else -BuildRequires: golang -%endif +URL: %{gourl} +Source0: %{gosource} +Source1: glide.yaml +Source2: glide.yaml %description Go port of Coda Hales Metrics library -%if 0%{?with_devel} %package devel Summary: %{summary} BuildArch: noarch -%if 0%{?with_check} BuildRequires: golang(github.com/influxdb/influxdb/client) BuildRequires: golang(github.com/stathat/go) -%endif - -Requires: golang(github.com/influxdb/influxdb/client) -Requires: golang(github.com/stathat/go) - -Provides: golang(%{import_path}) = %{version}-%{release} -Provides: golang(%{import_path}/influxdb) = %{version}-%{release} -Provides: golang(%{import_path}/librato) = %{version}-%{release} -Provides: golang(%{import_path}/stathat) = %{version}-%{release} %description devel %{summary} This package contains library source intended for building other packages which use import path with -%{import_path} prefix. -%endif - -%if 0%{?with_unit_test} -%package unit-test -Summary: Unit tests for %{name} package -# If go_arches not defined fall through to implicit golang archs -%if 0%{?go_arches:1} -ExclusiveArch: %{go_arches} -%else -ExclusiveArch: %{ix86} x86_64 %{arm} -%endif -# If gccgo_arches does not fit or is not defined fall through to golang -%ifarch 0%{?gccgo_arches} -BuildRequires: gcc-go >= %{gccgo_min_vers} -%else -BuildRequires: golang -%endif - -%if 0%{?with_check} -#Here comes all BuildRequires: PACKAGE the unit tests -#in %%check section need for running -%endif - -# test subpackage tests code from devel subpackage -Requires: %{name}-devel = %{version}-%{release} - -%description unit-test -%{summary} - -This package contains unit tests for project -providing packages with %{import_path} prefix. -%endif +%{goipath} prefix. %prep -%setup -q -n %{repo}-%{commit} - -%build -# the ./cmd pieces are presently examples - +%gosetup -q +cp %{SOURCE1} %{SOURCE2} . %install -# source codes for building projects -%if 0%{?with_devel} -install -d -p %{buildroot}/%{gopath}/src/%{import_path}/ -# find all *.go but no *_test.go files and generate devel.file-list -for file in $(find . -iname "*.go" \! -iname "*_test.go") ; do - install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$(dirname $file) - cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file - echo "%%{gopath}/src/%%{import_path}/$file" >> devel.file-list -done -%endif - -# testing files for this project -%if 0%{?with_unit_test} -install -d -p %{buildroot}/%{gopath}/src/%{import_path}/ -# find all *_test.go files and generate unit-test.file-list -for file in $(find . -iname "*_test.go"); do - install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$(dirname $file) - cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file - echo "%%{gopath}/src/%%{import_path}/$file" >> unit-test.file-list -done -%endif +%goinstall glide.lock glide.yaml %check -%if 0%{?with_check} && 0%{?with_unit_test} && 0%{?with_devel} -%ifarch 0%{?gccgo_arches} -function gotest { %{gcc_go_test} "$@"; } -%else -%if 0%{?golang_test:1} -function gotest { %{golang_test} "$@"; } -%else -function gotest { go test "$@"; } -%endif -%endif - -export GOPATH=%{buildroot}/%{gopath}:%{gopath} -gotest %{import_path} -%endif - -%if 0%{?with_devel} -%files devel -f devel.file-list -%copying LICENSE -%doc memory.md README.md -%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project} -%dir %{gopath}/src/%{import_path} -%endif +%gochecks -d . -%if 0%{?with_unit_test} -%files unit-test -f unit-test.file-list -%copying LICENSE +%files devel -f devel.file-list +%license LICENSE %doc memory.md README.md -%endif %changelog +* Thu Jun 28 2018 Jan Chaloupka - 0-0.13.gitdee209f +- Upload glide files + * Wed Feb 07 2018 Fedora Release Engineering - 0-0.12.gitdee209f - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild diff --git a/sources b/sources index c281624..46fd955 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -e5b6e19362605db78e222a1f8776f50c go-metrics-dee209f.tar.gz +SHA512 (go-metrics-dee209f2455f101a5e4e593dea94872d2c62d85d.tar.gz) = ed93f768f8acfa667e1d484551c72f0452e5e00f1337b54f202fc054a1c4ce0814f1cb546b6aabc0e5db81e75e03c663c2ab6ce46362558c6ecad171ba5ef652