Compare commits
11 Commits
826d996b65
...
5fc1eac7ae
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5fc1eac7ae | ||
|
|
c5e730ea44 | ||
|
|
b901d6141b | ||
|
|
a6c4e0c49c | ||
|
|
2e85aedaa2 | ||
|
|
a817a8ca48 | ||
|
|
7fc7846f1c | ||
|
|
d53d689e6c | ||
|
|
628a858959 | ||
|
|
f79d7eb3df | ||
|
|
ebf63a1533 |
BIN
pngquant-2.18.0.tar.gz
Normal file
BIN
pngquant-2.18.0.tar.gz
Normal file
Binary file not shown.
59
pngquant.spec
Normal file
59
pngquant.spec
Normal 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
4
pngquant.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: github
|
||||||
|
src_repo: pornel/pngquant
|
||||||
|
tag_prefix: ^v
|
||||||
|
seperator: .
|
||||||
Loading…
x
Reference in New Issue
Block a user