!12 [sync] PR-11: Modify spec to support building with clang

From: @openeuler-sync-bot 
Reviewed-by: @wk333 
Signed-off-by: @wk333
This commit is contained in:
openeuler-ci-bot 2024-09-19 02:49:45 +00:00 committed by Gitee
commit 5fc1eac7ae
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

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