The package rpms/golang-github-skratchdot-open-golang.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-skratchdot-open-golang....
Change: -%ifarch 0%{?gccgo_arches}
Thanks.
Full change: ============
commit 73d25d4de36590efa041b5a351cd93a265033bc5 Author: Robert-Andr Mauchin zebob.m@gmail.com Date: Sat Oct 6 22:59:14 2018 +0200
Bump to commit 75fb7ed4208cf72d323d7d02fd1a5964a7a9073c Update to new Go packaging
diff --git a/.gitignore b/.gitignore index 2783f0f..125d681 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /open-golang-ba570a1.tar.gz +/open-golang-75fb7ed4208cf72d323d7d02fd1a5964a7a9073c.tar.gz diff --git a/golang-github-skratchdot-open-golang.spec b/golang-github-skratchdot-open-golang.spec index bc89835..c4f66f5 100644 --- a/golang-github-skratchdot-open-golang.spec +++ b/golang-github-skratchdot-open-golang.spec @@ -1,173 +1,55 @@ -%if 0%{?fedora} || 0%{?rhel} == 6 -%global with_devel 1 -%global with_bundled 0 -%global with_debug 0 -# test wants firefox => unnecesary dependency -%global with_check 0 -%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 - -%global provider github -%global provider_tld com -%global project skratchdot -%global repo open-golang # https://github.com/skratchdot/open-golang -%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo} -%global import_path %{provider_prefix} -%global commit ba570a111973b539baf23c918213059543b5bb6e -%global shortcommit %(c=%{commit}; echo ${c:0:7}) +%global goipath github.com/skratchdot/open-golang +%global commit 75fb7ed4208cf72d323d7d02fd1a5964a7a9073c
-Name: golang-%{provider}-%{project}-%{repo} +%gometa + +Name: golang-github-skratchdot-open-golang Version: 0 -Release: 0.12.git%{shortcommit}%{?dist} +Release: 0.13%{?dist} Summary: Open a file, directory, or URI using the OS's default application License: MIT -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 +URL: %{gourl} +Source0: %{gosource}
%description %{summary}
-%if 0%{?with_devel} + %package devel Summary: %{summary} BuildArch: noarch
-%if 0%{?with_check} -%endif - -Provides: golang(%{import_path}/open) = %{version}-%{release} - %description devel %{summary}
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 - -%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 -%{summary} - -This package contains unit tests for project -providing packages with %{import_path} prefix. -%endif +%{goipath} prefix.
%prep -%setup -q -n %{repo}-%{commit} +%forgeautosetup
-%build
%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 +%goinstall +
%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}/open -%endif - -%if 0%{?with_devel} +# Tests depend on Firefox +# %%gochecks + + %files devel -f devel.file-list -%copying LICENSE-MIT %doc README.md -%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project} -%dir %{gopath}/src/%{import_path} -%endif +%license LICENSE-MIT
-%if 0%{?with_unit_test} -%files unit-test -f unit-test.file-list -%copying LICENSE-MIT -%doc README.md -%endif
%changelog +* Sat Oct 06 2018 Robert-Andr Mauchin zebob.m@gmail.com - 0-0.13.20181006git75fb7ed +- Bump to commit 75fb7ed4208cf72d323d7d02fd1a5964a7a9073c +- Update to new Go packaging + * Fri Jul 13 2018 Fedora Release Engineering releng@fedoraproject.org - 0-0.12.gitba570a1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
diff --git a/sources b/sources index 4899740..4b80e07 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -021122ad02624d7f59234c100342028f open-golang-ba570a1.tar.gz +SHA512 (open-golang-75fb7ed4208cf72d323d7d02fd1a5964a7a9073c.tar.gz) = c9255b599d6f743c00bb0acd7f6b3c3078c34b2dfb1c30dc2f8a4e4f4c466efb2115749d0b0ab8595c925efc8e67f9e769ab6183d1676743f279289e8c5b3744