Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37047465
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.9
Release: alt1

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

Source: http://download.sourceforge.net/%name/%name-%version.tar.bz2
Patch1: %name-1.0.9-alt-build-fixes.patch
Patch2: %name-1.0.8-alt-player-build.patch

%ifarch %ix86
# for backwards compatibility
Provides: %name.so.0
%endif

# Automatically added by buildreq on Wed Dec 17 2003

BuildRequires: XFree86-devel gcc-c++ libSDL-devel libjpeg-devel liblcms-devel libstdc++-devel openmotif-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
find -type f -print0 |
xargs -r0 file -- |
egrep -w 'text|CRLF' |
cut -d: -f1 |
xargs -r subst -p 's/\r$//' --
%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 $RPM_BUILD_ROOT%_mandir/man{3,5}
%makeinstall -C build-std
%__install -pm755 build-mini/.libs/libmng.a $RPM_BUILD_ROOT%_libdir/libmng-mini.a
%__install -pD -m755 contrib/gcc/xmngview/xmngview $RPM_BUILD_ROOT%_bindir/mngview
%__install -pD -m755 contrib/gcc/sdl-mngplay/build-std/mngplay $RPM_BUILD_ROOT%_bindir/mngplay
%__ln_s -nf %name.so.%version $RPM_BUILD_ROOT%_libdir/%name.so.0

pushd doc/man
%__install -pm644 *.3 $RPM_BUILD_ROOT%_man3dir/
%__install -pm644 *.5 $RPM_BUILD_ROOT%_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