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
|
|
|
#
|
2015-01-08 10:53:13 +01:00
|
|
|
# Copyright (c) 2015 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
|
2015-01-08 10:53:13 +01:00
|
|
|
%define lname libSDL_sound-1_0-1
|
|
|
|
Version: 1.0.3
|
|
|
|
Release: 0
|
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++
|
|
|
|
Url: http://icculus.org/SDL_sound/
|
|
|
|
|
2015-01-08 10:53:13 +01:00
|
|
|
Source: %name-%version-nompglib.tar.bz2
|
2013-11-11 05:05:00 +01:00
|
|
|
Source2: baselibs.conf
|
2015-01-08 10:53:13 +01:00
|
|
|
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.
|
|
|
|
|
2015-01-08 10:53:13 +01:00
|
|
|
%package -n %lname
|
2009-05-29 00:58:14 +02:00
|
|
|
Summary: Sound Sample Library for SDL (Simple DirectMedia Layer)
|
2013-01-07 14:50:52 +01:00
|
|
|
Group: System/Libraries
|
2015-01-08 10:53:13 +01:00
|
|
|
Provides: SDL_sound = %version
|
|
|
|
Obsoletes: SDL_sound <= %version
|
2009-05-29 00:58:14 +02:00
|
|
|
|
2015-01-08 12:13:08 +01:00
|
|
|
%description -n %lname
|
2009-05-29 00:58:14 +02: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.
|
|
|
|
|
|
|
|
%package -n libSDL_sound-devel
|
2015-01-08 10:53:13 +01:00
|
|
|
Summary: Development files for the SDL sound sample library
|
2009-05-29 00:58:14 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2015-01-08 10:53:13 +01:00
|
|
|
Requires: %lname = %version
|
|
|
|
Requires: pkgconfig(sdl)
|
|
|
|
Provides: SDL_sound-devel = %version
|
|
|
|
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 \
|
|
|
|
--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
|
2015-01-08 10:53:13 +01:00
|
|
|
make install DESTDIR=%buildroot
|
|
|
|
rm -f "%buildroot/%_libdir"/*.la
|
2007-11-16 04:25:53 +01:00
|
|
|
|
2015-01-08 10:53:13 +01:00
|
|
|
%post -n %lname -p /sbin/ldconfig
|
|
|
|
%postun -n %lname -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
|
2015-01-08 10:53:13 +01:00
|
|
|
%_libdir/lib*.so.*
|
2007-11-16 04:25:53 +01:00
|
|
|
|
2009-05-29 00:58:14 +02:00
|
|
|
%files -n libSDL_sound-devel
|
2007-11-16 04:25:53 +01:00
|
|
|
%defattr(-,root,root)
|
2015-01-08 10:53:13 +01:00
|
|
|
%_bindir/playsound*
|
|
|
|
%_includedir/SDL/
|
|
|
|
%_libdir/lib*.so
|
2008-04-23 02:05:42 +02:00
|
|
|
|
2007-11-16 04:25:53 +01:00
|
|
|
%changelog
|