Sisyphus repositório
Última atualização: 9 dezembro 2019 | SRPMs: 17494 | Visitas: 16046162
en ru br
ALT Linux repositórios
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 :: Sistema/Bibliotecas
RPM: libmng

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%set_automake_version 1.11

Name: libmng
Version: 2.0.3
Release: alt2

Summary: A library for handling MNG files
License: Distributable (see LICENSE)
Group: System/Libraries
Url: http://www.libmng.com/

# 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
Patch3: libmng-2.0.3-debian-linux-makefile.patch

# Automatically added by buildreq on Tue Sep 23 2008

BuildRequires: gcc-c++ libSDL-devel libXext-devel libXt-devel libjpeg-devel liblcms2-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 -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 -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
%patch1 -p1
%patch2 -p1
%patch3 -p1

%build
%autoreconf
%configure --enable-shared --disable-static \
--with-zlib --with-jpeg --with-lcms
%make_build

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

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

%install
mkdir -p %buildroot%_mandir/man{3,5}
%makeinstall
install -pD -m755 contrib/gcc/xmngview/xmngview %buildroot%_bindir/mngview
install -pD -m755 contrib/gcc/sdl-mngplay/mngplay %buildroot%_bindir/mngplay

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

%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/*
%_pkgconfigdir/*.pc
%_mandir/man3/*

%files -n mng-utils
%_bindir/*

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009