The package rpms/gmic.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/gmic.git/commit/?id=d5408c1209b91...
https://src.fedoraproject.org/cgit/rpms/gmic.git/commit/?id=996ad94577c81....
Change:
+%ifarch armv7hl s390x ppc64le
+%ifarch %{arm} s390x ppc64le
Thanks.
Full change:
============
commit d5408c1209b91a68ffa8d22b8244df74f0537834
Author: josef radinger <cheese(a)nosuchhost.net>
Date: Thu Apr 2 20:27:22 2020 +0200
enable mtune on aarch64
diff --git a/gmic.spec b/gmic.spec
index 8fcbfe1..4b0447a 100644
--- a/gmic.spec
+++ b/gmic.spec
@@ -10,7 +10,7 @@
Summary: GREYC's Magic for Image Computing
Name: gmic
Version: 2.9.0
-Release: 2%{?dist}
+Release: 3%{?dist}
Source0:
https://gmic.eu/files/source/%{name}_%{version}.tar.gz
# GIT archive snapshot of
https://github.com/c-koi/zart
Source1: zart-%{zart_version}.tar.gz
@@ -81,7 +81,7 @@ Provides a plugin for using G'MIC from GIMP
%setup -q -a 1 -a 2 -a 3
%patch1 -p1 -b.opencv
-%ifarch %{arm} s390x ppc64le
+%ifarch armv7hl s390x ppc64le
%patch2 -p1 -b.arch
%endif
@@ -165,6 +165,9 @@ chmod -x $RPM_BUILD_ROOT/%{_sysconfdir}/bash_completion.d/gmic
%{gimpplugindir}/gmic_cluts.gmz
%changelog
+* Thu Apr 2 2020 josef radinger <cheese(a)nosuchhost.net> - 2.9.0-3
+- enable mtune on aarch64
+
* Thu Apr 2 2020 josef radinger <cheese(a)nosuchhost.net> - 2.9.0-2
- disable mtune=generic for s390x, armv7hl and ppc64le
commit 996ad94577c817e9abc08d162b027d461f99c113
Author: josef radinger <cheese(a)nosuchhost.net>
Date: Thu Apr 2 20:00:11 2020 +0200
disable mtune for s390x, armv7hl and ppc64le
diff --git a/gmic.spec b/gmic.spec
index 77796e6..8fcbfe1 100644
--- a/gmic.spec
+++ b/gmic.spec
@@ -44,6 +44,8 @@ BuildRequires: gcc-c++
Obsoletes: gmic-static <= 2.1.8
Patch1: gmic_opencv.patch
+Patch2: Makefile_arch.patch
+
%description
G'MIC is an open and full-featured framework for image processing, providing
@@ -79,6 +81,10 @@ Provides a plugin for using G'MIC from GIMP
%setup -q -a 1 -a 2 -a 3
%patch1 -p1 -b.opencv
+%ifarch %{arm} s390x ppc64le
+%patch2 -p1 -b.arch
+%endif
+
%build
export CCACHE_DISABLE=1
cd src
commit 2373e2a6894aa07687c979805f9ef8683ca4b6fa
Author: josef radinger <cheese(a)nosuchhost.net>
Date: Thu Apr 2 19:58:43 2020 +0200
disable mtune for s390x, armv7hl and ppc64le
diff --git a/Makefile_arch.patch b/Makefile_arch.patch
new file mode 100644
index 0000000..04f7ff2
--- /dev/null
+++ b/Makefile_arch.patch
@@ -0,0 +1,12 @@
+--- gmic-2.9.0/src/Makefile.orig 2020-03-28 14:25:12.000000000 +0100
++++ gmic-2.9.0/src/Makefile 2020-04-02 19:52:54.033777691 +0200
+@@ -193,7 +193,8 @@
+ # Enable optimizations for 'cli'.
+ OPT_CLI_CFLAGS = -Ofast
+ ifdef IS_GCC
+-OPT_CLI_CFLAGS = -Ofast -mtune=generic -flto
++#OPT_CLI_CFLAGS = -Ofast -mtune=generic -flto
++OPT_CLI_CFLAGS = -Ofast -flto
+ OPT_CLI_LIBS = -flto
+ endif
+ ifdef icpc
diff --git a/gmic.spec b/gmic.spec
index 2693ee1..77796e6 100644
--- a/gmic.spec
+++ b/gmic.spec
@@ -10,7 +10,7 @@
Summary: GREYC's Magic for Image Computing
Name: gmic
Version: 2.9.0
-Release: 1%{?dist}
+Release: 2%{?dist}
Source0:
https://gmic.eu/files/source/%{name}_%{version}.tar.gz
# GIT archive snapshot of
https://github.com/c-koi/zart
Source1: zart-%{zart_version}.tar.gz
@@ -159,6 +159,9 @@ chmod -x $RPM_BUILD_ROOT/%{_sysconfdir}/bash_completion.d/gmic
%{gimpplugindir}/gmic_cluts.gmz
%changelog
+* Thu Apr 2 2020 josef radinger <cheese(a)nosuchhost.net> - 2.9.0-2
+- disable mtune=generic for s390x, armv7hl and ppc64le
+
* Mon Mar 30 2020 josef radinger <cheese(a)nosuchhost.net> - 2.9.0-1
- bump version
- update gmic_opencv.patch