Modift spec to support building with clang

(cherry picked from commit cbe53a8b6cf615ae886887d4816ea4fc13f65be1)
This commit is contained in:
wangqiang 2024-08-29 10:00:39 +08:00 committed by openeuler-sync-bot
parent b901d6141b
commit c5e730ea44

View File

@ -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 <wangqiang1@kylinos.cn> - 2.18.0-2
- Support build with clang
* Wed Apr 12 2023 liyanan <thistleslyn@163.com> - 2.18.0-1
- Update to 2.18.0