The package rpms/golang-github-prometheus-client_model.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-prometheus-client_m....
Change:
-ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 aarch64 %{arm}}
Thanks.
Full change:
============
commit 1ba08a088bd49f9e970818c4509283b83399dd4e
Author: Paul Gier <pgier(a)redhat.com>
Date: Fri May 25 11:19:29 2018 -0500
Update to latest snapshot version 99fa1f4be8e564e8a6b613da7fa6f46c9edafc6c
Update spec to current Go packaging standards
diff --git a/.gitignore b/.gitignore
index 3457052..a99c1cb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
/client_model-6f38060.tar.gz
+/client_model-99fa1f4be8e564e8a6b613da7fa6f46c9edafc6c.tar.gz
diff --git a/golang-github-prometheus-client_model.spec
b/golang-github-prometheus-client_model.spec
index 5aaf164..96eb8d7 100644
--- a/golang-github-prometheus-client_model.spec
+++ b/golang-github-prometheus-client_model.spec
@@ -1,162 +1,58 @@
-# If any of the following macros should be set otherwise,
-# you can wrap any of them with the following conditions:
-# - %%if 0%%{centos} == 7
-# - %%if 0%%{?rhel} == 7
-# - %%if 0%%{?fedora} == 23
-# Or just test for particular distribution:
-# - %%if 0%%{centos}
-# - %%if 0%%{?rhel}
-# - %%if 0%%{?fedora}
-#
-# Be aware, on centos, both %%rhel and %%centos are set. If you want to test
-# rhel specific macros, you can use %%if 0%%{?rhel} && 0%%{?centos} == 0
condition.
-# (Don't forget to replace double percentage symbol with single one in order to apply
a condition)
-
-# Generate devel rpm
-%global with_devel 1
-# Build project from bundled dependencies
-%global with_bundled 0
-# Build with debug info rpm
-%global with_debug 0
-# Run tests in check section
-%global with_check 0
-# Generate unit-test rpm
-%global with_unit_test 0
-
-%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 prometheus
-%global repo client_model
-#
https://github.com/prometheus/client_model
-%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
-%global import_path %{provider_prefix}
-%global commit 6f3806018612930941127f2a7c6c453ba2c527d2
-%global shortcommit %(c=%{commit}; echo ${c:0:7})
-
-Name: golang-%{provider}-%{project}-%{repo}
-Version: 0
-Release: 0.13.git%{shortcommit}%{?dist}
-Summary: Data model artifacts for Prometheus
-License: ASL 2.0
-URL: https://%{provider_prefix}
-Source0:
https://%{provider_prefix}/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 aarch64 %{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}
-
-%description
-%{summary}
+%bcond_without check
+%global goipath
github.com/prometheus/client_model
+%global commit 99fa1f4be8e564e8a6b613da7fa6f46c9edafc6c
-%if 0%{?with_devel}
-%package devel
-Summary: %{summary}
-BuildArch: noarch
-
-%if 0%{?with_check}
-BuildRequires:
golang(github.com/golang/protobuf/proto)
-%endif
+Version: 0
-Requires:
golang(github.com/golang/protobuf/proto)
+%global common_description %{expand:
+Data model artifacts for Prometheus.}
-Provides: golang(%{import_path}/go) = %{version}-%{release}
+%gometa
-%description devel
-%{summary}
+Name: %{goname}
+Release: 0.14%{?dist}
+Summary: Data model artifacts for Prometheus
+License: ASL 2.0
+URL: %{gourl}
+Source: %{gosource}
-This package contains library source intended for
-building other packages which use import path with
-%{import_path} prefix.
-%endif
+BuildRequires:
golang(github.com/golang/protobuf/proto)
-%if 0%{?with_unit_test}
-%package unit-test
-Summary: Unit tests for %{name} package
-%if 0%{?with_check}
-#Here comes all BuildRequires: PACKAGE the unit tests
-#in %%check section need for running
-%endif
+%description
+%{common_description}
-# test subpackage tests code from devel subpackage
-Requires: %{name}-devel = %{version}-%{release}
+%package devel
+Summary: %{summary}
+BuildArch: noarch
-%description unit-test
-%{summary}
+%description devel
+%{common_description}
-This package contains unit tests for project
-providing packages with %{import_path} prefix.
-%endif
+This package contains the source code needed for building packages that import
+the %{goipath} Go namespace.
%prep
-%setup -q -n %{repo}-%{commit}
-
-%build
+%gosetup -q
+rm -rf vendor
%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
%check
-%if 0%{?with_check} && 0%{?with_unit_test} && 0%{?with_devel}
-%if ! 0%{?with_bundled}
-export GOPATH=%{buildroot}/%{gopath}:%{gopath}
-%else
-# No dependency directories so far
-
-export GOPATH=%{buildroot}/%{gopath}:%{gopath}
-%endif
-
-%if ! 0%{?gotest:1}
-%global gotest go test
+%if %{with check}
+ %gochecks
%endif
-%endif
-
-#define license tag if not already defined
-%{!?_licensedir:%global license %doc}
-
-%if 0%{?with_devel}
%files devel -f devel.file-list
-%license LICENSE
-%doc *.md
-%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
-%dir %{gopath}/src/%{import_path}
-%endif
-
-%if 0%{?with_unit_test}
-%files unit-test -f unit-test.file-list
-%license LICENSE
-%doc *.md
-%endif
+%license LICENSE NOTICE
+%doc CONTRIBUTING.md MAINTAINERS.md README.md
%changelog
+* Fri May 25 2018 Paul Gier <pgier(a)redhat.com> - 0-0.14.20180525git99fa1f4
+- Update to latest snapshot version 99fa1f4be8e564e8a6b613da7fa6f46c9edafc6c
+- Update spec to current Go packaging standards
+
* Wed Feb 07 2018 Fedora Release Engineering <releng(a)fedoraproject.org> -
0-0.13.git6f38060
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
diff --git a/sources b/sources
index db0737e..92d01f5 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (client_model-6f38060.tar.gz) =
5991a5cdb1f1a5f6d67d325e4db37cb8b6994909bbebefdd454a4e42b08271a40b163b56191b45b8c27e5c3e6cfe430354ee13bb38643041e4a17792d59d96bf
+SHA512 (client_model-99fa1f4be8e564e8a6b613da7fa6f46c9edafc6c.tar.gz) =
99bc72ca0887df4c7ab5a006af9c59afdc1281fe6d6d17f2897428a06da80d63d6ccd476deacb933cb208357500f14a7b96e99b9c5a7582e65a7aae87aaf2c50