Sisyphus repository
Last update: 28 february 2020 | SRPMs: 17499 | Visits: 17549912
en ru br
ALT Linux repos

Group :: System/Libraries
RPM: libpnglite

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

# Upstream doesn't use a SONAME and nobody knows how stable the interface is
# Please take extra care when updating this package -- bump the following
# and rebuild dependencies (shouldn't be many) if you suspect an ABI change:
%define abi_major 0
%define abi_minor 1

Name: libpnglite
Version: 0.1.17
Release: alt3

Summary: Lightweight PNG C library
License: zlib/libpng
Group: System/Libraries


Patch1: pnglite-0.1.17-teeworldsfixes.patch

# Automatically added by buildreq on Wed Sep 02 2009

BuildRequires: unzip zlib-devel

pnglite is a C library for loading PNG images. It was created as a substitute
for libpng in situations when libpng is more than enough. It currently requires
zlib for inflate and crc checking and it can read the most common types of PNG
images. The library has a small and simple to use interface.

%package devel
Summary: Files needed to build and link programs with pnglite
Group: Development/C
Requires: %name = %version-%release

%description devel
This contains a header file and a link to library for the linker to link against

%setup -c -n pnglite-%version

subst 's#"../zlib/zlib.h"#<zlib.h>#' pnglite.c
subst 's/\r//' pnglite.h

%patch1 -p1

gcc %optflags -shared -fPIC -Wl,--soname, -o pnglite.c -lz

install -Dpm 644 pnglite.h %buildroot%_includedir/pnglite.h
install -Dpm 644 %buildroot%_libdir/
pushd %buildroot%_libdir
ln -s
ln -s


%files devel


Full changelog you can see here

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