The package rpms/golang-github-grpc-ecosystem-grpc-gateway.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-grpc-ecosystem-grpc-ga....
Change: -ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 aarch64 %{arm}}
Thanks.
Full change: ============
commit 9c4983c7b2897801e6024cd9d3079a80549de6b0 Author: Jan Chaloupka jchaloup@redhat.com Date: Fri Feb 23 14:34:22 2018 +0100
Autogenerate some parts using the new macros
diff --git a/golang-github-grpc-ecosystem-grpc-gateway.spec b/golang-github-grpc-ecosystem-grpc-gateway.spec index 2fd2bf1..c949911 100644 --- a/golang-github-grpc-ecosystem-grpc-gateway.spec +++ b/golang-github-grpc-ecosystem-grpc-gateway.spec @@ -1,71 +1,29 @@ -# 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 1 -# Generate unit-test rpm -%global with_unit_test 1 - -%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 grpc-ecosystem -%global repo grpc-gateway -# https://github.com/grpc-ecosystem/grpc-gateway -%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo} -%global import_path %{provider_prefix} +%global provider_prefix github.com/grpc-ecosystem/grpc-gateway +%global gobaseipath %{provider_prefix} %global commit 18d159699f2e83fc5bb9ef2f79465ca3f3122676 -%global shortcommit %(c=%{commit}; echo ${c:0:7}) +%global commitdate 20161116 +%global __go_ignore_trees %{gobaseipath}/examples
-Name: golang-%{provider}-%{project}-%{repo} +%gocraftmeta -i + +#Name: golang-%{provider}-%{project}-%{repo} +Name: golang-github-grpc-ecosystem-grpc-gateway Version: 1.0.0 -Release: 0.8.git%{shortcommit}%{?dist} +Release: 0.9.%{commitdate}git%{shortcommit}%{?dist} Summary: GRPC to JSON proxy generator # Detected licences # - BSD (3 clause) at 'LICENSE.txt' License: BSD -URL: https://%%7Bprovider_prefix%7D -Source0: https://%%7Bprovider_prefix%7D/archive/%%7Bcommit%7D/%%7Brepo%7D-%%7Bshortco... - -# 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} - - +URL: %{gourl} +Source0: %{gosource}
%description %{summary}
-%if 0%{?with_devel} %package devel Summary: %{summary} BuildArch: noarch
-%if 0%{?with_check} && ! 0%{?with_bundled} BuildRequires: golang(github.com/golang/glog) BuildRequires: golang(github.com/golang/protobuf/jsonpb) BuildRequires: golang(github.com/golang/protobuf/proto) @@ -80,151 +38,39 @@ BuildRequires: golang(google.golang.org/grpc) BuildRequires: golang(google.golang.org/grpc/codes) BuildRequires: golang(google.golang.org/grpc/grpclog) BuildRequires: golang(google.golang.org/grpc/metadata) -%endif - -Requires: golang(github.com/golang/glog) -Requires: golang(github.com/golang/protobuf/jsonpb) -Requires: golang(github.com/golang/protobuf/proto) -Requires: golang(github.com/golang/protobuf/protoc-gen-go/descriptor) -Requires: golang(github.com/golang/protobuf/protoc-gen-go/generator) -Requires: golang(github.com/golang/protobuf/protoc-gen-go/plugin) -Requires: golang(github.com/golang/protobuf/ptypes/empty) -Requires: golang(github.com/golang/protobuf/ptypes/timestamp) -Requires: golang(golang.org/x/net/context) -Requires: golang(google.golang.org/genproto/googleapis/api/annotations) -Requires: golang(google.golang.org/grpc) -Requires: golang(google.golang.org/grpc/codes) -Requires: golang(google.golang.org/grpc/grpclog) -Requires: golang(google.golang.org/grpc/metadata) - -Provides: golang(%{import_path}/protoc-gen-grpc-gateway/descriptor) = %{version}-%{release} -Provides: golang(%{import_path}/protoc-gen-grpc-gateway/generator) = %{version}-%{release} -Provides: golang(%{import_path}/protoc-gen-grpc-gateway/gengateway) = %{version}-%{release} -Provides: golang(%{import_path}/protoc-gen-grpc-gateway/httprule) = %{version}-%{release} -Provides: golang(%{import_path}/protoc-gen-swagger/genswagger) = %{version}-%{release} -Provides: golang(%{import_path}/runtime) = %{version}-%{release} -Provides: golang(%{import_path}/utilities) = %{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-devel -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 - -# test subpackage tests code from devel subpackage -Requires: %{name}-devel = %{version}-%{release} - -%if 0%{?with_check} && ! 0%{?with_bundled} +# test dependencies BuildRequires: golang(github.com/golang/protobuf/ptypes/duration) BuildRequires: golang(github.com/golang/protobuf/ptypes/struct) BuildRequires: golang(github.com/golang/protobuf/ptypes/timestamp) BuildRequires: golang(github.com/golang/protobuf/ptypes/wrappers) -%endif - -Requires: golang(github.com/golang/protobuf/ptypes/duration) -Requires: golang(github.com/golang/protobuf/ptypes/struct) -Requires: golang(github.com/golang/protobuf/ptypes/timestamp) -Requires: golang(github.com/golang/protobuf/ptypes/wrappers)
-%description unit-test-devel +%description devel %{summary}
-This package contains unit tests for project -providing packages with %{import_path} prefix. -%endif +This package contains library source intended for +building other packages which use import path with +%{gobaseipath} prefix.
%prep -%setup -q -n %{repo}-%{commit} +%gosetup
-%build %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" | grep -v "Godeps/_workspace") ; do - dirprefix=$(dirname $file) - install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$dirprefix - cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file - echo "%%{gopath}/src/%%{import_path}/$file" >> devel.file-list - - while [ "$dirprefix" != "." ]; do - echo "%%dir %%{gopath}/src/%%{import_path}/$dirprefix" >> devel.file-list - dirprefix=$(dirname $dirprefix) - done -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-devel.file-list -for file in $(find . -iname "*_test.go" | grep -v "Godeps/_workspace") ; do - dirprefix=$(dirname $file) - install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$dirprefix - cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file - echo "%%{gopath}/src/%%{import_path}/$file" >> unit-test-devel.file-list - - while [ "$dirprefix" != "." ]; do - echo "%%dir %%{gopath}/src/%%{import_path}/$dirprefix" >> devel.file-list - dirprefix=$(dirname $dirprefix) - done -done -%endif - -%if 0%{?with_devel} -sort -u -o devel.file-list devel.file-list -%endif +%goinstall runtime/internal/stream_chunk.proto examples
%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}/protoc-gen-grpc-gateway/descriptor -%gotest %{import_path}/protoc-gen-grpc-gateway/gengateway -%gotest %{import_path}/protoc-gen-grpc-gateway/httprule -%gotest %{import_path}/protoc-gen-swagger/genswagger -#%gotest %{import_path}/runtime -%gotest %{import_path}/utilities -%endif +%gochecks
#define license tag if not already defined %{!?_licensedir:%global license %doc}
- -%if 0%{?with_devel} %files devel -f devel.file-list %license LICENSE.txt %doc README.md -%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project} -%endif - -%if 0%{?with_unit_test} && 0%{?with_devel} -%files unit-test-devel -f unit-test-devel.file-list -%license LICENSE.txt -%doc README.md -%endif
%changelog +* Tue Feb 20 2018 Jan Chaloupka jchaloup@redhat.com - 1.0.0-0.9.git18d1596 +- Autogenerate some parts using the new macros + * Wed Feb 07 2018 Fedora Release Engineering releng@fedoraproject.org - 1.0.0-0.8.git18d1596 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
arch-excludes@lists.fedoraproject.org