Compare commits

...

11 Commits

Author SHA1 Message Date
openeuler-ci-bot
5fc1eac7ae
!12 [sync] PR-11: Modify spec to support building with clang
From: @openeuler-sync-bot 
Reviewed-by: @wk333 
Signed-off-by: @wk333
2024-09-19 02:49:45 +00:00
wangqiang
c5e730ea44 Modift spec to support building with clang
(cherry picked from commit cbe53a8b6cf615ae886887d4816ea4fc13f65be1)
2024-09-19 10:48:11 +08:00
openeuler-ci-bot
b901d6141b
!4 Update to 2.18.0
From: @lyn1001 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
2023-04-13 02:46:30 +00:00
lyn1001
a6c4e0c49c Upgrade package to version 2.18.0 2023-04-13 10:27:40 +08:00
openeuler-ci-bot
2e85aedaa2 !3 Completing build dependencies
From: @hht8
Reviewed-by: @maminjie,@small_leek
Signed-off-by: @small_leek
2021-06-01 09:30:03 +08:00
hht8
a817a8ca48 Completing build dependencies 2021-05-31 17:49:29 +08:00
openeuler-ci-bot
7fc7846f1c !2 add yaml
Merge pull request !2 from jackie_wu123/master
2020-05-13 17:17:58 +08:00
jackie_wu123
d53d689e6c add yaml 2020-05-08 11:06:43 +08:00
jackie_wu123
628a858959 add yaml 2020-05-08 10:22:01 +08:00
openeuler-ci-bot
f79d7eb3df !1 add package
Merge pull request !1 from bingo2008/bingo2008
2019-12-14 16:32:49 +08:00
bingo2008
ebf63a1533 add package 2019-12-13 15:27:21 +08:00
3 changed files with 63 additions and 0 deletions

BIN
pngquant-2.18.0.tar.gz Normal file

Binary file not shown.

59
pngquant.spec Normal file
View File

@ -0,0 +1,59 @@
Name: pngquant
Version: 2.18.0
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
Pngquant converts a 24/32-bit RGBA PNG image into an 8-bit palette that retains the alpha channel. Such images
are compatible with all modern web browsers and can use compatibility settings to help reduce transparency in
Internet Explorer 6.
%package help
Summary: Documentation for pngquant
%description help
This package provides documentation for pngquant.
%prep
%autosetup -n pngquant-%{version} -p1
%build
export CFLAGS="%{optflags} -fno-math-errno -funroll-loops -fomit-frame-pointer -fPIC"
%configure --with-openmp --with-libimagequant
%make_build
%install
%make_install
%check
%make_build test
%files
%doc README.md CHANGELOG COPYRIGHT
%{_bindir}/%{name}
%files help
%{_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
* Mon May 31 2021 huanghaitao <huanghaitao8@huawei.com> - 2.12.5-3
- Completing build dependencies
* Fri Dec 13 2019 fengbing <fengbing7@huawei.com> - 2.12.5-2
- Package init

4
pngquant.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: pornel/pngquant
tag_prefix: ^v
seperator: .