The package rpms/golang-github-fatih-color.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-fatih-color.git/com....
Change:
-ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 %{arm}}
Thanks.
Full change:
============
commit 165ee985d054ebe284eb037d3c7a7ff8efb85c34
Author: Robert-Andr Mauchin <zebob.m(a)gmail.com>
Date: Tue Sep 25 15:50:20 2018 +0200
Update to new packaging
Add missing BuildRequires (#1632758)
diff --git a/golang-github-fatih-color.spec b/golang-github-fatih-color.spec
index 9475c53..977c8d5 100644
--- a/golang-github-fatih-color.spec
+++ b/golang-github-fatih-color.spec
@@ -1,160 +1,70 @@
-%if 0%{?fedora} || 0%{?rhel} == 6
-%global with_devel 1
-%global with_bundled 0
-%global with_debug 0
-%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
+# Run tests in check section
+%bcond_without check
-%global provider github
-%global provider_tld com
-%global project fatih
-%global repo color
#
https://github.com/fatih/color
-%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
-%global import_path gopkg.in/%{project}/%{repo}.v1
+%global goipath
github.com/fatih/color
+Version: 1.7.0
+
+%global common_description %{expand:
+Color lets you use colorized outputs in terms of ANSI Escape Codes in Go
+(Golang). It has support for Windows too! The API can be used in several
+ways, pick one that suits you.}
-Name: golang-%{provider}-%{project}-%{repo}
-Version: 1.7.0
-Release: 1%{?dist}
+%gometa
+
+Name: %{goname}
+Release: 2%{?dist}
Summary: Color package for Go (golang)
License: MIT
-URL: https://%{provider_prefix}
-Source0:
https://%{provider_prefix}/archive/v%{version}.tar.gz#/%{repo}-%{version}.tar.gz
+URL: %{gourl}
+Source0: %{gosource}
-# 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}
+BuildRequires:
golang(github.com/mattn/go-colorable)
+BuildRequires:
golang(github.com/mattn/go-isatty)
# test requirement:
BuildRequires:
golang(github.com/smartystreets/goconvey/convey)
%description
-%{summary}
+%{common_description}
+
-%if 0%{?with_devel}
%package devel
Summary: %{summary}
BuildArch: noarch
-%if 0%{?with_check} && ! 0%{?with_bundled}
-%endif
-
-Provides: golang(%{import_path}) = %{version}-%{release}
-Provides: golang(%{provider_prefix}) = %{version}-%{release}
-
%description devel
-%{summary}
+%{common_description}
This package contains library source intended for
building other packages which use import path with
-%{import_path} prefix.
-%endif
-
-%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
+%{goipath} prefix.
-# 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.
-%endif
%prep
-%setup -q -n %{repo}-%{version}
+%forgeautosetup
-%build
%install
+%goinstall
-# remove vendored dependencies:
-rm -rf vendor
-
-# 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" \! -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
-
-# Add symlink to other name
-install -d -p %{buildroot}%{gopath}/src/github.com/fatih/
-echo "%%dir %%{gopath}/src/github.com/fatih/." >> devel.file-list
-ln -s %{gopath}/src/%{import_path}/ %{buildroot}%{gopath}/src/%{provider_prefix}
-echo "%%{gopath}/src/%{provider_prefix}" >> devel.file-list
-%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
- 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" >>
unit-test-devel.file-list
-done
-%endif
-
-%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
-export GOPATH=%{buildroot}/%{gopath}:$(pwd)/Godeps/_workspace:%{gopath}
-%endif
-
-%if ! 0%{?gotest:1}
-%global gotest go test
+%gochecks
%endif
-%gotest %{import_path}
-%endif
-%if 0%{?with_devel}
%files devel -f devel.file-list
+%license LICENSE.md
%doc README.md
-%dir %{gopath}/src/%{import_path}
-%endif
-%if 0%{?with_unit_test} && 0%{?with_devel}
-%files unit-test-devel -f unit-test-devel.file-list
-%doc README.md
-%license LICENSE.md
-%endif
%changelog
+* Tue Sep 25 2018 Robert-Andr Mauchin <zebob.m(a)gmail.com> - 1.7.0-2
+- Update to new packaging
+- Add missing BuildRequires (#1632758)
+
* Thu Aug 02 2018 Michael Cronenworth <mike(a)cchtml.com> - 1.7.0-1
- New upstream release.