Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37549885
en ru br
ALT Linux repos
S:1.8.13-alt2
5.0: 1.6.4-alt1
4.1: 1.6.4-alt1
4.0: 1.6.4-alt1
3.0: 1.5.10-alt2

Group :: Graphics
RPM: pngcrush

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: pngcrush
Version: 1.7.35
Release: alt1

Summary: Utility to compress PNG files
License: BSD-style
Group: Graphics
Url: http://pmt.sourceforge.net/pngcrush/

# http://download.sourceforge.net/pmt/%name-%version.tar.xz

Source: %name-%version.tar

BuildPreReq: libpng-devel

%description
Pngcrush is an optimizer for PNG (Portable Network Graphics) files.
Its main purpose is to reduce the size of the PNG IDAT data stream by
trying various compression levels and PNG filter methods.  It also can
be used to remove unwanted ancillary chunks, or to add certain chunks
including gAMA, tRNS, and textual chunks.

%prep
%setup
find -name \*.h -type f -not \( -name cexcept.h -or -name pngcrush.h \) -delete

%build
%__cc %optflags pngcrush.c -o pngcrush \
$(pkg-config --cflags --libs libpng) -lz

%install
install -Dpm755 pngcrush %buildroot%_bindir/pngcrush

%files
%_bindir/*
%doc ChangeLog.*

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin