The package rpms/golang-github-alecthomas-template.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-alecthomas-template.gi....
Change: -ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 %{arm}}
Thanks.
Full change: ============
commit 25a2209a3a2591ecdbb3f6338ddb8b0ef7a7beb5 Author: Robert-Andr Mauchin zebob.m@gmail.com Date: Sun Nov 11 22:02:48 2018 +0100
Update to new Go packaging
Signed-off-by: Robert-Andr Mauchin zebob.m@gmail.com
diff --git a/.gitignore b/.gitignore index fdb7f13..234453d 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /template-a0175ee.tar.gz +/template-a0175ee3bccc567396460bf5acd36800cb10c49c.tar.gz diff --git a/golang-github-alecthomas-template.spec b/golang-github-alecthomas-template.spec index fb4af4c..af00091 100644 --- a/golang-github-alecthomas-template.spec +++ b/golang-github-alecthomas-template.spec @@ -1,111 +1,56 @@ -%global debug_package %{nil} - -%global provider github -%global provider_tld com -%global project alecthomas -%global repo template # https://github.com/alecthomas/template -%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo} -%global import_path %{provider_prefix} -%global commit a0175ee3bccc567396460bf5acd36800cb10c49c -%global shortcommit %(c=%{commit}; echo ${c:0:7}) +%global goipath github.com/alecthomas/template +%global commit a0175ee3bccc567396460bf5acd36800cb10c49c + +%gometa
-Name: golang-%{provider}-%{project}-%{repo} +Name: %{goname} Version: 0 -Release: 0.3.git%{shortcommit}%{?dist} +Release: 0.4%{?dist} Summary: Go's text/template package with newline elision +# Detected licences +# - BSD 3-clause "New" or "Revised" License at 'LICENSE' License: BSD -URL: https://%%7Bprovider_prefix%7D -Source0: %{url}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz - -# 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} +URL: %{gourl} +Source0: %{gosource}
%description -%{summary}. +%{summary} +
%package devel -Summary: %{summary} -BuildArch: noarch -Provides: golang(%{import_path}) = %{version}-%{release} -Provides: golang(%{import_path}/parse) = %{version}-%{release} +Summary: %{summary} +BuildArch: noarch
%description devel -%{summary}. +%{summary}
This package contains library source intended for building other packages which use import path with -%{import_path} prefix. - -%package unit-test-devel -Summary: Unit tests for %{name} package -BuildArch: noarch -# 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. +%{goipath} prefix.
%prep -%setup -q -n %{repo}-%{commit} +%forgeautosetup
-%build
%install -# source codes for building projects -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 - echo "%%dir %%{gopath}/src/%%{import_path}/$(dirname $file)" >> devel.file-list - 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 - -# testing files for this project -install -d %{buildroot}%{gopath}/src/%{import_path}/ -# find all *_test.go files and generate unit-test.file-list -for file in $(find . -iname "*_test.go" -or -iname "testdata"); 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 - -sort -u -o devel.file-list devel.file-list -sort -u -o unit-test-devel.file-list unit-test-devel.file-list +%goinstall
-%check -export GOPATH=%{buildroot}%{gopath}:%{gopath}
-%if ! 0%{?gotest:1} -%global gotest go test -%endif +%check +%gochecks
-%gotest %{import_path} -%gotest %{import_path}/parse
%files devel -f devel.file-list -%doc README.md %license LICENSE -%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project} - -%files unit-test-devel -f unit-test-devel.file-list %doc README.md -%license LICENSE +
%changelog +* Sun Nov 11 2018 Robert-Andr Mauchin zebob.m@gmail.com - 0-0.4.20181111gita0175ee +- Update to new Go packaging + * Fri Jul 13 2018 Fedora Release Engineering releng@fedoraproject.org - 0-0.3.gita0175ee - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
diff --git a/sources b/sources index bc9c213..4cdd299 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (template-a0175ee.tar.gz) = 5ca546170725c3bdd4d9b27ca3976d6dc6376be8db685e6e26cfaef4a51560f78702b7babbe5ed0b2d934d0c32867bc69b11ae757071dc143a4453e6e7ffabdf +SHA512 (template-a0175ee3bccc567396460bf5acd36800cb10c49c.tar.gz) = 5ca546170725c3bdd4d9b27ca3976d6dc6376be8db685e6e26cfaef4a51560f78702b7babbe5ed0b2d934d0c32867bc69b11ae757071dc143a4453e6e7ffabdf
arch-excludes@lists.fedoraproject.org