The package rpms/golang-github-nwidger-jsoncolor.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-nwidger-jsoncolor.git/....
Change: -ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 aarch64 %{arm}}
Thanks.
Full change: ============
commit a7fe5dc0b05a54c984350f2da07f71068431c8e8 Author: Robert-André Mauchin zebob.m@gmail.com Date: Wed Mar 14 23:27:02 2018 +0100
Fix BuildRequires
diff --git a/golang-github-nwidger-jsoncolor.spec b/golang-github-nwidger-jsoncolor.spec index bf9001c..ccb6104 100644 --- a/golang-github-nwidger-jsoncolor.spec +++ b/golang-github-nwidger-jsoncolor.spec @@ -11,15 +11,13 @@ Colorized JSON output for Go.}
Name: %{goname} Version: 0 -Release: 0.3%{?dist} +Release: 0.4%{?dist} Summary: Colorized JSON output for Go License: MIT URL: %{gourl} Source: %{gosource}
-%if %{with check} BuildRequires: golang(github.com/fatih/color) -%endif
%description %{common_description} @@ -56,6 +54,9 @@ the %{goipath} Go namespace.
%changelog +* Wed Mar 14 2018 Robert-André Mauchin zebob.m@gmail.com - 0-0.4.20180314git75a6de4 +- Fix BuildRequires + * Fri Mar 09 2018 Robert-André Mauchin zebob.m@gmail.com - 0-0.3.20180314git75a6de4 - Update with the new Go packaging
commit fc54b2a3e6d23d6819488abf0b954211696a1dc2 Author: Robert-André Mauchin zebob.m@gmail.com Date: Wed Mar 14 16:38:32 2018 +0100
Update with the new Go packaging
diff --git a/.gitignore b/.gitignore index 2461334..a017480 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /jsoncolor-75a6de4.tar.gz +/jsoncolor-75a6de4340e59be95f0884b9cebdda246e0fdf40.tar.gz diff --git a/golang-github-nwidger-jsoncolor.spec b/golang-github-nwidger-jsoncolor.spec index 9027623..bf9001c 100644 --- a/golang-github-nwidger-jsoncolor.spec +++ b/golang-github-nwidger-jsoncolor.spec @@ -1,185 +1,64 @@ -# 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 0 - -%if 0%{?with_debug} -%global _dwz_low_mem_die_limit 0 -%else -%global debug_package %{nil} -%endif - +%bcond_without check
-%global provider github -%global provider_tld com -%global project nwidger -%global repo jsoncolor -# https://github.com/nwidger/jsoncolor -%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo} -%global import_path %{provider_prefix} +%global goipath github.com/nwidger/jsoncolor %global commit 75a6de4340e59be95f0884b9cebdda246e0fdf40 -%global shortcommit %(c=%{commit}; echo ${c:0:7}) -%global commitdate 20170215 - -Name: golang-%{provider}-%{project}-%{repo} -Version: 0 -Release: 0.2.%{commitdate}git%{shortcommit}%{?dist} -Summary: Colorized JSON output for Go -License: MIT -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} +%global common_description %{expand: +Colorized JSON output for Go.}
+%gometa
+Name: %{goname} +Version: 0 +Release: 0.3%{?dist} +Summary: Colorized JSON output for Go +License: MIT +URL: %{gourl} +Source: %{gosource}
-%description -%{summary}. - -%if 0%{?with_devel} -%package devel -Summary: %{summary} -BuildArch: noarch - -%if 0%{?with_check} && ! 0%{?with_bundled} +%if %{with check} BuildRequires: golang(github.com/fatih/color) %endif
-Requires: golang(github.com/fatih/color) +%description +%{common_description}
-Provides: golang(%{import_path}) = %{version}-%{release}
+%package devel +Summary: %{summary} +BuildArch: noarch + %description devel -%{summary}. - -This package contains library source intended for -building other packages which use import path with -%{import_path} prefix. -%endif +%{common_description} + +This package contains the source code needed for building packages that import +the %{goipath} Go namespace.
-%if 0%{?with_unit_test} && 0%{?with_devel} -%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} - -%if 0%{?with_check} && ! 0%{?with_bundled} -%endif - - -%description unit-test-devel -%{summary}. - -This package contains unit tests for project -providing packages with %{import_path} prefix. -%endif
%prep -%setup -q -n %{repo}-%{commit} +%gosetup -q
-%build -%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 -# find all *.go but no *_test.go files and generate devel.file-list -for file in $(find . ( -iname "*.go" -or -iname "*.s" ) ! -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 +%install +%goinstall
-%if 0%{?with_devel} -sort -u -o devel.file-list devel.file-list -%endif
+%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 +%gochecks %endif
-%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} -%endif
-%if 0%{?with_unit_test} && 0%{?with_devel} -%files unit-test-devel -f unit-test-devel.file-list -%license LICENSE -%doc README.md -%endif
%changelog +* Fri Mar 09 2018 Robert-André Mauchin zebob.m@gmail.com - 0-0.3.20180314git75a6de4 +- Update with the new Go packaging + * Wed Feb 07 2018 Fedora Release Engineering releng@fedoraproject.org - 0-0.2.20170215git75a6de4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
diff --git a/sources b/sources index 99e58ef..00f1b32 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (jsoncolor-75a6de4.tar.gz) = 567171a3b256fc929d89de0e82c84d25edf2d231c3d895d50ac1c8617e6bc679f0bfa7c7183fc081a6e36a393bca7c94b0544854a323055d0283a170df41e94c +SHA512 (jsoncolor-75a6de4340e59be95f0884b9cebdda246e0fdf40.tar.gz) = 567171a3b256fc929d89de0e82c84d25edf2d231c3d895d50ac1c8617e6bc679f0bfa7c7183fc081a6e36a393bca7c94b0544854a323055d0283a170df41e94c
commit 90d1c5f9e9f5bd60201254a2df4cf990d296fdbf Author: Fedora Release Engineering releng@fedoraproject.org Date: Wed Feb 7 14:43:45 2018 +0000
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Signed-off-by: Fedora Release Engineering releng@fedoraproject.org
diff --git a/golang-github-nwidger-jsoncolor.spec b/golang-github-nwidger-jsoncolor.spec index cc9339d..9027623 100644 --- a/golang-github-nwidger-jsoncolor.spec +++ b/golang-github-nwidger-jsoncolor.spec @@ -43,7 +43,7 @@
Name: golang-%{provider}-%{project}-%{repo} Version: 0 -Release: 0.1.%{commitdate}git%{shortcommit}%{?dist} +Release: 0.2.%{commitdate}git%{shortcommit}%{?dist} Summary: Colorized JSON output for Go License: MIT URL: https://%%7Bprovider_prefix%7D @@ -180,6 +180,9 @@ export GOPATH=%{buildroot}/%{gopath}:%{gopath} %endif
%changelog +* Wed Feb 07 2018 Fedora Release Engineering releng@fedoraproject.org - 0-0.2.20170215git75a6de4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + * Sat Nov 25 2017 Robert-André Mauchin zebob.m@gmail.com - 0-0.1.20170215git75a6de4 - First package for Fedora