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
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