2007-01-15 23:50:24 +01:00
|
|
|
#
|
2009-12-20 22:49:29 +01:00
|
|
|
# spec file for package SDL_mixer (Version 1.2.8)
|
2007-01-15 23:50:24 +01:00
|
|
|
#
|
2009-05-28 23:36:18 +02:00
|
|
|
# Copyright (c) 2009 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-04-10 15:32:35 +02:00
|
|
|
|
2007-01-15 23:50:24 +01:00
|
|
|
Name: SDL_mixer
|
2009-05-28 23:36:18 +02:00
|
|
|
BuildRequires: libSDL-devel libmikmod-devel libogg-devel libvorbis-devel
|
2007-01-15 23:50:24 +01:00
|
|
|
Summary: Sample Mixer Library for SDL
|
2009-12-26 11:43:44 +01:00
|
|
|
Version: 1.2.8
|
2009-12-20 22:49:29 +01:00
|
|
|
Release: 156
|
|
|
|
License: LGPL v2.1 or later
|
2007-01-15 23:50:24 +01:00
|
|
|
Group: System/Libraries
|
2009-06-02 12:37:24 +02:00
|
|
|
# removed VisualC.zip, Watcom-OS2.zip, Xcode.tar.gz from upstream tarball [bnc#508180]
|
|
|
|
Source: %{name}-%{version}-repack.tar.bz2
|
2009-12-26 11:43:44 +01:00
|
|
|
Patch0: %{name}-%{version}-timidity_cfg.patch
|
|
|
|
Patch1: %{name}-%{version}-64bit-fix.patch
|
2007-12-17 12:05:19 +01:00
|
|
|
Url: http://www.libsdl.org/projects/SDL_mixer/
|
2007-01-15 23:50:24 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n libSDL_mixer-1_2-0
|
|
|
|
Summary: Sample Mixer Library for SDL
|
|
|
|
Group: System/Libraries
|
2009-12-20 22:49:29 +01:00
|
|
|
License: LGPL v2.1 or later
|
2009-05-28 23:36:18 +02:00
|
|
|
Provides: SDL_mixer = %{version}
|
2009-10-08 01:53:47 +02:00
|
|
|
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
|
|
|
|
2009-05-28 23:36:18 +02:00
|
|
|
%description -n libSDL_mixer-1_2-0
|
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
|
2009-12-20 22:49:29 +01:00
|
|
|
License: LGPL v2.1 or later
|
2009-05-28 23:36:18 +02:00
|
|
|
Requires: %{name} = %{version} SDL-devel
|
|
|
|
Summary: Sample Mixer Library for SDL - files mandatory for development
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: libSDL_mixer-1_2-0 = %{version} libSDL-devel
|
|
|
|
Provides: SDL_mixer-devel = %{version}
|
2009-10-08 01:53:47 +02:00
|
|
|
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
|
2009-12-26 11:43:44 +01:00
|
|
|
%patch0
|
|
|
|
%patch1
|
2007-01-15 23:50:24 +01:00
|
|
|
|
|
|
|
%build
|
2009-05-28 23:36:18 +02:00
|
|
|
%configure \
|
|
|
|
--disable-static \
|
|
|
|
--with-pic \
|
2007-07-27 02:09:24 +02:00
|
|
|
--enable-music-libmikmod
|
2007-03-03 14:36:00 +01:00
|
|
|
make %{?jobs:-j %jobs}
|
2007-01-15 23:50:24 +01:00
|
|
|
|
|
|
|
%install
|
2007-07-27 02:09:24 +02:00
|
|
|
make install install-bin DESTDIR=$RPM_BUILD_ROOT
|
2008-07-09 01:23:19 +02:00
|
|
|
rm -f %{buildroot}%{_libdir}/*.la
|
2007-01-15 23:50:24 +01:00
|
|
|
|
|
|
|
%clean
|
2007-07-27 02:09:24 +02:00
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2007-01-15 23:50:24 +01:00
|
|
|
|
2009-05-28 23:36:18 +02:00
|
|
|
%post -n libSDL_mixer-1_2-0 -p /sbin/ldconfig
|
2007-01-15 23:50:24 +01:00
|
|
|
|
2009-05-28 23:36:18 +02:00
|
|
|
%postun -n libSDL_mixer-1_2-0 -p /sbin/ldconfig
|
2007-01-15 23:50:24 +01:00
|
|
|
|
2009-05-28 23:36:18 +02:00
|
|
|
%files -n libSDL_mixer-1_2-0
|
2007-01-15 23:50:24 +01:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc README CHANGES COPYING
|
|
|
|
%{_libdir}/*.so.*
|
|
|
|
|
2009-05-28 23:36:18 +02:00
|
|
|
%files -n libSDL_mixer-devel
|
2007-01-15 23:50:24 +01:00
|
|
|
%defattr(-,root,root)
|
2009-05-28 23:36:18 +02:00
|
|
|
%{_bindir}/play*
|
2007-07-27 02:09:24 +02:00
|
|
|
%{_includedir}/SDL/*
|
2007-01-15 23:50:24 +01:00
|
|
|
%{_libdir}/*.so
|
|
|
|
|
2007-03-03 14:36:00 +01:00
|
|
|
%changelog
|