The package rpms/golang-googlecode-goprotobuf.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-googlecode-goprotobuf.git/com....
Change: -ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 aarch64 %{arm}}
Thanks.
Full change: ============
commit f52a6ceb075893ce6f97a5477c6f6944002a1e3c Author: Jan Chaloupka jchaloup@redhat.com Date: Tue Feb 20 23:03:09 2018 +0100
Autogenerate some parts using the new macros
diff --git a/golang-googlecode-goprotobuf.spec b/golang-googlecode-goprotobuf.spec index 59180b2..bc953a3 100644 --- a/golang-googlecode-goprotobuf.spec +++ b/golang-googlecode-goprotobuf.spec @@ -1,62 +1,18 @@ -# 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 - -%if ! 0%{?gobuild:1} -%define gobuild(o:) go build -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \n')" -a -v -x %{?**}; -%endif - -%global provider github -%global provider_tld com -%global project golang -%global repo protobuf -# https://github.com/golang/protobuf -%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo} -%global import_path %{provider_prefix} +%global provider_prefix github.com/golang/protobuf %global commit 24f28ae800abfde9310e779f94be606b1a98a3fc -%global shortcommit %(c=%{commit}; echo ${c:0:7}) +%global commitdate 20161116 +%global gobaseipath %{provider_prefix} +%global __go_ignore_regex /testdata
-%global simport_path code.google.com/p/goprotobuf +%gocraftmeta -i
Name: golang-googlecode-goprotobuf Version: 0 -Release: 0.31.git%{shortcommit}%{?dist} +Release: 0.32.%{commitdate}git%{shortcommit}%{?dist} Summary: Go support for Google protocol buffers 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
Requires: protobuf Provides: protoc-gen-go = %{version}-%{release} @@ -68,53 +24,10 @@ and manage protocol buffers.
Install %{name}-devel for the associated support library.
-%if 0%{?with_devel} %package devel Summary: %{summary} BuildArch: noarch
-%if 0%{?with_check} -%endif - -Provides: golang(%{import_path}/jsonpb) = %{version}-%{release} -Provides: golang(%{import_path}/jsonpb/jsonpb_test_proto) = %{version}-%{release} -Provides: golang(%{import_path}/proto) = %{version}-%{release} -Provides: golang(%{import_path}/proto/proto3_proto) = %{version}-%{release} -Provides: golang(%{import_path}/proto/testdata) = %{version}-%{release} -Provides: golang(%{import_path}/protoc-gen-go) = %{version}-%{release} -Provides: golang(%{import_path}/protoc-gen-go/descriptor) = %{version}-%{release} -Provides: golang(%{import_path}/protoc-gen-go/generator) = %{version}-%{release} -Provides: golang(%{import_path}/protoc-gen-go/grpc) = %{version}-%{release} -Provides: golang(%{import_path}/protoc-gen-go/plugin) = %{version}-%{release} -Provides: golang(%{import_path}/protoc-gen-go/testdata/my_test) = %{version}-%{release} -Provides: golang(%{import_path}/ptypes) = %{version}-%{release} -Provides: golang(%{import_path}/ptypes/any) = %{version}-%{release} -Provides: golang(%{import_path}/ptypes/duration) = %{version}-%{release} -Provides: golang(%{import_path}/ptypes/empty) = %{version}-%{release} -Provides: golang(%{import_path}/ptypes/struct) = %{version}-%{release} -Provides: golang(%{import_path}/ptypes/timestamp) = %{version}-%{release} -Provides: golang(%{import_path}/ptypes/wrappers) = %{version}-%{release} - -# back compatibility -Provides: golang(%{simport_path}/jsonpb) = %{version}-%{release} -Provides: golang(%{simport_path}/jsonpb/jsonpb_test_proto) = %{version}-%{release} -Provides: golang(%{simport_path}/proto) = %{version}-%{release} -Provides: golang(%{simport_path}/proto/proto3_proto) = %{version}-%{release} -Provides: golang(%{simport_path}/proto/testdata) = %{version}-%{release} -Provides: golang(%{simport_path}/protoc-gen-go) = %{version}-%{release} -Provides: golang(%{simport_path}/protoc-gen-go/descriptor) = %{version}-%{release} -Provides: golang(%{simport_path}/protoc-gen-go/generator) = %{version}-%{release} -Provides: golang(%{simport_path}/protoc-gen-go/grpc) = %{version}-%{release} -Provides: golang(%{simport_path}/protoc-gen-go/plugin) = %{version}-%{release} -Provides: golang(%{simport_path}/protoc-gen-go/testdata/my_test) = %{version}-%{release} -Provides: golang(%{simport_path}/ptypes) = %{version}-%{release} -Provides: golang(%{simport_path}/ptypes/any) = %{version}-%{release} -Provides: golang(%{simport_path}/ptypes/duration) = %{version}-%{release} -Provides: golang(%{simport_path}/ptypes/empty) = %{version}-%{release} -Provides: golang(%{simport_path}/ptypes/struct) = %{version}-%{release} -Provides: golang(%{simport_path}/ptypes/timestamp) = %{version}-%{release} -Provides: golang(%{simport_path}/ptypes/wrappers) = %{version}-%{release} - %description devel This package provides a library that implements run-time support for encoding (marshaling), decoding (unmarshaling), and accessing protocol @@ -124,160 +37,42 @@ Install %{name} for the related protocol compiler plugin.
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-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} - -%description unit-test-devel -%{summary} - -This package contains unit tests for project -providing packages with %{import_path} prefix. -%endif +%{gobaseipath} prefix.
%prep -%setup -q -n %{repo}-%{commit} +%gosetup
%build -mkdir -p src/github.com/golang -ln -s ../../../ src/github.com/golang/protobuf - -%if ! 0%{?with_bundled} -export GOPATH=$(pwd):%{gopath} -%else -echo "Unable to build from bundled deps. No Godeps nor vendor directory" -exit 1 -%endif +%gobuildroot
-%gobuild -o bin/protoc-gen-go %{import_path}/protoc-gen-go +%gobuild -o _bin/protoc %{gobaseipath}/protoc-gen-go
%install install -d %{buildroot}%{_bindir} -install -m 755 bin/protoc-gen-go %{buildroot}/%{_bindir}/protoc-gen-go +install -m 755 _bin/protoc %{buildroot}/%{_bindir}/protoc
# 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 - 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 - -install -d -p %{buildroot}/%{gopath}/src/%{simport_path}/ -echo "%%dir %%{gopath}/src/%%{simport_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 - dirprefix=$(dirname $file) - install -d -p %{buildroot}/%{gopath}/src/%{simport_path}/$dirprefix - cp -pav $file %{buildroot}/%{gopath}/src/%{simport_path}/$file - echo "%%{gopath}/src/%%{simport_path}/$file" >> devel.file-list - - while [ "$dirprefix" != "." ]; do - echo "%%dir %%{gopath}/src/%%{simport_path}/$dirprefix" >> devel.file-list - dirprefix=$(dirname $dirprefix) - done -done -pushd %{buildroot}/%{gopath}/src/%{simport_path}/ -# github.com/golang/protobuf -> code.google.com/p/goprotobuf -sed -i 's/"github.com/golang/protobuf/"code.google.com/p/goprotobuf/g' \ - $(find . -name '*.go') -popd -%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") proto/testdata/*.proto; 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 -for file in $(find protoc-gen-go/testdata ! -iname "*.go"); do - if [ -d $file ]; then - echo "%%dir %%{gopath}/src/%%{import_path}/$file" >> unit-test-devel.file-list - continue - fi - 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-devel.file-list -done -%endif - -%if 0%{?with_devel} -sort -u -o devel.file-list devel.file-list -%endif +%goinstall $(find . -name "testdata" -type d)
%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 -%endif - -%gotest %{import_path}/jsonpb -%gotest %{import_path}/proto -# --- FAIL: TestGolden (0.09s) -# golden_test.go:52: sum("test.pb.go"): length is 78494 -#%%gotest %%{import_path}/proto/testdata -%gotest %{import_path}/protoc-gen-go/generator -#gotest %%{import_path}/protoc-gen-go/testdata -%endif +export PATH=$PATH:$(pwd)/_bin +%gochecks %{gobaseipath}{/proto/testdata,/proto}
#define license tag if not already defined %{!?_licensedir:%global license %doc}
%files %doc AUTHORS CONTRIBUTORS LICENSE README.md -%{_bindir}/protoc-gen-go +%{_bindir}/protoc
-%if 0%{?with_devel} %files devel -f devel.file-list %license LICENSE -%doc README.md AUTHORS CONTRIBUTORS -%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project} -%endif - -%if 0%{?with_unit_test} -%files unit-test-devel -f unit-test-devel.file-list -%license LICENSE -%doc README.md AUTHORS CONTRIBUTORS -%endif +%doc *.md AUTHORS CONTRIBUTORS
%changelog +* Tue Feb 20 2018 Jan Chaloupka jchaloup@redhat.com - 0-0.32.git24f28ae +- Autogenerate some parts using the new macros + * Wed Feb 07 2018 Fedora Release Engineering releng@fedoraproject.org - 0-0.31.git24f28ae - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
arch-excludes@lists.fedoraproject.org