diff --git a/pngquant.spec b/pngquant.spec index 1da3c04..54ff275 100644 --- a/pngquant.spec +++ b/pngquant.spec @@ -1,12 +1,15 @@ Name: pngquant Version: 2.18.0 -Release: 1 +Release: 2 Summary: PNG quantitative tool for reducing the size of the image file License: GPLv3+ URL: http://pngquant.org Source0: https://github.com/pornel/pngquant/archive/%{version}/pngquant-%{version}.tar.gz BuildRequires: libpng-devel >= 1.2.46-1 zlib-devel >= 1.2.3-1 lcms2-devel libimagequant-devel >= %{version} gcc +%if "%{?toolchain}" == "clang" +BuildRequires: libomp-devel +%endif Requires: libpng >= 1.2.46-1 zlib >= 1.2.3-1 libimagequant >= %{version} %description @@ -42,6 +45,9 @@ export CFLAGS="%{optflags} -fno-math-errno -funroll-loops -fomit-frame-pointer - %{_mandir}/man1/%{name}.1* %changelog +* Thu Aug 29 2024 wangqiang - 2.18.0-2 +- Support build with clang + * Wed Apr 12 2023 liyanan - 2.18.0-1 - Update to 2.18.0