The package rpms/golang-github-armon-go-metrics.git has added or updated architecture
specific content in its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/golang-github-armon-go-metrics.gi....
Change:
-ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 %{arm}}
Thanks.
Full change:
============
commit a846c2ae0a18fcb601389f5f1bfc47a2a42f27e9
Author: Jan Chaloupka <jchaloup(a)redhat.com>
Date: Fri Jun 8 17:35:19 2018 +0200
Update to spec 3.0
Upload glide.lock and glide.yaml
diff --git a/.gitignore b/.gitignore
index e010b7f..48e13a9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1 @@
-/go-metrics-6c5fa0d.tar.gz
+/go-metrics-6c5fa0d8f48f4661c9ba8709799c88d425ad20f0.tar.gz
diff --git a/glide.lock b/glide.lock
new file mode 100644
index 0000000..dd99841
--- /dev/null
+++ b/glide.lock
@@ -0,0 +1,33 @@
+hash: 1a7b1aaf9e64877da9e112bf0b353326b1f11e9c04db147ed0c3c20ae1a284ab
+imports:
+- name:
github.com/golang/protobuf
+ subpackages:
+ - proto
+ version: 73aaaa9eb61d74fbf7e256ca586a3a565b308eea
+- name:
bitbucket.org/ww/goautoneg
+ version: 75cd24fc2f2c2a2088577d12123ddee5f54e0675
+- name:
github.com/prometheus/client_golang
+ subpackages:
+ - text
+ - prometheus
+ - model
+ version: 223315ae31c83f5b3446320627dadfa60614a3e3
+- name:
github.com/matttproud/golang_protobuf_extensions
+ subpackages:
+ - pbutil
+ version: fc2b8d3a73c4867e51861bbdd5ae3c1f0869dd6a
+- name:
github.com/beorn7/perks
+ subpackages:
+ - quantile
+ version: b965b613227fddccbfffe13eae360ed3fa822f8d
+- name:
github.com/prometheus/client_model
+ subpackages:
+ - go
+ version: fa8ad6fec33561be4280a8f0514318c79d7f6cb6
+- name:
github.com/DataDog/datadog-go
+ subpackages:
+ - statsd
+ version: a27810dd518c69be741a7fd5d0e39f674f615be8
+- name:
github.com/prometheus/procfs
+ version: c91d8eefde16bd047416409eb56353ea84a186e4
+updated: '2018-06-08T15:32:30.409033+00:00'
diff --git a/glide.yaml b/glide.yaml
new file mode 100644
index 0000000..0eff11b
--- /dev/null
+++ b/glide.yaml
@@ -0,0 +1,33 @@
+import:
+- package:
github.com/golang/protobuf
+ subpackages:
+ - proto
+ version: 73aaaa9eb61d74fbf7e256ca586a3a565b308eea
+- package:
bitbucket.org/ww/goautoneg
+ version: 75cd24fc2f2c2a2088577d12123ddee5f54e0675
+- package:
github.com/prometheus/client_golang
+ subpackages:
+ - text
+ - prometheus
+ - model
+ version: 223315ae31c83f5b3446320627dadfa60614a3e3
+- package:
github.com/matttproud/golang_protobuf_extensions
+ subpackages:
+ - pbutil
+ version: fc2b8d3a73c4867e51861bbdd5ae3c1f0869dd6a
+- package:
github.com/beorn7/perks
+ subpackages:
+ - quantile
+ version: b965b613227fddccbfffe13eae360ed3fa822f8d
+- package:
github.com/prometheus/client_model
+ subpackages:
+ - go
+ version: fa8ad6fec33561be4280a8f0514318c79d7f6cb6
+- package:
github.com/DataDog/datadog-go
+ subpackages:
+ - statsd
+ version: a27810dd518c69be741a7fd5d0e39f674f615be8
+- package:
github.com/prometheus/procfs
+ version: c91d8eefde16bd047416409eb56353ea84a186e4
+package:
github.com/armon/go-metrics
+
diff --git a/golang-github-armon-go-metrics.spec b/golang-github-armon-go-metrics.spec
index 03a5fda..1868431 100644
--- a/golang-github-armon-go-metrics.spec
+++ b/golang-github-armon-go-metrics.spec
@@ -1,18 +1,18 @@
#
https://github.com/armon/go-metrics
-%global provider_prefix
github.com/armon/go-metrics
-%global gobaseipath %{provider_prefix}
+%global goipath
github.com/armon/go-metrics
%global commit 6c5fa0d8f48f4661c9ba8709799c88d425ad20f0
-%global commitdate 20150820
-%gocraftmeta -i
+%gometa -i
Name: %{goname}
Version: 0
-Release: 0.13.%{commitdate}git%{shortcommit}%{?dist}
+Release: 0.14%{?dist}
Summary: Exporting performance and runtime metrics to external metrics systems
License: MIT
URL: %{gourl}
Source0: %{gosource}
+Source1: glide.lock
+Source2: glide.yaml
%description
%{summary}
@@ -29,25 +29,27 @@ BuildRequires:
golang(github.com/DataDog/datadog-go/statsd)
This package contains library source intended for
building other packages which use import path with
-%{gobaseipath} prefix.
+%{goipath} prefix.
%prep
%gosetup
+cp %{SOURCE1} %{SOURCE2} .
%install
-%goinstall
+%goinstall glide.lock glide.yaml
%check
-%gochecks %{gobaseipath}
-
-#define license tag if not already defined
-%{!?_licensedir:%global license %doc}
+%gochecks -d .
%files devel -f devel.file-list
%license LICENSE
%doc README.md
%changelog
+* Fri Jun 08 2018 Jan Chaloupka <jchaloup(a)redhat.com> - 0-0.14.git6c5fa0d
+- Update to spec 3.0
+ Upload glide.lock and glide.yaml
+
* Wed Feb 28 2018 Jan Chaloupka <jchaloup(a)redhat.com> - 0-0.13.20150820git6c5fa0d
- Autogenerate some parts using the new macros
diff --git a/sources b/sources
index 8596bef..e38122e 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-c935b6c63703e4e7df12249e6d49ea08 go-metrics-6c5fa0d.tar.gz
+SHA512 (go-metrics-6c5fa0d8f48f4661c9ba8709799c88d425ad20f0.tar.gz) =
4731770d959dd23dca0c3917c37d5cd68032e8ef00f63b2521f5816c8fc03e74149b58924cea8a42a217648e5c052eea67b5e261fe62727ac032fcd2832e05ab
commit 56359e4c77dd479200602ac92db049ef272f55a6
Author: Jan Chaloupka <jchaloup(a)redhat.com>
Date: Wed Feb 28 08:33:19 2018 +0100
Autogenerate some parts using the new macros
diff --git a/golang-github-armon-go-metrics.spec b/golang-github-armon-go-metrics.spec
index f8276cf..03a5fda 100644
--- a/golang-github-armon-go-metrics.spec
+++ b/golang-github-armon-go-metrics.spec
@@ -1,164 +1,56 @@
-%if 0%{?fedora} || 0%{?rhel} == 6
-%global with_devel 1
-%global with_bundled 0
-%global with_debug 0
-# Tests require configured server statsite
-%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
-
-%global provider github
-%global provider_tld com
-%global project armon
-%global repo go-metrics
#
https://github.com/armon/go-metrics
-%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
-%global import_path %{provider_prefix}
+%global provider_prefix
github.com/armon/go-metrics
+%global gobaseipath %{provider_prefix}
%global commit 6c5fa0d8f48f4661c9ba8709799c88d425ad20f0
-%global shortcommit %(c=%{commit}; echo ${c:0:7})
+%global commitdate 20150820
-Name: golang-%{provider}-%{project}-%{repo}
+%gocraftmeta -i
+
+Name: %{goname}
Version: 0
-Release: 0.12.git%{shortcommit}%{?dist}
+Release: 0.13.%{commitdate}git%{shortcommit}%{?dist}
Summary: Exporting performance and runtime metrics to external metrics systems
License: MIT
-URL: https://%{import_path}
-Source0: https://%{import_path}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
-
-# e.g. el6 has ppc64 arch without gcc-go, so EA tag is required
-ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 %{arm}}
-# If go_compiler is not set to 1, there is no virtual provide. Use golang instead.
-BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang}
+URL: %{gourl}
+Source0: %{gosource}
%description
%{summary}
-%if 0%{?with_devel}
%package devel
Summary: %{summary}
BuildArch: noarch
-%if 0%{?with_check}
BuildRequires:
golang(github.com/prometheus/client_golang/prometheus)
BuildRequires:
golang(github.com/DataDog/datadog-go/statsd)
-%endif
-
-Requires:
golang(github.com/prometheus/client_golang/prometheus)
-Requires:
golang(github.com/DataDog/datadog-go/statsd)
-
-
-Provides: golang(%{import_path}) = %{version}-%{release}
-Provides: golang(%{import_path}/prometheus) = %{version}-%{release}
-Provides: golang(%{import_path}/datadog) = %{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} && 0%{?with_devel}
-%package unit-test
-Summary: Unit tests for %{name} package
-# If go_compiler is not set to 1, there is no virtual provide. Use golang instead.
-BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang}
-
-%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
+%{gobaseipath} prefix.
%prep
-%setup -q -n %{repo}-%{commit}
-
-%build
+%gosetup
%install
-# source codes for building projects
-%if 0%{?with_devel}
-install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
-echo "%%dir %%{gopath}/src/%%{import_path}/." >> devel.file-list
-# find all *.go but no *_test.go files and generate devel.file-list
-for file in $(find . -iname "*.go" \! -iname "*_test.go") ; do
- echo "%%dir %%{gopath}/src/%%{import_path}/$(dirname $file)" >>
devel.file-list
- 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} && 0%{?with_devel}
-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
- echo "%%dir %%{gopath}/src/%%{import_path}/$(dirname $file)" >>
devel.file-list
- 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
-
-%if 0%{?with_devel}
-sort -u -o devel.file-list devel.file-list
-%endif
+%goinstall
%check
-%if 0%{?with_check} && 0%{?with_unit_test} && 0%{?with_devel}
-%if ! 0%{?with_bundled}
-export GOPATH=%{buildroot}/%{gopath}:%{gopath}
-%else
-export GOPATH=%{buildroot}/%{gopath}:$(pwd)/Godeps/_workspace:%{gopath}
-%endif
-
-%if ! 0%{?gotest:1}
-%global gotest go test
-%endif
-
-%gotest %{import_path}
-%endif
+%gochecks %{gobaseipath}
#define license tag if not already defined
%{!?_licensedir:%global license %doc}
-%if 0%{?with_devel}
%files devel -f devel.file-list
%license LICENSE
%doc README.md
-%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
-%endif
-
-%if 0%{?with_unit_test} && 0%{?with_devel}
-%files unit-test -f unit-test.file-list
-%license LICENSE
-%doc README.md
-%endif
%changelog
+* Wed Feb 28 2018 Jan Chaloupka <jchaloup(a)redhat.com> - 0-0.13.20150820git6c5fa0d
+- Autogenerate some parts using the new macros
+
* Wed Feb 07 2018 Fedora Release Engineering <releng(a)fedoraproject.org> -
0-0.12.git6c5fa0d
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild