Accepting request 258412 from home:dstoecker

Add the tool.

OBS-URL: https://build.opensuse.org/request/show/258412
OBS-URL: https://build.opensuse.org/package/show/graphics/pngquant?expand=0&rev=1
This commit is contained in:
Dirk Stoecker 2014-10-28 14:08:43 +00:00 committed by Git OBS Bridge
commit 2107f5d17c
5 changed files with 105 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

3
2.3.1.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e2ac71f2b7e8f600bd4d78b04c8701823678fe15c1ba1e2e48ca529fa091c024
size 65488

15
pngquant.changes Normal file
View File

@ -0,0 +1,15 @@
-------------------------------------------------------------------
Sat Oct 25 20:06:53 UTC 2014 - opensuse@dstoecker.de
- update to version 2.3.1
Sat Aug 9 22:08:36 CEST 2014 - joerg@afflerbach.info
- Update to version 2.3.0
-------------------------------------------------------------------
Sat Dec 1 14:17:04 UTC 2012 - joerg@afflerbach.info
- 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

63
pngquant.spec Normal file
View File

@ -0,0 +1,63 @@
#
# 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.3.1
Release: 0
Summary: Converts 24/32-bit RGBA PNGs to 8-bit palette with alpha channel preserved
License: BSD-2-Clause
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
%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 -n %name-%version
%build
./configure --prefix=%prefix --enable-sse --with-openmp
CFLAGS="%optflags -msse2 -DUSE_SSE=1" \
CXXFLAGS="%optflags -msse2 -DUSE_SSE=1" \
%__make %{?_smp_mflags}
%install
%__mkdir -p %buildroot%_bindir %buildroot%_docdir/%name
install --mode 0755 --strip %name %buildroot%_bindir
install --mode 0644 CHANGELOG COPYRIGHT INSTALL README.md %buildroot%_docdir/%name
%clean
%__rm -rf %buildroot
%files
%defattr(-, root, root)
%_bindir/*
%_docdir/*
%changelog