SHA256
1
0
forked from pool/pngquant
pngquant/pngquant.spec
OBS User mrdocs cc36391d69 Accepting request 571397 from home:iznogood:branches:graphics
- Drop %%ix86 conditional, only pass --enable-sse for x86_64.
- Update to version 2.11.2:
  + added support for `-o -`.
  + windows/JNI build fixes.
- Changes from version 2.8:
  + libimagequant is a separate project.
  + --strip option to disable copying of PNG metadata.
- Changes from version 2.7:
  + improved dithering of saturated and semitransparent colors.
  + fixed order of log output when using openmp.
  + improved quality sanity check in --skip-if-larger option.
  + disabled palette post-processing on colors from --map option to
    preserve them exactly.
- Changes from version 2.6:
  + when source image has no color profile information, the output
    won't have either.
- Changes from version 2.5:
  + replaced color search algorithm with vantage point tree, which
    is much faster and more reliable.
  + deprecated IE6 workaround.
  + warn when compiled without color profile support.
  + Rust API for libimagequant.
- Changes from version 2.4:
  + fixed remapping of bright colors when dithering.
- BuildRequire libimagequant-devel: the library lives in a separate
  project since version 2.8.
- update to version 2.3.1
- Update to version 2.3.0
- Building with OpenMP support makes pngquant faster in wall-clock time on multicore machines when one image at a time is processed.
- Version 1.8.0

OBS-URL: https://build.opensuse.org/request/show/571397
OBS-URL: https://build.opensuse.org/package/show/graphics/pngquant?expand=0&rev=5
2018-01-31 14:39:59 +00:00

66 lines
2.0 KiB
RPMSpec

#
# spec file for package pngquant
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: pngquant
Version: 2.11.2
Release: 0
Summary: Converts 24/32-bit RGBA PNGs to 8-bit palette with alpha channel preserved
License: GPL-3.0+
Group: Development/Tools/Other
Url: http://pngquant.org/
Source: https://github.com/pornel/pngquant/archive/%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: liblcms2-devel
BuildRequires: libpng-devel
BuildRequires: zlib-devel
BuildRequires: libimagequant-devel >= %{version}
%description
pngquant is a command-line utility and a library for lossy compression of PNG images.
The conversion reduces file sizes significantly (often as much as 70%) and
preserves full alpha transparency. Generated images are compatible with all
modern web browsers, and have better fallback in IE6 than 24-bit PNGs.
%prep
%setup -q
%build
./configure \
--prefix=%prefix \
%ifarch x86_64
--enable-sse \
%endif
--extra-cflags='%{optflags}' \
--with-openmp
%__make %{?_smp_mflags}
%install
%__mkdir -p %buildroot%_bindir %buildroot%_docdir/%name
install --mode 0755 --strip %name %buildroot%_bindir
install --mode 0644 CHANGELOG COPYRIGHT README.md %buildroot%_docdir/%name
%files
%defattr(-, root, root)
%_bindir/*
%_docdir/*
%changelog