From af59d0a994c5220c632778c6651c4d3795684e5e Mon Sep 17 00:00:00 2001 From: luofeng14 Date: Sun, 25 Feb 2024 10:36:35 +0000 Subject: [PATCH] support clang build Signed-off-by: luofeng14 --- libimagequant.spec | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/libimagequant.spec b/libimagequant.spec index a3ced72..6f190a7 100644 --- a/libimagequant.spec +++ b/libimagequant.spec @@ -1,12 +1,15 @@ Name: libimagequant Version: 2.18.0 -Release: 1 +Release: 2 Summary: Palette quantization library License: GPLv3+ and MIT URL: https://github.com/ImageOptim/libimagequant Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz BuildRequires: gcc +%if "%toolchain" == "clang" +BuildRequires: libomp-devel +%endif %description The portable C library can convert RGBA images into @@ -45,6 +48,12 @@ rm -f %{buildroot}%{_libdir}/%{name}.a %{_libdir}/pkgconfig/imagequant.pc %changelog +* Thu Feb 22 2024 luofng - 2.18.0-2 +- Type: enhencement +- CVE:NA +- SUG:NA +- DESC:support for building with clang + * Wed Apr 12 2023 liyanan - 2.18.0-1 - Update to 2.18.0 -- Gitee