2007-01-15 23:50:24 +01:00
|
|
|
#
|
|
|
|
# spec file for package SDL_mixer (Version 1.2.7)
|
|
|
|
#
|
2007-01-18 19:37:48 +01:00
|
|
|
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-15 23:50:24 +01:00
|
|
|
# This file and all modifications and additions to the pristine
|
|
|
|
# package are under the same license as the package itself.
|
|
|
|
#
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
|
|
|
Name: SDL_mixer
|
2007-04-12 18:17:11 +02:00
|
|
|
BuildRequires: SDL-devel libmikmod-devel libogg-devel libvorbis-devel xorg-x11
|
2007-01-15 23:50:24 +01:00
|
|
|
Summary: Sample Mixer Library for SDL
|
|
|
|
Obsoletes: sdlmixer
|
|
|
|
Version: 1.2.7
|
2007-04-12 18:17:11 +02:00
|
|
|
Release: 45
|
2007-01-18 19:37:48 +01:00
|
|
|
License: GNU Library General Public License v. 2.0 and 2.1 (LGPL)
|
2007-01-15 23:50:24 +01:00
|
|
|
Group: System/Libraries
|
|
|
|
Source: %{name}-%{version}.tar.bz2
|
|
|
|
Patch: %{name}-timidity_cfg.patch
|
|
|
|
Patch1: SDL_mixer-64bit-fix.dif
|
|
|
|
Patch2: SDL_mixer-warn.dif
|
|
|
|
Patch3: SDL_mixer-libmikmod.patch
|
2007-01-18 19:37:48 +01:00
|
|
|
Patch4: SDL_mixer-timidity-crash.patch
|
2007-03-03 14:36:00 +01:00
|
|
|
URL: http://www.libsdl.org/projects/SDL_mixer/
|
2007-01-15 23:50:24 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%package devel
|
|
|
|
Requires: %{name} = %{version} SDL-devel libvorbis-devel libstdc++-devel gcc gpm libmikmod
|
|
|
|
Summary: Sample Mixer Library for SDL - files mandatory for development
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
|
|
|
%description
|
|
|
|
A multichannel audio mixer. It supports four channels of 16-bit stereo
|
|
|
|
audio, plus a single channel of music, mixed by the popular MikMod MOD,
|
|
|
|
Timidity MIDI, and SMPEG MP3 libraries.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
A multi-channel audio mixer. It supports 4 channels of 16-bit stereo
|
|
|
|
audio, plus a single channel of music, mixed by the popular MikMod MOD,
|
|
|
|
Timidity MIDI, and SMPEG MP3 libraries.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%patch -p1
|
|
|
|
%patch1
|
|
|
|
%patch2
|
|
|
|
%patch3
|
2007-01-18 19:37:48 +01:00
|
|
|
%patch4
|
2007-01-15 23:50:24 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
./autogen.sh
|
|
|
|
if [ -f /usr/%_lib/libsmpeg.so ] ; then
|
|
|
|
CONF_ARGS="--enable-music-mp3=yes"
|
|
|
|
else
|
|
|
|
CONF_ARGS="--enable-music-mp3=no"
|
2007-03-03 14:36:00 +01:00
|
|
|
fi
|
|
|
|
%configure \
|
|
|
|
--enable-music-libmikmod $CONF_ARGS
|
2007-01-15 23:50:24 +01:00
|
|
|
grep '^CFLAGS =.*-DUSE_TIMIDITY_MIDI' Makefile || true
|
|
|
|
grep '^CFLAGS =.*-DOGG_MUSIC' Makefile || true
|
|
|
|
grep '^CFLAGS =.*-DMP3_MUSIC' Makefile || true
|
2007-03-03 14:36:00 +01:00
|
|
|
make %{?jobs:-j %jobs}
|
2007-01-15 23:50:24 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
make install install-bin DESTDIR=%buildroot
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %buildroot
|
|
|
|
|
|
|
|
%post
|
|
|
|
%run_ldconfig
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%run_ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc README CHANGES COPYING
|
|
|
|
%{_bindir}/play*
|
|
|
|
%{_libdir}/*.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/*.a
|
|
|
|
%{_libdir}/*.la
|
|
|
|
%{_libdir}/*.so
|
|
|
|
%{_includedir}/SDL/*
|
|
|
|
|
2007-03-03 14:36:00 +01:00
|
|
|
%changelog
|
2007-04-12 18:17:11 +02:00
|
|
|
* Wed Apr 11 2007 - sbrabec@suse.cz
|
|
|
|
- Require just created libmikmod-devel instead of libmikmod.
|
2007-03-03 14:36:00 +01:00
|
|
|
* Fri Mar 02 2007 - prusnak@suse.cz
|
|
|
|
- cleaned spec file
|
2007-01-18 19:37:48 +01:00
|
|
|
* Thu Jan 18 2007 - prusnak@suse.cz
|
|
|
|
- fixed crash in timidity (timidity-crash.patch) [#235376]
|
2007-01-15 23:50:24 +01:00
|
|
|
* Thu Sep 14 2006 - nadvornik@suse.cz
|
|
|
|
- updated to 1.2.7:
|
|
|
|
* Added support for dynamically loading Ogg Vorbis library
|
|
|
|
* Search timidity.cfg also in /etc
|
|
|
|
* Fix memory leaks in timidity player
|
|
|
|
* Always build SDL_RWops music support
|
|
|
|
- fixed Requires of devel subpackage
|
|
|
|
* Fri Mar 10 2006 - bk@suse.de
|
|
|
|
- SDL_mixer-devel: add libstdc++ and gcc to Requires (libSDL_mixer.la)
|
|
|
|
- SDL_mixer-devel: add gpm and libmikmod to Requires (libSDL_mixer.la)
|
|
|
|
- SDL_mixer-devel: remove libogg-devel from Requires (already by libvorbis-devel)
|
|
|
|
* Tue Jan 31 2006 - aj@suse.de
|
|
|
|
- Add libogg-devel libvorbis-devel to BuildRequires.
|
|
|
|
* Wed Jan 25 2006 - mls@suse.de
|
|
|
|
- converted neededforbuild to BuildRequires
|
|
|
|
* Wed Jul 27 2005 - nadvornik@suse.cz
|
|
|
|
- added libmikmod to nfb [#98983]
|
|
|
|
* Thu Jul 21 2005 - nadvornik@suse.cz
|
|
|
|
- update to 1.2.6
|
|
|
|
- added devel subpackage
|
|
|
|
* Mon Mar 28 2005 - schwab@suse.de
|
|
|
|
- Fix namespace pollution.
|
|
|
|
* Fri Jan 28 2005 - ro@suse.de
|
|
|
|
- make it possible to build without smpeg
|
|
|
|
* Sat Jan 10 2004 - adrian@suse.de
|
|
|
|
- add %%run_ldconfig
|
|
|
|
* Fri Aug 08 2003 - bk@suse.de
|
|
|
|
- update to 1.2.5(numerious fixes, eg for mp3 playback, midi crash)
|
|
|
|
* Mon Dec 16 2002 - ro@suse.de
|
|
|
|
- fix build with automake, use "AUTOMAKE_OPTIONS = foreign"
|
|
|
|
* Tue Aug 20 2002 - tiwai@suse.de
|
|
|
|
- fixed the detection of 64bit architectures [bug #18106]
|
|
|
|
* Mon Jul 22 2002 - bk@suse.de
|
|
|
|
- don't use %%configure, it uses broken target_platform syntax
|
|
|
|
* Tue Jul 16 2002 - bk@suse.de
|
|
|
|
- update to 1.2.4
|
|
|
|
* Thu Jul 11 2002 - meissner@suse.de
|
|
|
|
- rerun auto* so we get shared libraries too.
|
|
|
|
* Tue Jan 22 2002 - ro@suse.de
|
|
|
|
- changed neededforbuild <kdelibs-artsd> to <kdelibs3-artsd>
|
|
|
|
* Thu Oct 18 2001 - tiwai@suse.de
|
|
|
|
- added suse_update_config to build shared libraries.
|
|
|
|
- added libogg/libvorbis and devel packages to neededforbuild.
|
|
|
|
* Thu Aug 16 2001 - nadvornik@suse.cz
|
|
|
|
- added smpeg-devel to neededforbuild
|
|
|
|
* Wed Aug 08 2001 - ro@suse.de
|
|
|
|
- changed neededforbuild <kdelibs kdelibs-devel> to <kdelibs-artsd>
|
|
|
|
* Wed Aug 08 2001 - ro@suse.de
|
|
|
|
- changed neededforbuild <sdl> to <SDL>
|
|
|
|
- changed neededforbuild <sdl-devel> to <SDL-devel>
|
|
|
|
* Fri Jun 22 2001 - ro@suse.de
|
|
|
|
- added kdelibs for artsd
|
|
|
|
* Thu Apr 12 2001 - nadvornik@suse.cz
|
|
|
|
- update to 1.2.0
|
|
|
|
* Mon Mar 26 2001 - ro@suse.de
|
|
|
|
- changed neededforbuild <sdl> to <sdl sdl-devel>
|
|
|
|
* Fri Mar 09 2001 - ro@suse.de
|
|
|
|
- added xf86
|
|
|
|
* Mon Mar 05 2001 - bk@suse.de
|
|
|
|
- rename sdlmixer -> SDL_mixer
|
|
|
|
- Update to 1.1.0 and added smpeg to neededforbuild for MP3 music support
|
|
|
|
- fix copyright (LGPL) and group (Applications/Sound -> System/Libraries)
|
|
|
|
- removed libmikmo from neededforbuild, SDL_mixer uses internal libmikmod
|
|
|
|
(and timidity) libs
|
|
|
|
* Mon Feb 19 2001 - uli@suse.de
|
|
|
|
- added alsa* to neededforbuild (needed by new SDL)
|
|
|
|
- added esound-devel to neededforbuild
|
|
|
|
* Mon Nov 06 2000 - ro@suse.de
|
|
|
|
- fixed neededforbuild
|
|
|
|
* Mon Oct 16 2000 - nadvornik@suse.cz
|
|
|
|
- fixed to compile with correct CFLAGS
|
|
|
|
* Thu May 25 2000 - freitag@suse.de
|
|
|
|
- new version v. 1.0.5
|