1
0
forked from pool/SDL_mixer
SDL_mixer/SDL_mixer.spec

174 lines
5.4 KiB
RPMSpec

#
# spec file for package SDL_mixer (Version 1.2.7)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# 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
BuildRequires: SDL-devel libmikmod libogg-devel libvorbis-devel xorg-x11
Summary: Sample Mixer Library for SDL
Obsoletes: sdlmixer
Version: 1.2.7
Release: 39
License: GNU Library General Public License v. 2.0 and 2.1 (LGPL)
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
Patch4: SDL_mixer-timidity-crash.patch
URL: http://www.libsdl.org/projects/SDL_mixer/
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
%patch4
%build
./autogen.sh
if [ -f /usr/%_lib/libsmpeg.so ] ; then
CONF_ARGS="--enable-music-mp3=yes"
else
CONF_ARGS="--enable-music-mp3=no"
fi
%configure \
--enable-music-libmikmod $CONF_ARGS
grep '^CFLAGS =.*-DUSE_TIMIDITY_MIDI' Makefile || true
grep '^CFLAGS =.*-DOGG_MUSIC' Makefile || true
grep '^CFLAGS =.*-DMP3_MUSIC' Makefile || true
make %{?jobs:-j %jobs}
%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/*
%changelog
* Fri Mar 02 2007 - prusnak@suse.cz
- cleaned spec file
* Thu Jan 18 2007 - prusnak@suse.cz
- fixed crash in timidity (timidity-crash.patch) [#235376]
* 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