The package rpms/golang-github-kyokomi-emoji.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-kyokomi-emoji.git/c....
Change:
-ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 aarch64 %{arm}}
Thanks.
Full change:
============
commit 2c37a5413e79dab1efb4b5b2ceda66d03b437259
Author: Robert-Andr Mauchin <zebob.m(a)gmail.com>
Date: Sun Jun 2 18:53:01 2019 +0200
Update to new macros
Signed-off-by: Robert-Andr Mauchin <zebob.m(a)gmail.com>
diff --git a/.gitignore b/.gitignore
index 6f8548c..f1a74f1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
/1.5.tar.gz
/golang-github-kyokomi-emoji-2.1.0.tar.gz
+/emoji-2.1.0.tar.gz
diff --git a/golang-github-kyokomi-emoji.spec b/golang-github-kyokomi-emoji.spec
index e067b47..fe85793 100644
--- a/golang-github-kyokomi-emoji.spec
+++ b/golang-github-kyokomi-emoji.spec
@@ -1,183 +1,62 @@
-# 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
-
-%if ! 0%{?gobuild:1}
-%define gobuild(o:) go build -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od
-An -tx1|tr -d ' \\n')" -a -v -x %{?**};
-%endif
+# Generated by go2rpm
+%bcond_without check
-%global provider github
-%global provider_tld com
-%global project kyokomi
-%global repo emoji
#
https://github.com/kyokomi/emoji
-%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
-%global import_path %{provider_prefix}
+%global goipath
github.com/kyokomi/emoji
+Version: 2.1.0
-Name: golang-%{provider}-%{project}-%{repo}
-Version: 2.1.0
-Release: 1%{?dist}
-Summary: Emoji terminal output for golang
-License: MIT
-URL: https://%{provider_prefix}
-Source0: https://%{provider_prefix}/archive/v%{version}/%{name}-%{version}.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}
+%gometa
-%if ! 0%{?with_bundled}
-# Remaining dependencies not included in main packages
-%endif
-
-%description
-%{summary}.
-
-%if 0%{?with_devel}
-%package devel
-Summary: %{summary}
-BuildArch: noarch
-
-%if 0%{?with_check} && ! 0%{?with_bundled}
-%endif
+%global common_description %{expand:
+Emoji terminal output for Go.}
+%global golicenses LICENSE
+%global godocs example README.md
-Provides: golang(%{import_path}) = %{version}-%{release}
+Name: %{goname}
+Release: 2%{?dist}
+Summary: Emoji terminal output for Go
-%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
+License: MIT
+URL: %{gourl}
+Source0: %{gosource}
+BuildRequires:
golang(github.com/PuerkitoBio/goquery)
-%description unit-test-devel
-%{summary}.
+%description
+%{common_description}
-This package contains unit tests for project
-providing packages with %{import_path} prefix.
-%endif
+%gopkg
%prep
-%setup -q -n %{repo}-%{version}
+%goprep
%build
-mkdir -p src/%{provider}.%{provider_tld}/%{project}
-ln -s ../../../ src/%{import_path}
-
-%if ! 0%{?with_bundled}
-export GOPATH=$(pwd):%{gopath}
-%else
-# No dependency directories so far
-export GOPATH=$(pwd):%{gopath}
-%endif
-
-%install
-install -d -p %{buildroot}%{_bindir}
-
-# 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}
+%gocheck
%endif
-%if ! 0%{?gotest:1}
-%global gotest go test
-%endif
-
-%gotest %{import_path}
-%endif
-
-#define license tag if not already defined
-%{!?_licensedir:%global license %doc}
-
-%if 0%{?with_devel}
-%files devel -f devel.file-list
+%files
%license LICENSE
-%doc README.md
-%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
-%endif
+%doc example README.md
+%{_bindir}/*
-%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
+* Sun Jun 02 18:38:54 CEST 2019 Robert-Andr Mauchin <zebob.m(a)gmail.com> - 2.1.0-2
+- Update to new macros
+
* Sat Feb 09 2019 Elliott Sales de Andrade <quantum.analyst(a)gmail.com> - 2.1.0-1
- Update to latest version
@@ -207,4 +86,3 @@ export GOPATH=%{buildroot}/%{gopath}:%{gopath}
* Sat Jun 11 2016 Olivier Lemasle <o.lemasle(a)gmail.com> - 1.4-1
- First package for Fedora
-
diff --git a/sources b/sources
index ab9726c..36c9848 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (golang-github-kyokomi-emoji-2.1.0.tar.gz) =
1bfa63f301e06968d85718ca5076eff10a83411089e1ccaff371fbde8e8beb4cd7d03bc95f770b2d407889406a329bb8f7427c2d6dd4edb96f1cb96bbe38c05e
+SHA512 (emoji-2.1.0.tar.gz) =
1bfa63f301e06968d85718ca5076eff10a83411089e1ccaff371fbde8e8beb4cd7d03bc95f770b2d407889406a329bb8f7427c2d6dd4edb96f1cb96bbe38c05e