From e2f459c5c0c26c67046e03a5608bdf7ac666fbb16ef5733332cc27511546fceb Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Thu, 28 May 2009 22:58:14 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/SDL_sound?expand=0&rev=6 --- SDL_sound.changes | 9 +++++-- SDL_sound.spec | 66 ++++++++++++++++++++++++++++++++++++----------- baselibs.conf | 1 + 3 files changed, 59 insertions(+), 17 deletions(-) create mode 100644 baselibs.conf diff --git a/SDL_sound.changes b/SDL_sound.changes index 0256ef4..a510e73 100644 --- a/SDL_sound.changes +++ b/SDL_sound.changes @@ -1,8 +1,13 @@ +------------------------------------------------------------------- +Wed May 20 17:08:10 CEST 2009 - prusnak@suse.cz + +- follow Shared Library Policy + ------------------------------------------------------------------- Mon May 19 11:14:00 CEST 2008 - crrodriguez@suse.de -- disable unusable static libraries - (there is no static libogg,libvorbis,flac,speex etc..) +- disable unusable static libraries + (there is no static libogg,libvorbis,flac,speex etc..) ------------------------------------------------------------------- Thu Apr 24 11:18:57 CEST 2008 - prusnak@suse.cz diff --git a/SDL_sound.spec b/SDL_sound.spec index a0e16b4..a1686a7 100644 --- a/SDL_sound.spec +++ b/SDL_sound.spec @@ -1,10 +1,17 @@ # # spec file for package SDL_sound (Version 1.0.3) # -# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. -# This file and all modifications and additions to the pristine -# package are under the same license as the package itself. +# 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/ # @@ -12,11 +19,11 @@ Name: SDL_sound -BuildRequires: SDL-devel flac-devel libmikmod-devel libogg-devel libvorbis-devel physfs-devel speex-devel +BuildRequires: flac-devel libSDL-devel libmikmod-devel libogg-devel libvorbis-devel physfs-devel speex-devel Url: http://icculus.org/SDL_sound/ Summary: Sound Sample Library for SDL (Simple DirectMedia Layer) Version: 1.0.3 -Release: 12 +Release: 66 Source: %{name}-%{version}-nompglib.tar.bz2 Patch0: %{name}-%{version}-nompglib.patch License: LGPL v2.1 or later @@ -36,13 +43,35 @@ Authors: -------- Ryan C. Gordon -%package devel +%package -n libSDL_sound-1_0-1 +Group: System/Libraries +Summary: Sound Sample Library for SDL (Simple DirectMedia Layer) +License: LGPL v2.1 or later +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. + + + +Authors: +-------- + Ryan C. Gordon + +%package -n libSDL_sound-devel License: LGPL v2.1 or later Summary: Sound Sample Library for SDL (Simple DirectMedia Layer) -Group: System/Libraries -Requires: %{name} = %{version} SDL-devel +Group: Development/Libraries/C and C++ +Requires: libSDL_sound-1_0-1 = %{version} libSDL-devel +Provides: SDL_sound-devel = %{version} +Obsoletes: SDL_sound-devel < %{version} -%description devel +%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 @@ -60,32 +89,39 @@ Authors: %patch0 %build -%configure --disable-static --with-pic --disable-sdltest --disable-smpeg --disable-mpglib +%configure \ + --disable-static \ + --with-pic \ + --disable-sdltest \ + --disable-smpeg \ + --disable-mpglib make %{?jobs:-j %jobs} %install make install DESTDIR=$RPM_BUILD_ROOT rm -f %{buildroot}%{_libdir}/*.la -%post -p /sbin/ldconfig +%post -n libSDL_sound-1_0-1 -p /sbin/ldconfig -%postun -p /sbin/ldconfig +%postun -n libSDL_sound-1_0-1 -p /sbin/ldconfig %clean rm -rf $RPM_BUILD_ROOT -%files +%files -n libSDL_sound-1_0-1 %defattr(-,root,root) %doc CHANGELOG COPYING CREDITS README TODO -%{_bindir}/playsound* %{_libdir}/lib*.so.* -%files devel +%files -n libSDL_sound-devel %defattr(-,root,root) +%{_bindir}/playsound* %{_includedir}/SDL %{_libdir}/lib*.so %changelog +* Wed May 20 2009 prusnak@suse.cz +- follow Shared Library Policy * Mon May 19 2008 crrodriguez@suse.de - disable unusable static libraries (there is no static libogg,libvorbis,flac,speex etc..) diff --git a/baselibs.conf b/baselibs.conf new file mode 100644 index 0000000..af55420 --- /dev/null +++ b/baselibs.conf @@ -0,0 +1 @@ +libSDL_sound-1_0-1