ALT Linux repositórios
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
%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