The package rpms/golang-github-vishvananda-netns.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-vishvananda-netns.git/....
Change: -ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 %{arm}}
Thanks.
Full change: ============
commit 771b681116f4c1c0e9317989c09994842fb0e0ce Author: Robert-Andr Mauchin zebob.m@gmail.com Date: Sat May 4 18:06:15 2019 +0200
Bump to commit 13995c7128ccc8e51e9a6bd2b551020a27180abd
Signed-off-by: Robert-Andr Mauchin zebob.m@gmail.com
diff --git a/.gitignore b/.gitignore index 73f0104..5ec408f 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /netns-54f0e43.tar.gz +/netns-13995c7128ccc8e51e9a6bd2b551020a27180abd.tar.gz diff --git a/golang-github-vishvananda-netns.spec b/golang-github-vishvananda-netns.spec index 91855a0..30f353e 100644 --- a/golang-github-vishvananda-netns.spec +++ b/golang-github-vishvananda-netns.spec @@ -1,176 +1,53 @@ -# 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 -# test fails because: netns_linux.go: New creates a new network namespace and returns a handle to it. -%global with_check 0 -# 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 +# Generated by go2rpm +# Needs superuser permissions +%bcond_with check
-%global provider github -%global provider_tld com -%global project vishvananda -%global repo netns # https://github.com/vishvananda/netns -%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo} -%global import_path %{provider_prefix} -%global commit 54f0e4339ce73702a0607f49922aaa1e749b418d -%global shortcommit %(c=%{commit}; echo ${c:0:7}) - -Name: golang-%{provider}-%{project}-%{repo} -Version: 0 -Release: 0.17.git%{shortcommit}%{?dist} -Summary: Simple network namespace handling for go -License: ASL 2.0 -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 %{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} +%global goipath github.com/vishvananda/netns +%global commit 13995c7128ccc8e51e9a6bd2b551020a27180abd
-%description -%{summary} - -%if 0%{?with_devel} -%package devel -Summary: %{summary} -BuildArch: noarch - -%if 0%{?with_check} && ! 0%{?with_bundled} -%endif +%gometa
-Provides: golang(%{import_path}) = %{version}-%{release} +%global common_description %{expand: +The netns package provides an ultra-simple interface for handling network +namespaces in Go. Changing namespaces requires elevated privileges, so in most +cases this code needs to be run as root.}
-%description devel -%{summary} +%global golicenses LICENSE +%global godocs README.md
-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 -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 +Name: %{goname} +Version: 0 +Release: 0.18%{?dist} +Summary: Simple network namespace handling for Go
-# test subpackage tests code from devel subpackage -Requires: %{name}-devel = %{version}-%{release} +# Upstream license specification: Apache-2.0 +License: ASL 2.0 +URL: %{gourl} +Source0: %{gosource}
-%description unit-test -%{summary} +%description +%{common_description}
-This package contains unit tests for project -providing packages with %{import_path} prefix. -%endif +%gopkg
%prep -%setup -q -n %{repo}-%{commit} - -%build +%goprep
%install -%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 -%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") ; 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 +%gopkginstall
+%if %{with check} %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} -%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 README.md -%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project} +%gocheck %endif
-%if 0%{?with_unit_test} -%files unit-test -f unit-test-devel.file-list -%license LICENSE -%doc README.md -%endif +%gopkgfiles
%changelog +* Sat May 04 17:52:12 CEST 2019 Robert-Andr Mauchin zebob.m@gmail.com - 0-0.18.20190504git13995c7 +- Bump to commit 13995c7128ccc8e51e9a6bd2b551020a27180abd + * Fri Feb 01 2019 Fedora Release Engineering releng@fedoraproject.org - 0-0.17.git54f0e43 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
diff --git a/sources b/sources index ccc19cf..a9e8d3a 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (netns-54f0e43.tar.gz) = be5282c0b3e3b02bea2d4a62375499d3e38fd6d51f8d82cd87c7ec985cf64eac7bc0ab2dcd09682aac959437655c2b4979893e4fbe6290435311ca2e2db4f5af +SHA512 (netns-13995c7128ccc8e51e9a6bd2b551020a27180abd.tar.gz) = 82f70298ed3a458dd44f4d30d9e3a8d4033bdab55dfa7a56ea2557e743d5ea5a5bea254a48cccbef14bc35ebc031d894fd3a7f3a0eaa7a0e1036499ea836a3b6
arch-excludes@lists.fedoraproject.org