2007-11-16 04:25:53 +01:00
|
|
|
#
|
2011-09-18 20:56:19 +02:00
|
|
|
# spec file for package SDL_sound
|
2007-11-16 04:25:53 +01:00
|
|
|
#
|
2013-01-07 14:50:52 +01:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-11-16 04:25:53 +01:00
|
|
|
#
|
2009-05-29 00:58:14 +02: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-11-16 04:25:53 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: SDL_sound
|
2013-11-11 05:05:00 +01:00
|
|
|
Summary: Sound Sample Library for SDL (Simple DirectMedia Layer)
|
|
|
|
License: LGPL-2.1+
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Version: 1.0.3
|
|
|
|
Release: 0
|
|
|
|
Url: http://icculus.org/SDL_sound/
|
|
|
|
|
|
|
|
Source: %{name}-%{version}-nompglib.tar.bz2
|
|
|
|
Source2: baselibs.conf
|
|
|
|
Patch0: %{name}-%{version}-nompglib.patch
|
2013-01-07 14:50:52 +01:00
|
|
|
BuildRequires: flac-devel
|
|
|
|
BuildRequires: libSDL-devel
|
|
|
|
BuildRequires: libmikmod-devel
|
|
|
|
BuildRequires: libogg-devel
|
|
|
|
BuildRequires: libvorbis-devel
|
|
|
|
BuildRequires: physfs-devel
|
|
|
|
BuildRequires: speex-devel
|
|
|
|
BuildRequires: pkgconfig(libmodplug)
|
2007-11-16 04:25:53 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
SDL_sound is a library that handles the decoding of several popular
|
|
|
|
sound file formats, such as wav, ogg mp3 and midi. SDL_sound can just
|
|
|
|
play a file or alternatively decode a file and hand back a single
|
|
|
|
pointer to the waveform. SDL_sound also can handle channel conversion
|
|
|
|
on-the-fly and behind-the-scenes.
|
|
|
|
|
2009-05-29 00:58:14 +02:00
|
|
|
%package -n libSDL_sound-1_0-1
|
|
|
|
Summary: Sound Sample Library for SDL (Simple DirectMedia Layer)
|
2013-01-07 14:50:52 +01:00
|
|
|
Group: System/Libraries
|
2009-05-29 00:58:14 +02:00
|
|
|
Provides: SDL_sound = %{version}
|
2009-10-08 02:51:29 +02:00
|
|
|
Obsoletes: SDL_sound <= %{version}
|
2009-05-29 00:58:14 +02:00
|
|
|
|
|
|
|
%description -n libSDL_sound-1_0-1
|
|
|
|
SDL_sound is a library that handles the decoding of several popular
|
|
|
|
sound file formats, such as wav, ogg mp3 and midi. SDL_sound can just
|
|
|
|
play a file or alternatively decode a file and hand back a single
|
|
|
|
pointer to the waveform. SDL_sound also can handle channel conversion
|
|
|
|
on-the-fly and behind-the-scenes.
|
|
|
|
|
|
|
|
%package -n libSDL_sound-devel
|
2007-11-16 04:25:53 +01:00
|
|
|
Summary: Sound Sample Library for SDL (Simple DirectMedia Layer)
|
2009-05-29 00:58:14 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2013-01-07 14:50:52 +01:00
|
|
|
Requires: libSDL-devel
|
|
|
|
Requires: libSDL_sound-1_0-1 = %{version}
|
2009-05-29 00:58:14 +02:00
|
|
|
Provides: SDL_sound-devel = %{version}
|
2009-10-08 02:51:29 +02:00
|
|
|
Obsoletes: SDL_sound-devel <= %{version}
|
2007-11-16 04:25:53 +01:00
|
|
|
|
2009-05-29 00:58:14 +02:00
|
|
|
%description -n libSDL_sound-devel
|
2007-11-16 04:25:53 +01:00
|
|
|
SDL_sound is a library that handles the decoding of several popular
|
|
|
|
sound file formats, such as wav, ogg mp3 and midi. SDL_sound can just
|
|
|
|
play a file or alternatively decode a file and hand back a single
|
|
|
|
pointer to the waveform. SDL_sound also can handle channel conversion
|
|
|
|
on-the-fly and behind-the-scenes.
|
|
|
|
|
|
|
|
%prep
|
2008-04-25 16:45:09 +02:00
|
|
|
%setup -q
|
2008-04-23 02:05:42 +02:00
|
|
|
%patch0
|
2007-11-16 04:25:53 +01:00
|
|
|
|
|
|
|
%build
|
2009-05-29 00:58:14 +02:00
|
|
|
%configure \
|
|
|
|
--disable-static \
|
|
|
|
--with-pic \
|
|
|
|
--disable-sdltest \
|
|
|
|
--disable-smpeg \
|
|
|
|
--disable-mpglib
|
2011-07-05 02:09:16 +02:00
|
|
|
make %{?_smp_mflags}
|
2007-11-16 04:25:53 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
2008-05-22 04:32:44 +02:00
|
|
|
rm -f %{buildroot}%{_libdir}/*.la
|
2007-11-16 04:25:53 +01:00
|
|
|
|
2009-05-29 00:58:14 +02:00
|
|
|
%post -n libSDL_sound-1_0-1 -p /sbin/ldconfig
|
2007-11-16 04:25:53 +01:00
|
|
|
|
2009-05-29 00:58:14 +02:00
|
|
|
%postun -n libSDL_sound-1_0-1 -p /sbin/ldconfig
|
2007-11-16 04:25:53 +01:00
|
|
|
|
2009-05-29 00:58:14 +02:00
|
|
|
%files -n libSDL_sound-1_0-1
|
2007-11-16 04:25:53 +01:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc CHANGELOG COPYING CREDITS README TODO
|
|
|
|
%{_libdir}/lib*.so.*
|
|
|
|
|
2009-05-29 00:58:14 +02:00
|
|
|
%files -n libSDL_sound-devel
|
2007-11-16 04:25:53 +01:00
|
|
|
%defattr(-,root,root)
|
2009-05-29 00:58:14 +02:00
|
|
|
%{_bindir}/playsound*
|
2007-11-16 04:25:53 +01:00
|
|
|
%{_includedir}/SDL
|
|
|
|
%{_libdir}/lib*.so
|
2008-04-23 02:05:42 +02:00
|
|
|
|
2007-11-16 04:25:53 +01:00
|
|
|
%changelog
|