Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37772001
en ru br
ALT Linux repos
S:1.45-alt2

Group :: System/Libraries
RPM: libglpng

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: libglpng
Version: 1.45
Release: alt2
Summary: Toolkit for loading PNG images as OpenGL textures
Group: System/Libraries
License: MIT
Url: https://admin.fedoraproject.org/pkgdb/packages/name/libglpng
# Upstream's dead
Source0: http://ftp.de.debian.org/debian/pool/main/libg/%name/%{name}_%version.orig.tar.gz
# From Debian - a Makefile. Yay.
Source1: libglpng-1.45-makefile
# Debian patch, couple of small fixes.
Patch0: libglpng-1.45-alt-nopaletteEXT.patch
Patch1: libglpng-1.45-alt-libpng.patch

BuildRequires: libpng-devel libGL-devel

%description
glpng is a small toolkit to make loading PNG image files as an OpenGL
texture as easy as possible.

%package devel
Summary: Development files for %name
Group: Development/C
Requires: %name = %version-%release

%description devel
The %name-devel package contains libraries and header files for
developing applications that use %name.

%prep
%setup -q -n %name-%version.orig
%patch0 -p1
%patch1 -p2
cp %SOURCE1 Makefile

%build
%make_build CFLAGS="$RPM_OPT_FLAGS -fPIC -Iinclude" libglpng.so.1.45

%install
%makeinstall DESTDIR=$RPM_BUILD_ROOT%prefix LIB=%_lib

%files
%doc glpng.htm
%_libdir/%name.so.*

%files devel
%doc Example glpng.htm
%_includedir/GL/*
%_libdir/%name.so

%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