The package rpms/golang-github-mgutz-ansi.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-mgutz-ansi.git/comm....
Change:
-ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 aarch64 %{arm}}
Thanks.
Full change:
============
commit 87ad91502a9a059df60080404536b734e38d80d0
Author: Robert-Andr Mauchin <zebob.m(a)gmail.com>
Date: Fri Apr 26 21:53:51 2019 +0200
Update to new macros
Signed-off-by: Robert-Andr Mauchin <zebob.m(a)gmail.com>
diff --git a/.gitignore b/.gitignore
index afd9683..b17da92 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
/ansi-9520e82.tar.gz
+/ansi-9520e82c474b0a04dd04f8a40959027271bab992.tar.gz
diff --git a/golang-github-mgutz-ansi.spec b/golang-github-mgutz-ansi.spec
index 5060322..ed7232d 100644
--- a/golang-github-mgutz-ansi.spec
+++ b/golang-github-mgutz-ansi.spec
@@ -1,188 +1,62 @@
-# 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 1
-
-%if 0%{?with_debug}
-%global _dwz_low_mem_die_limit 0
-%else
-%global debug_package %{nil}
-%endif
-
+# Generated by go2rpm
+%bcond_without check
-%global provider github
-%global provider_tld com
-%global project mgutz
-%global repo ansi
-%global commitdate 20170206
#
https://github.com/mgutz/ansi
-%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
-%global import_path %{provider_prefix}
+%global goipath
github.com/mgutz/ansi
%global commit 9520e82c474b0a04dd04f8a40959027271bab992
-%global shortcommit %(c=%{commit}; echo ${c:0:7})
-Name: golang-%{provider}-%{project}-%{repo}
+%gometa
+
+%global common_description %{expand:
+Package Ansi is a small, fast library to create ANSI colored strings and codes.}
+
+%global golicenses LICENSE
+%global godocs README.md
+
+Name: %{goname}
Version: 0
-Release: 0.4.%{commitdate}git%{shortcommit}%{?dist}
+Release: 0.5%{?dist}
Summary: Small, fast library to create ANSI colored strings and codes
-# Detected licences
-# - MIT/X11 (BSD like) at 'LICENSE'
License: MIT
-URL: https://%{provider_prefix}
-Source0:
https://%{provider_prefix}/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 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}
-
+URL: %{gourl}
+Source0: %{gosource}
+BuildRequires:
golang(github.com/mattn/go-colorable)
%description
-%{summary}
-
-%if 0%{?with_devel}
-%package devel
-Summary: %{summary}
-BuildArch: noarch
-
-%if 0%{?with_check} && ! 0%{?with_bundled}
-BuildRequires:
golang(github.com/mattn/go-colorable)
-%endif
-
-Requires:
golang(github.com/mattn/go-colorable)
-
-Provides: golang(%{import_path}) = %{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} && 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
+%{common_description}
-
-%description unit-test-devel
-%{summary}
-
-This package contains unit tests for project
-providing packages with %{import_path} prefix.
-%endif
+%gopkg
%prep
-%setup -q -n %{repo}-%{commit}
+%goprep
%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
+for cmd in cmd/* ; do
+ %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd
done
-%endif
-%if 0%{?with_devel}
-sort -u -o devel.file-list devel.file-list
-%endif
+%install
+%gopkginstall
+install -m 0755 -vd %{buildroot}%{_bindir}
+install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
+%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
-%endif
-
-%gotest %{import_path}
+%gocheck
%endif
-#define license tag if not already defined
-%{!?_licensedir:%global license %doc}
+%files
+%license %{golicenses}
+%doc %{godocs}
+%{_bindir}/*
-
-%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
+%gopkgfiles
%changelog
+* Fri Apr 26 21:44:30 CEST 2019 Robert-Andr Mauchin <zebob.m(a)gmail.com> -
0-0.5.20170206git9520e82
+- Update to new macros
+
* Fri Feb 01 2019 Fedora Release Engineering <releng(a)fedoraproject.org> -
0-0.4.20170206git9520e82
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
diff --git a/sources b/sources
index 288ce3e..2c6a2f0 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (ansi-9520e82.tar.gz) =
893f9823f06edaeb35dbb1a19d908bd08a7d8df6527addf3d7197efeb0c2a83d85405043efd910027d472ed25cf869f4999ece4241cb546e9f648843bdd006cd
+SHA512 (ansi-9520e82c474b0a04dd04f8a40959027271bab992.tar.gz) =
893f9823f06edaeb35dbb1a19d908bd08a7d8df6527addf3d7197efeb0c2a83d85405043efd910027d472ed25cf869f4999ece4241cb546e9f648843bdd006cd