SHA256
1
0
forked from pool/SDL_sound
SDL_sound/SDL_sound.spec

107 lines
3.5 KiB
RPMSpec
Raw Normal View History

#
# spec file for package SDL_sound
#
# Copyright (c) 2013 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/
#
Name: SDL_sound
BuildRequires: flac-devel
BuildRequires: libSDL-devel
BuildRequires: libmikmod-devel
BuildRequires: libogg-devel
BuildRequires: libvorbis-devel
BuildRequires: physfs-devel
BuildRequires: speex-devel
BuildRequires: pkgconfig(libmodplug)
Url: http://icculus.org/SDL_sound/
Summary: Sound Sample Library for SDL (Simple DirectMedia Layer)
License: LGPL-2.1+
Group: System/Libraries
Version: 1.0.3
Release: 0
Source: %{name}-%{version}-nompglib.tar.bz2
Source2: baselibs.conf
Patch0: %{name}-%{version}-nompglib.patch
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.
%package -n libSDL_sound-1_0-1
Summary: Sound Sample Library for SDL (Simple DirectMedia Layer)
Group: System/Libraries
Provides: SDL_sound = %{version}
Obsoletes: SDL_sound <= %{version}
%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
Summary: Sound Sample Library for SDL (Simple DirectMedia Layer)
Group: Development/Libraries/C and C++
Requires: libSDL-devel
Requires: libSDL_sound-1_0-1 = %{version}
Provides: SDL_sound-devel = %{version}
Obsoletes: SDL_sound-devel <= %{version}
%description -n libSDL_sound-devel
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
%setup -q
%patch0
%build
%configure \
--disable-static \
--with-pic \
--disable-sdltest \
--disable-smpeg \
--disable-mpglib
make %{?_smp_mflags}
%install
make install DESTDIR=$RPM_BUILD_ROOT
rm -f %{buildroot}%{_libdir}/*.la
%post -n libSDL_sound-1_0-1 -p /sbin/ldconfig
%postun -n libSDL_sound-1_0-1 -p /sbin/ldconfig
%files -n libSDL_sound-1_0-1
%defattr(-,root,root)
%doc CHANGELOG COPYING CREDITS README TODO
%{_libdir}/lib*.so.*
%files -n libSDL_sound-devel
%defattr(-,root,root)
%{_bindir}/playsound*
%{_includedir}/SDL
%{_libdir}/lib*.so
%changelog