diff --git a/zbar.changes b/zbar.changes index 334cd3d..53b5371 100644 --- a/zbar.changes +++ b/zbar.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Mar 8 17:31:33 UTC 2019 - olaf@aepfle.de + +- Use gcc7 in SLE_12 + ------------------------------------------------------------------- Fri Feb 15 08:14:02 UTC 2019 - Martin Pluskal diff --git a/zbar.spec b/zbar.spec index 6170c61..1087fb9 100644 --- a/zbar.spec +++ b/zbar.spec @@ -28,6 +28,9 @@ Group: Productivity/Other URL: http://zbar.sourceforge.net/ Source0: https://linuxtv.org/downloads/%{name}/%{name}-%{version}.tar.bz2 Source98: baselibs.conf +%if 0%{?suse_version} < 1500 +BuildRequires: gcc7 +%endif BuildRequires: libjpeg-devel BuildRequires: pkgconfig >= 0.9.0 BuildRequires: xmlto @@ -97,6 +100,9 @@ applications using the zbar-qt library. %setup -q %build +test -x "$(type -p gcc)" && export CC=$_ +test -x "$(type -p gcc-7)" && export CC=$_ +test -x "$(type -p gcc-8)" && export CC=$_ %configure \ --docdir=%{_docdir}/%{name} \ --disable-static \