Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37886059
en ru br
ALT Linux repositórios
S:1.2.12-alt2.git40a7e1a
5.0: 1.2.8-alt4
4.1: 1.2.8-alt1
4.0: 1.2.7-alt2
3.0: 1.2.6-alt2

Group :: Sistema/Bibliotecas
RPM: SDL_mixer

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

# -*- rpm-spec -*-

%define lib_name lib%name

Summary: Simple DirectMedia Layer - mixer
Name: SDL_mixer
Version: 1.2.6
Release: alt2
Group: System/Libraries
License: LGPL
Url: http://www.devolution.com/~slouken/SDL/projects/SDL_mixer/
Source0: http://www.libsdl.org/projects/SDL_mixer/src/%name-%version.tar.gz
Patch0: SDL_mixer-fix-timidity-path.patch

%define SDL_ver 1.2.8
%define SMPEG_ver 0.4.4

# Automatically added by buildreq on Tue Feb 08 2005

BuildRequires: esound gcc-c++ gcc-g77 hostinfo libSDL-devel libogg-devel libsmpeg-devel libstdc++-devel libvorbis-devel xorg-x11-libs

BuildRequires: libSDL-devel >= %SDL_ver libsmpeg-devel >= %SMPEG_ver

%description
SDL_mixer is a sample multi-channel audio mixer library. It supports any number
of simultaneously playing channels of 16 bit stereo audio, plus a single
channel of music, mixed by the popular MikMod MOD, Timidity MIDI and SMPEG MP3
libraries.

%package -n %lib_name
Summary: Main library for %name
Group: System/Libraries
Requires: libSDL >= %SDL_ver libsmpeg >= %SMPEG_ver

%description -n %lib_name
This package contains the library needed to run programs dynamically
linked with %name.

%package -n %lib_name-devel
Summary: Headers for developing programs that will use %name
Group: Development/C
Requires: %lib_name = %version-%release

%description -n %lib_name-devel
This package contains the headers that programmers will need to develop
applications which will use %name.

%package -n %lib_name-devel-static
Summary: Static libraries for developing programs that will use %name
Group: Development/C
Requires: %lib_name-devel = %version-%release

%description -n %lib_name-devel-static
This package contains the static libraries that programmers will need to develop
applications which will use %name.

%prep
%setup -q
%patch0 -p1

%build
%configure --enable-music-mod  --disable-music-libmikmod
%make_build

%install
%makeinstall

# docs

for f in mikmod/{AUTHORS,README}; do
%__cp "$f" "$f".mikmod
done
for f in timidity/{FAQ,README}; do
%__cp "$f" "$f".timidity
done

%post -n %lib_name -p /sbin/ldconfig
%postun -n %lib_name -p /sbin/ldconfig

%files -n %lib_name
%_libdir/lib*.so.*
%doc README

%files -n %lib_name-devel
%_libdir/*.so
%_includedir/SDL/*
%doc CHANGES mikmod/*.mikmod timidity/*.timidity

%files -n %lib_name-devel-static
%_libdir/*.a

%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