The package rpms/golang-github-syndtr-gocapability.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-syndtr-gocapability.gi....
Change: -%ifarch 0%{?gccgo_arches}
Thanks.
Full change: ============
commit f814ce78d8b710671a89be9c87bdce45c3069f66 Author: Robert-Andr Mauchin zebob.m@gmail.com Date: Sat May 4 18:16:26 2019 +0200
Bump to commit d98352740cb2c55f81556b63d4a1ec64c5a319c2
Signed-off-by: Robert-Andr Mauchin zebob.m@gmail.com
diff --git a/.gitignore b/.gitignore index 55c09b4..5b131fd 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /gocapability-2c00dae.tar.gz +/gocapability-d98352740cb2c55f81556b63d4a1ec64c5a319c2.tar.gz diff --git a/golang-github-syndtr-gocapability.spec b/golang-github-syndtr-gocapability.spec index b1a503d..aaebd52 100644 --- a/golang-github-syndtr-gocapability.spec +++ b/golang-github-syndtr-gocapability.spec @@ -1,170 +1,49 @@ -%if 0%{?fedora} || 0%{?rhel} >= 6 -%global with_devel 1 -%global with_bundled 0 -%global with_debug 0 -%global with_check 1 -%global with_unit_test 1 -%else -%global with_devel 0 -%global with_bundled 0 -%global with_debug 0 -%global with_check 0 -%global with_unit_test 0 -%endif - -%if 0%{?with_debug} -%global _dwz_low_mem_die_limit 0 -%else -%global debug_package %{nil} -%endif - -%define copying() \ -%if 0%{?fedora} >= 21 || 0%{?rhel} >= 7 \ -%license %{*} \ -%else \ -%doc %{*} \ -%endif +# Generated by go2rpm +%bcond_without check
-%global provider github -%global provider_tld com -%global project syndtr -%global repo gocapability # https://github.com/syndtr/gocapability -%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo} -%global import_path %{provider_prefix} -%global commit 2c00daeb6c3b45114c80ac44119e7b8801fdd852 -%global shortcommit %(c=%{commit}; echo ${c:0:7}) - -Name: golang-%{provider}-%{project}-%{repo} -Version: 0 -Release: 0.22.git%{shortcommit}%{?dist} -Summary: POSIX capability library for the Go programming language -License: BSD -URL: https://%%7Bprovider_prefix%7D -Source0: https://%%7Bprovider_prefix%7D/archive/%%7Bcommit%7D/%%7Brepo%7D-%%7Bshortco... - -# If go_arches not defined fall through to implicit golang archs -%if 0%{?go_arches:1} -ExclusiveArch: %{go_arches} -%else -ExclusiveArch: %{ix86} x86_64 %{arm} -%endif -# If gccgo_arches does not fit or is not defined fall through to golang -%ifarch 0%{?gccgo_arches} -BuildRequires: gcc-go >= %{gccgo_min_vers} -%else -BuildRequires: golang -%endif - -%description -%{summary} +%global goipath github.com/syndtr/gocapability +%global commit d98352740cb2c55f81556b63d4a1ec64c5a319c2
-%if 0%{?with_devel} -%package devel -Summary: %{summary} -BuildArch: noarch - -%if 0%{?with_check} -%endif +%gometa
-Provides: golang(%{import_path}/capability) = %{version}-%{release} +%global common_description %{expand: +Utilities for manipulating POSIX capabilities in Go.}
-%description devel -%{summary} +%global golicenses LICENSE
-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 go_arches not defined fall through to implicit golang archs -%if 0%{?go_arches:1} -ExclusiveArch: %{go_arches} -%else -ExclusiveArch: %{ix86} x86_64 %{arm} -%endif -# If gccgo_arches does not fit or is not defined fall through to golang -%ifarch 0%{?gccgo_arches} -BuildRequires: gcc-go >= %{gccgo_min_vers} -%else -BuildRequires: golang -%endif +Name: %{goname} +Version: 0 +Release: 0.23%{?dist} +Summary: Utilities for manipulating POSIX capabilities in Go
-%if 0%{?with_check} -#Here comes all BuildRequires: PACKAGE the unit tests -#in %%check section need for running -%endif +# Upstream license specification: BSD-2-Clause +License: BSD +URL: %{gourl} +Source0: %{gosource}
-# test subpackage tests code from devel subpackage -Requires: %{name}-devel = %{version}-%{release} +%description +%{common_description}
-%description unit-test -%{summary} - -This package contains unit tests for project -providing packages with %{import_path} prefix. -%endif +%gopkg
%prep -%setup -q -n %{repo}-%{commit} - -%build +%goprep
%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 +%gopkginstall
+%if %{with check} %check -%if 0%{?with_check} && 0%{?with_unit_test} && 0%{?with_devel} -%ifarch 0%{?gccgo_arches} -function gotest { %{gcc_go_test} "$@"; } -%else -%if 0%{?golang_test:1} -function gotest { %{golang_test} "$@"; } -%else -function gotest { go test "$@"; } -%endif -%endif - -export GOPATH=%{buildroot}/%{gopath}:%{gopath} -gotest %{import_path}/capability +%gocheck %endif
-%if 0%{?with_devel} -%files devel -f devel.file-list -%copying LICENSE -%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 -%copying LICENSE -%endif +%gopkgfiles
%changelog +* Sat May 04 17:47:45 CEST 2019 Robert-Andr Mauchin zebob.m@gmail.com - 0-0.23.20190504gitd983527 +- Bump to commit d98352740cb2c55f81556b63d4a1ec64c5a319c2 + * Fri Feb 01 2019 Fedora Release Engineering releng@fedoraproject.org - 0-0.22.git2c00dae - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
diff --git a/sources b/sources index 4787e09..c07500f 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -1735b5cc2b28efae2e595e43bd15828e gocapability-2c00dae.tar.gz +SHA512 (gocapability-d98352740cb2c55f81556b63d4a1ec64c5a319c2.tar.gz) = 692ba4849da1085ce64bcf4044b27ad24337516ded1a5a12fa75aaee4a3adc7878cd79d515960f4e1f251feb35e722b33bb78f20feb7e007e0ea222ae2cdd20a
arch-excludes@lists.fedoraproject.org