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
|
|
|
#
|
2013-01-07 14:53:55 +01:00
|
|
|
# Copyright (c) 2013 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
|
2007-01-15 23:50:24 +01:00
|
|
|
Summary: Sample Mixer Library for SDL
|
2013-02-25 11:21:50 +01:00
|
|
|
License: Zlib
|
2013-08-15 15:56:53 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2013-02-25 11:21:50 +01:00
|
|
|
Version: 1.2.12
|
2013-01-07 14:53:55 +01:00
|
|
|
Release: 0
|
2013-08-15 15:56:53 +02:00
|
|
|
Url: http://libsdl.org/projects/SDL_mixer/release-1.2.html
|
|
|
|
|
|
|
|
Source: http://libsdl.org/projects/SDL_image/release/%name-%version.tar.gz
|
2010-01-12 10:16:12 +01:00
|
|
|
Source1: baselibs.conf
|
2007-01-15 23:50:24 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2013-08-15 15:56:53 +02:00
|
|
|
BuildRequires: flac-devel
|
|
|
|
BuildRequires: fluidsynth-devel
|
|
|
|
BuildRequires: libSDL-devel
|
|
|
|
BuildRequires: libmikmod-devel
|
|
|
|
BuildRequires: libvorbis-devel
|
|
|
|
BuildRequires: pkgconfig
|
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
|
2009-05-28 23:36:18 +02:00
|
|
|
Summary: Sample Mixer Library for SDL
|
|
|
|
Group: System/Libraries
|
|
|
|
Provides: SDL_mixer = %{version}
|
2013-02-25 11:21:50 +01: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
|
|
|
|
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
|
2013-01-07 14:53:55 +01:00
|
|
|
Requires: SDL-devel
|
2009-05-28 23:36:18 +02:00
|
|
|
Summary: Sample Mixer Library for SDL - files mandatory for development
|
|
|
|
Group: Development/Libraries/C and C++
|
2013-08-15 15:56:53 +02:00
|
|
|
Requires: %lname = %{version}
|
2013-01-07 14:53:55 +01:00
|
|
|
Requires: libSDL-devel
|
2009-05-28 23:36:18 +02:00
|
|
|
Provides: SDL_mixer-devel = %{version}
|
2013-02-25 11:21:50 +01: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
|
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
|
2013-01-07 14:53:55 +01:00
|
|
|
%configure --disable-music-mod-shared --disable-music-ogg-shared --disable-music-flac-shared \
|
2013-02-25 11:21:50 +01:00
|
|
|
--disable-static --with-pic
|
2011-07-05 02:09:33 +02:00
|
|
|
make %{?_smp_mflags}
|
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
|
|
|
|
2013-08-15 15:56:53 +02:00
|
|
|
%post -n %lname -p /sbin/ldconfig
|
2007-01-15 23:50:24 +01:00
|
|
|
|
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
|
2013-08-15 15:56:53 +02: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)
|
2009-05-28 23:36:18 +02:00
|
|
|
%{_bindir}/play*
|
2013-08-15 15:56:53 +02:00
|
|
|
%{_includedir}/SDL/
|
|
|
|
%{_libdir}/libSDL_mixer.so
|
2010-01-14 17:58:08 +01:00
|
|
|
%{_libdir}/pkgconfig/SDL_mixer.pc
|
2007-01-15 23:50:24 +01:00
|
|
|
|
2007-03-03 14:36:00 +01:00
|
|
|
%changelog
|