The package rpms/golang-googlecode-net.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-net.git/commit/?id....
Change: -ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 aarch64 %{arm}}
Thanks.
Full change: ============
commit 9c2d98c2e4459507bf38ba07d5df1dd44fd24061 Author: Jan Chaloupka jchaloup@redhat.com Date: Fri Feb 23 15:08:49 2018 +0100
Autogenerate some parts using the new macros
diff --git a/golang-googlecode-net.spec b/golang-googlecode-net.spec index dc594ed..7e7ab49 100644 --- a/golang-googlecode-net.spec +++ b/golang-googlecode-net.spec @@ -1,316 +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 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%{?with_debug} -%global _dwz_low_mem_die_limit 0 -%else -%global debug_package %{nil} -%endif - -%global provider_tld com -%global provider github -%global project golang -%global repo net -# https://github.com/golang/net -%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo} -%global import_path code.google.com/p/go.net +%global provider_prefix github.com/golang/net +%global gobaseipath golang.org/x/net %global commit 1c05540f6879653db88113bc4a2b70aec4bd491f -%global shortcommit %(c=%{commit}; echo ${c:0:7}) +%global commitdate 20170804 +%global x_name golang-golang-org-net
-%global x_provider golang -%global x_provider_tld org -%global x_repo net -%global x_import_path %{x_provider}.%{x_provider_tld}/x/%{x_repo} -%global x_name golang-%{x_provider}%{x_provider_tld}-%{repo} - -%global devel_main golang-golangorg-net-devel -%global devel_prefix x +%gocraftmeta -i
Name: golang-googlecode-net Version: 0 -Release: 0.41.git%{shortcommit}%{?dist} +Release: 0.42.%{commitdate}git%{shortcommit}%{?dist} Summary: Supplementary Go networking libraries 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: Supplementary Go networking libraries for code.google.com/p/ imports -BuildArch: noarch - -%if 0%{?with_check} -BuildRequires: golang(code.google.com/p/go.text/encoding) -BuildRequires: golang(code.google.com/p/go.text/encoding/charmap) -BuildRequires: golang(code.google.com/p/go.text/encoding/htmlindex) -BuildRequires: golang(code.google.com/p/go.text/transform) -%endif - -Requires: golang(code.google.com/p/go.text/encoding) -Requires: golang(code.google.com/p/go.text/encoding/charmap) -Requires: golang(code.google.com/p/go.text/encoding/htmlindex) -Requires: golang(code.google.com/p/go.text/transform) - -Provides: golang(%{import_path}/bpf) = %{version}-%{release} -Provides: golang(%{import_path}/context) = %{version}-%{release} -Provides: golang(%{import_path}/context/ctxhttp) = %{version}-%{release} -Provides: golang(%{import_path}/dict) = %{version}-%{release} -Provides: golang(%{import_path}/html) = %{version}-%{release} -Provides: golang(%{import_path}/html/atom) = %{version}-%{release} -Provides: golang(%{import_path}/html/charset) = %{version}-%{release} -Provides: golang(%{import_path}/http2) = %{version}-%{release} -Provides: golang(%{import_path}/http2/hpack) = %{version}-%{release} -Provides: golang(%{import_path}/icmp) = %{version}-%{release} -Provides: golang(%{import_path}/idna) = %{version}-%{release} -Provides: golang(%{import_path}/ipv4) = %{version}-%{release} -Provides: golang(%{import_path}/ipv6) = %{version}-%{release} -Provides: golang(%{import_path}/lex/httplex) = %{version}-%{release} -Provides: golang(%{import_path}/lif) = %{version}-%{release} -Provides: golang(%{import_path}/nettest) = %{version}-%{release} -Provides: golang(%{import_path}/netutil) = %{version}-%{release} -Provides: golang(%{import_path}/proxy) = %{version}-%{release} -Provides: golang(%{import_path}/publicsuffix) = %{version}-%{release} -Provides: golang(%{import_path}/route) = %{version}-%{release} -Provides: golang(%{import_path}/trace) = %{version}-%{release} -Provides: golang(%{import_path}/webdav) = %{version}-%{release} -Provides: golang(%{import_path}/websocket) = %{version}-%{release} -Provides: golang(%{import_path}/xsrftoken) = %{version}-%{release} - %package -n %{x_name}-devel Summary: Supplementary Go networking libraries for golang.org/x/ imports -BuildArch: noarch
-%if 0%{?with_unit_test} +BuildRequires: golang(golang.org/x/crypto/ssh/terminal) BuildRequires: golang(golang.org/x/text/encoding) BuildRequires: golang(golang.org/x/text/encoding/charmap) BuildRequires: golang(golang.org/x/text/encoding/htmlindex) -BuildRequires: golang(golang.org/x/text/transform) BuildRequires: golang(golang.org/x/text/secure/bidirule) +BuildRequires: golang(golang.org/x/text/transform) BuildRequires: golang(golang.org/x/text/unicode/norm) -%endif - -Requires: golang(golang.org/x/text/encoding) -Requires: golang(golang.org/x/text/encoding/charmap) -Requires: golang(golang.org/x/text/encoding/htmlindex) -Requires: golang(golang.org/x/text/transform) -Requires: golang(golang.org/x/text/secure/bidirule) -Requires: golang(golang.org/x/text/unicode/norm) - -Provides: golang(%{x_import_path}/bpf) = %{version}-%{release} -Provides: golang(%{x_import_path}/context) = %{version}-%{release} -Provides: golang(%{x_import_path}/context/ctxhttp) = %{version}-%{release} -Provides: golang(%{x_import_path}/dict) = %{version}-%{release} -Provides: golang(%{x_import_path}/dns/dnsmessage) = %{version}-%{release} -Provides: golang(%{x_import_path}/html) = %{version}-%{release} -Provides: golang(%{x_import_path}/html/atom) = %{version}-%{release} -Provides: golang(%{x_import_path}/html/charset) = %{version}-%{release} -Provides: golang(%{x_import_path}/http2) = %{version}-%{release} -Provides: golang(%{x_import_path}/http2/hpack) = %{version}-%{release} -Provides: golang(%{x_import_path}/icmp) = %{version}-%{release} -Provides: golang(%{x_import_path}/idna) = %{version}-%{release} -Provides: golang(%{x_import_path}/ipv4) = %{version}-%{release} -Provides: golang(%{x_import_path}/ipv6) = %{version}-%{release} -Provides: golang(%{x_import_path}/lex/httplex) = %{version}-%{release} -Provides: golang(%{x_import_path}/lif) = %{version}-%{release} -Provides: golang(%{x_import_path}/nettest) = %{version}-%{release} -Provides: golang(%{x_import_path}/netutil) = %{version}-%{release} -Provides: golang(%{x_import_path}/proxy) = %{version}-%{release} -Provides: golang(%{x_import_path}/publicsuffix) = %{version}-%{release} -Provides: golang(%{x_import_path}/route) = %{version}-%{release} -Provides: golang(%{x_import_path}/trace) = %{version}-%{release} -Provides: golang(%{x_import_path}/webdav) = %{version}-%{release} -Provides: golang(%{x_import_path}/websocket) = %{version}-%{release} -Provides: golang(%{x_import_path}/xsrftoken) = %{version}-%{release} - -%description devel -%{summary} - -This package contains library source intended for building other packages -which use the supplementary Go networking libraries with code.google.com/p/ imports.
%description -n %{x_name}-devel
This package contains library source intended for building other packages which use the supplementary Go text libraries with golang.org/x/ imports. -%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 %{x_import_path} prefix. -%endif
%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 -install -d -p %{buildroot}/%{gopath}/src/%{x_import_path}/ -echo "%%dir %%{gopath}/src/%%{x_import_path}/." >> x_devel.file-list -# find all *.go but no *_test.go files and generate devel.file-list -for ext in go s; do - for file in $(find . -iname "*.${ext}" ! -iname "*_test.go") ; do - dirprefix=$(dirname $file) - install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$dirprefix - cp $file %{buildroot}/%{gopath}/src/%{import_path}/$file - echo "%%{gopath}/src/%%{import_path}/$file" >> devel.file-list - - install -d -p %{buildroot}/%{gopath}/src/%{x_import_path}/$dirprefix - cp $file %{buildroot}/%{gopath}/src/%{x_import_path}/$file - echo "%%{gopath}/src/%%{x_import_path}/$file" >> x_devel.file-list - - while [ "$dirprefix" != "." ]; do - echo "%%dir %%{gopath}/src/%%{import_path}/$dirprefix" >> devel.file-list - echo "%%dir %%{gopath}/src/%%{x_import_path}/$dirprefix" >> x_devel.file-list - dirprefix=$(dirname $dirprefix) - done - done -done - -pushd %{buildroot}/%{gopath}/src/%{import_path}/ -sed -i 's/"golang.org/x//"code.google.com/p/go./g' \ - $(find . -name '*.go') -popd -%endif - -# testing files for this project -%if 0%{?with_unit_test} -install -d -p %{buildroot}/%{gopath}/src/%{x_import_path}/ -install -d -p %{buildroot}/%{gopath}/src/%{x_import_path}/html/testdata -install -d -p %{buildroot}/%{gopath}/src/%{x_import_path}/html/charset/testdata -cp -rpav html/testdata %{buildroot}/%{gopath}/src/%{x_import_path}/html -cp -rpav html/charset/testdata %{buildroot}/%{gopath}/src/%{x_import_path}/html/charset -echo "%%{gopath}/src/%%{x_import_path}/html/testdata" >> unit-test-devel.file-list -echo "%%{gopath}/src/%%{x_import_path}/html/charset/testdata" >> unit-test-devel.file-list -# find all files with $ext prefix and generate unit-test.file-list -for file in $(find . -iname "*_test.go"); do - dirprefix=$(dirname $file) - install -d -p %{buildroot}/%{gopath}/src/%{x_import_path}/$dirprefix - cp $file %{buildroot}/%{gopath}/src/%{x_import_path}/$file - echo "%%{gopath}/src/%%{x_import_path}/$file" >> unit-test-devel.file-list - - while [ "$dirprefix" != "." ]; do - echo "%%dir %%{gopath}/src/%%{x_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 -sort -u -o x_devel.file-list x_devel.file-list -%endif +%goinstall $(find . -iname testdata)
%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 %%{x_import_path}/context -#%%gotest %%{x_import_path}/context/ctxhttp -%gotest %{x_import_path}/html -%gotest %{x_import_path}/html/atom -%gotest %{x_import_path}/html/charset -# socket: permission denied -#%%gotest %%{x_import_path}/icmp -%gotest %{x_import_path}/idna -%gotest %{x_import_path}/internal/timeseries -%gotest %{x_import_path}/ipv4 -%gotest %{x_import_path}/ipv6 -%gotest %{x_import_path}/netutil -%gotest %{x_import_path}/proxy -%gotest %{x_import_path}/publicsuffix -%gotest %{x_import_path}/trace -#%%gotest %%{x_import_path}/webdav -%gotest %{x_import_path}/webdav/internal/xml -%gotest %{x_import_path}/websocket -%endif +%gochecks %{gobaseipath}/icmp
#define license tag if not already defined %{!?_licensedir:%global license %doc}
-%if 0%{?with_devel} -%files devel -f devel.file-list +%files -n %{x_name}-devel -f devel.file-list %license LICENSE %doc AUTHORS CONTRIBUTORS PATENTS README CONTRIBUTING.md
-%files -n %{x_name}-devel -f x_devel.file-list -%license LICENSE -%doc AUTHORS CONTRIBUTORS PATENTS README CONTRIBUTING.md -%endif - -%if 0%{?with_unit_test} -%files unit-test-devel -f unit-test-devel.file-list -%license LICENSE -%doc AUTHORS CONTRIBUTORS PATENTS README CONTRIBUTING.md -%endif - %changelog +* Tue Feb 20 2018 Jan Chaloupka jchaloup@redhat.com - 0-0.42.git1c05540 +- Autogenerate some parts using the new macros + * Wed Feb 07 2018 Fedora Release Engineering releng@fedoraproject.org - 0-0.41.git1c05540 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild