2007-01-15 23:50:24 +01:00
|
|
|
|
#
|
2011-09-18 20:56:10 +02:00
|
|
|
|
# spec file for package SDL_mixer
|
2007-01-15 23:50:24 +01:00
|
|
|
|
#
|
2015-01-06 13:27:47 +01:00
|
|
|
|
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-15 23:50:24 +01:00
|
|
|
|
#
|
2008-11-02 15:44:46 +01:00
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
2007-01-15 23:50:24 +01:00
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: SDL_mixer
|
2013-08-15 15:56:53 +02:00
|
|
|
|
%define lname libSDL_mixer-1_2-0
|
2013-02-25 11:21:50 +01:00
|
|
|
|
Version: 1.2.12
|
2013-01-07 14:53:55 +01:00
|
|
|
|
Release: 0
|
2015-01-06 13:27:47 +01:00
|
|
|
|
Summary: SDL sound mixer library
|
|
|
|
|
License: Zlib
|
|
|
|
|
Group: Development/Libraries/C and C++
|
2013-08-15 15:56:53 +02:00
|
|
|
|
Url: http://libsdl.org/projects/SDL_mixer/release-1.2.html
|
|
|
|
|
|
2013-08-28 16:27:13 +02:00
|
|
|
|
Source: http://libsdl.org/projects/SDL_mixer/release/%name-%version.tar.gz
|
2010-01-12 10:16:12 +01:00
|
|
|
|
Source1: baselibs.conf
|
2013-11-23 20:39:49 +01:00
|
|
|
|
# PATCH-FIX-UPSTREAM: http://hg.libsdl.org/SDL_mixer/rev/56cad6484b04
|
|
|
|
|
Patch1: mikmod1.patch
|
|
|
|
|
# PATCH-FIX-UPSTREAM: http://hg.libsdl.org/SDL_mixer/rev/2ebb0d016f27
|
|
|
|
|
Patch2: mikmod2.patch
|
|
|
|
|
# PATCH-FIX-UPSTREAM: http://hg.libsdl.org/SDL_mixer/rev/2d713670db9b
|
|
|
|
|
Patch3: double-free-crash.patch
|
2007-01-15 23:50:24 +01:00
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2013-08-15 15:56:53 +02:00
|
|
|
|
BuildRequires: pkgconfig
|
2015-01-06 13:27:47 +01:00
|
|
|
|
BuildRequires: pkgconfig(flac)
|
|
|
|
|
BuildRequires: pkgconfig(fluidsynth)
|
|
|
|
|
BuildRequires: pkgconfig(libmikmod)
|
|
|
|
|
BuildRequires: pkgconfig(libmodplug) >= 0.8.7
|
|
|
|
|
BuildRequires: pkgconfig(sdl)
|
|
|
|
|
BuildRequires: pkgconfig(vorbis)
|
2007-12-17 12:05:19 +01:00
|
|
|
|
|
2009-05-28 23:36:18 +02:00
|
|
|
|
%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.
|
|
|
|
|
|
2013-08-15 15:56:53 +02:00
|
|
|
|
%package -n %lname
|
2015-01-06 13:27:47 +01:00
|
|
|
|
Summary: Simple DirectMedia Layer – Sound mixer library
|
2009-05-28 23:36:18 +02:00
|
|
|
|
Group: System/Libraries
|
2015-01-06 13:27:47 +01:00
|
|
|
|
Provides: SDL_mixer = %version
|
|
|
|
|
Obsoletes: SDL_mixer < %version
|
2008-11-02 15:44:46 +01:00
|
|
|
|
# bug437293
|
|
|
|
|
%ifarch ppc64
|
2009-05-28 23:36:18 +02:00
|
|
|
|
Obsoletes: SDL_mixer-64bit
|
2008-11-02 15:44:46 +01:00
|
|
|
|
%endif
|
2007-01-15 23:50:24 +01:00
|
|
|
|
|
2013-08-15 15:56:53 +02:00
|
|
|
|
%description -n %lname
|
2007-01-15 23:50:24 +01:00
|
|
|
|
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.
|
|
|
|
|
|
2009-05-28 23:36:18 +02:00
|
|
|
|
%package -n libSDL_mixer-devel
|
2015-01-06 13:27:47 +01:00
|
|
|
|
Summary: Development files for the SDL sound mixer library
|
2013-11-11 05:03:20 +01:00
|
|
|
|
Group: Development/Libraries/C and C++
|
2015-01-06 13:27:47 +01:00
|
|
|
|
Requires: %lname = %version
|
2013-01-07 14:53:55 +01:00
|
|
|
|
Requires: libSDL-devel
|
2015-01-06 13:27:47 +01:00
|
|
|
|
Provides: SDL_mixer-devel = %version
|
|
|
|
|
Obsoletes: SDL_mixer-devel < %version
|
2009-05-28 23:36:18 +02:00
|
|
|
|
# bug437293
|
|
|
|
|
%ifarch ppc64
|
|
|
|
|
Obsoletes: SDL_mixer-devel-64bit
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%description -n libSDL_mixer-devel
|
2007-01-15 23:50:24 +01:00
|
|
|
|
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
|
2009-12-21 15:40:04 +01:00
|
|
|
|
%setup -q
|
2013-11-23 20:39:49 +01:00
|
|
|
|
%patch1 -p1
|
|
|
|
|
%patch2 -p1
|
|
|
|
|
%patch3 -p1
|
2013-02-25 11:21:50 +01:00
|
|
|
|
# remove unneccessary files from upstream tarball [bnc#508180] to clean up source RPM
|
|
|
|
|
rm libmikmod-3.1.12.zip
|
|
|
|
|
rm Watcom-OS2.zip
|
|
|
|
|
rm -rf VisualC
|
|
|
|
|
rm -rf Xcode
|
|
|
|
|
rm -rf Xcode-iOS
|
2007-01-15 23:50:24 +01:00
|
|
|
|
|
|
|
|
|
%build
|
2015-01-06 13:27:47 +01:00
|
|
|
|
%configure --disable-music-mod-shared --disable-music-ogg-shared \
|
2015-01-06 13:31:00 +01:00
|
|
|
|
--disable-music-flac-shared --enable-music-mod-modplug \
|
|
|
|
|
--disable-static
|
2011-07-05 02:09:33 +02:00
|
|
|
|
make %{?_smp_mflags}
|
2007-01-15 23:50:24 +01:00
|
|
|
|
|
|
|
|
|
%install
|
2015-01-06 13:27:47 +01:00
|
|
|
|
%make_install install-bin
|
|
|
|
|
rm -f "%buildroot/%_libdir"/*.la
|
2007-01-15 23:50:24 +01:00
|
|
|
|
|
2015-01-06 13:27:47 +01:00
|
|
|
|
%post -n %lname -p /sbin/ldconfig
|
2013-08-15 15:56:53 +02:00
|
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
2007-01-15 23:50:24 +01:00
|
|
|
|
|
2013-08-15 15:56:53 +02:00
|
|
|
|
%files -n %lname
|
2007-01-15 23:50:24 +01:00
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%doc README CHANGES COPYING
|
2015-01-06 13:27:47 +01:00
|
|
|
|
%_libdir/libSDL_mixer-1*.so.*
|
2007-01-15 23:50:24 +01:00
|
|
|
|
|
2009-05-28 23:36:18 +02:00
|
|
|
|
%files -n libSDL_mixer-devel
|
2007-01-15 23:50:24 +01:00
|
|
|
|
%defattr(-,root,root)
|
2015-01-06 13:27:47 +01:00
|
|
|
|
%_bindir/play*
|
|
|
|
|
%_includedir/SDL/
|
|
|
|
|
%_libdir/libSDL_mixer.so
|
|
|
|
|
%_libdir/pkgconfig/SDL_mixer.pc
|
2007-01-15 23:50:24 +01:00
|
|
|
|
|
2007-03-03 14:36:00 +01:00
|
|
|
|
%changelog
|