Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37403004
en ru br
ALT Linux repos
S:2.0.3-alt2
5.0: 1.0.10-alt1
4.1: 1.0.9-alt1
4.0: 1.0.9-alt1
3.0: 1.0.9-alt1

Group :: System/Libraries
RPM: libmng

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: libmng
Version: 1.0.10
Release: alt1

Summary: A library for handling MNG files
License: Distributable (see LICENSE)
Group: System/Libraries
Url: http://www.libmng.com/
Packager: Dmitry V. Levin <ldv at altlinux.org>

# http://downloads.sourceforge.net/libmng/libmng-%version.tar.bz2

Source: libmng-%version.tar
Patch1: libmng-1.0.10-alt-build-fixes.patch
Patch2: libmng-1.0.10-alt-player-build.patch

# Automatically added by buildreq on Tue Sep 23 2008

BuildRequires: gcc-c++ libSDL-devel libXt-devel libjpeg-devel liblcms-devel openmotif-devel xorg-printproto-devel xorg-xextproto-devel zlib-devel

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

%package devel-static
Summary: Static libraries for development with %name
Group: Development/C
Requires: %name-devel = %version-%release

%package -n mng-utils
Summary: Various %name-based utilities
Group: Graphics
Requires: %name = %version-%release

%description
The MNG library supports decoding, displaying, encoding, and various
other manipulations of the Multiple-image Network Graphics (MNG) format
image files. It uses the zlib compression library, and optionally the
JPEG library by the Independent JPEG Group (IJG) and/or lcms (little cms),
a color-management library by Marti Maria Saguar.

%description devel
The MNG library supports decoding, displaying, encoding, and various
other manipulations of the Multiple-image Network Graphics (MNG) format
image files. It uses the zlib compression library, and optionally the
JPEG library by the Independent JPEG Group (IJG) and/or lcms (little cms),
a color-management library by Marti Maria Saguar.

This package contains include files required for development %name-based
applications.

%description devel-static
The MNG library supports decoding, displaying, encoding, and various
other manipulations of the Multiple-image Network Graphics (MNG) format
image files. It uses the zlib compression library, and optionally the
JPEG library by the Independent JPEG Group (IJG) and/or lcms (little cms),
a color-management library by Marti Maria Saguar.

This package contains static libraries required for development statically
linked %name-based applications.

%description -n mng-utils
The MNG library supports decoding, displaying, encoding, and various
other manipulations of the Multiple-image Network Graphics (MNG) format
image files. It uses the zlib compression library, and optionally the
JPEG library by the Independent JPEG Group (IJG) and/or lcms (little cms),
a color-management library by Marti Maria Saguar.

This package contains various %name-based utilities.

%prep
%setup -q
%patch1 -p1
%patch2 -p1

%build
ln -s makefiles/{acinclude.m4,Makefile.am,configure.in} .
autoreconf -fisv
%define _configure_script ../configure
mkdir -p build-std build-mini

pushd build-std
%configure --with-lcms=yes
%make_build
popd #build-std

pushd build-mini
%configure  --without-zlib --without-lcms --without-jpeg
%make_build CPPFLAGS="-DNDEBUG -DMNG_NO_INCLUDE_JNG"
popd #build-mini

%make_build -C contrib/gcc/xmngview \
X11LIBDIR="-L%_x11libdir" \
CFLAGS="$RPM_OPT_FLAGS -I../../.." MNGLIB="-L../../../build-std/.libs -lmng"

pushd contrib/gcc/sdl-mngplay
sh ./autogen.sh
mkdir -p build-std
pushd build-std
export CPPFLAGS=-I../../../..
export LIBS=-L../../../../build-std/.libs
%configure
%make_build mngplay
popd #build-std
popd #contrib/gcc/sdl-mngplay

%install
mkdir -p %buildroot%_mandir/man{3,5}
%makeinstall -C build-std
install -pm755 build-mini/.libs/libmng.a %buildroot%_libdir/libmng-mini.a
install -pD -m755 contrib/gcc/xmngview/xmngview %buildroot%_bindir/mngview
install -pD -m755 contrib/gcc/sdl-mngplay/build-std/mngplay %buildroot%_bindir/mngplay

pushd doc/man
install -pm644 *.3 %buildroot%_man3dir/
install -pm644 *.5 %buildroot%_man5dir/
popd

%post -p %post_ldconfig
%postun -p %postun_ldconfig

%files
%_libdir/*.so.*
%_man5dir/*
%doc CHANGES LICENSE README README.contrib README.examples
%doc doc/*.* contrib/gcc/gtk-mng-view/*.mng

%files devel
%_libdir/*.so
%_includedir/*
%_mandir/man3/*

%files devel-static
%_libdir/*.a

%files -n mng-utils
%_bindir/*

%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