SDL_mixer/SDL_mixer.spec
Stephan Kulow fce0d68e27 Accepting request 27250 from home:jengelh:branches:games
Copy from home:jengelh:branches:games/SDL_mixer via accept of submit request 27250 revision 2.
Request was accepted with message:

OBS-URL: https://build.opensuse.org/request/show/27250
OBS-URL: https://build.opensuse.org/package/show/games/SDL_mixer?expand=0&rev=4
2009-12-20 21:49:29 +00:00

116 lines
3.3 KiB
RPMSpec

#
# spec file for package SDL_mixer (Version 1.2.8)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: SDL_mixer
BuildRequires: libSDL-devel libmikmod-devel libogg-devel libvorbis-devel
Summary: Sample Mixer Library for SDL
Version: 1.2.8
Release: 156
License: LGPL v2.1 or later
Group: System/Libraries
# removed VisualC.zip, Watcom-OS2.zip, Xcode.tar.gz from upstream tarball [bnc#508180]
Source: %{name}-%{version}-repack.tar.bz2
Source2: baselibs.conf
Patch0: %{name}-%{version}-timidity_cfg.patch
Patch1: %{name}-%{version}-64bit-fix.patch
Url: http://www.libsdl.org/projects/SDL_mixer/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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
License: LGPL v2.1 or later
Provides: SDL_mixer = %{version}
Obsoletes: SDL_mixer <= %{version}
# bug437293
%ifarch ppc64
Obsoletes: SDL_mixer-64bit
%endif
%description -n libSDL_mixer-1_2-0
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-devel
License: LGPL v2.1 or later
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}
Obsoletes: SDL_mixer-devel <= %{version}
# bug437293
%ifarch ppc64
Obsoletes: SDL_mixer-devel-64bit
%endif
%description -n libSDL_mixer-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
%patch0
%patch1
%build
%configure \
--disable-static \
--with-pic \
--enable-music-libmikmod
make %{?jobs:-j %jobs}
%install
make install install-bin DESTDIR=$RPM_BUILD_ROOT
rm -f %{buildroot}%{_libdir}/*.la
%clean
rm -rf $RPM_BUILD_ROOT
%post -n libSDL_mixer-1_2-0 -p /sbin/ldconfig
%postun -n libSDL_mixer-1_2-0 -p /sbin/ldconfig
%files -n libSDL_mixer-1_2-0
%defattr(-,root,root)
%doc README CHANGES COPYING
%{_libdir}/*.so.*
%files -n libSDL_mixer-devel
%defattr(-,root,root)
%{_bindir}/play*
%{_includedir}/SDL/*
%{_libdir}/*.so
%changelog