SHA256
1
0
forked from pool/SDL_sound

Accepting request 280335 from games

- Improve package summary and description. Drop --with-pic which
  is enabled implicitly anyway.

OBS-URL: https://build.opensuse.org/request/show/280335
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/SDL_sound?expand=0&rev=23
This commit is contained in:
Dominique Leuenberger 2015-01-08 22:03:19 +00:00 committed by Git OBS Bridge
commit 1143ed82a7
2 changed files with 29 additions and 24 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Jan 8 09:52:45 UTC 2015 - jengelh@inai.de
- Improve package summary and description. Drop --with-pic which
is enabled implicitly anyway.
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Nov 11 04:04:25 UTC 2013 - jengelh@inai.de Mon Nov 11 04:04:25 UTC 2013 - jengelh@inai.de

View File

@ -1,7 +1,7 @@
# #
# spec file for package SDL_sound # spec file for package SDL_sound
# #
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -17,16 +17,17 @@
Name: SDL_sound Name: SDL_sound
%define lname libSDL_sound-1_0-1
Version: 1.0.3
Release: 0
Summary: Sound Sample Library for SDL (Simple DirectMedia Layer) Summary: Sound Sample Library for SDL (Simple DirectMedia Layer)
License: LGPL-2.1+ License: LGPL-2.1+
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Version: 1.0.3
Release: 0
Url: http://icculus.org/SDL_sound/ Url: http://icculus.org/SDL_sound/
Source: %{name}-%{version}-nompglib.tar.bz2 Source: %name-%version-nompglib.tar.bz2
Source2: baselibs.conf Source2: baselibs.conf
Patch0: %{name}-%{version}-nompglib.patch Patch0: %name-%version-nompglib.patch
BuildRequires: flac-devel BuildRequires: flac-devel
BuildRequires: libSDL-devel BuildRequires: libSDL-devel
BuildRequires: libmikmod-devel BuildRequires: libmikmod-devel
@ -44,13 +45,13 @@ play a file or alternatively decode a file and hand back a single
pointer to the waveform. SDL_sound also can handle channel conversion pointer to the waveform. SDL_sound also can handle channel conversion
on-the-fly and behind-the-scenes. on-the-fly and behind-the-scenes.
%package -n libSDL_sound-1_0-1 %package -n %lname
Summary: Sound Sample Library for SDL (Simple DirectMedia Layer) Summary: Sound Sample Library for SDL (Simple DirectMedia Layer)
Group: System/Libraries Group: System/Libraries
Provides: SDL_sound = %{version} Provides: SDL_sound = %version
Obsoletes: SDL_sound <= %{version} Obsoletes: SDL_sound <= %version
%description -n libSDL_sound-1_0-1 %description -n %lname
SDL_sound is a library that handles the decoding of several popular 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 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 play a file or alternatively decode a file and hand back a single
@ -58,12 +59,12 @@ pointer to the waveform. SDL_sound also can handle channel conversion
on-the-fly and behind-the-scenes. on-the-fly and behind-the-scenes.
%package -n libSDL_sound-devel %package -n libSDL_sound-devel
Summary: Sound Sample Library for SDL (Simple DirectMedia Layer) Summary: Development files for the SDL sound sample library
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Requires: libSDL-devel Requires: %lname = %version
Requires: libSDL_sound-1_0-1 = %{version} Requires: pkgconfig(sdl)
Provides: SDL_sound-devel = %{version} Provides: SDL_sound-devel = %version
Obsoletes: SDL_sound-devel <= %{version} Obsoletes: SDL_sound-devel <= %version
%description -n libSDL_sound-devel %description -n libSDL_sound-devel
SDL_sound is a library that handles the decoding of several popular SDL_sound is a library that handles the decoding of several popular
@ -79,29 +80,27 @@ on-the-fly and behind-the-scenes.
%build %build
%configure \ %configure \
--disable-static \ --disable-static \
--with-pic \
--disable-sdltest \ --disable-sdltest \
--disable-smpeg \ --disable-smpeg \
--disable-mpglib --disable-mpglib
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
make install DESTDIR=$RPM_BUILD_ROOT make install DESTDIR=%buildroot
rm -f %{buildroot}%{_libdir}/*.la rm -f "%buildroot/%_libdir"/*.la
%post -n libSDL_sound-1_0-1 -p /sbin/ldconfig %post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig
%postun -n libSDL_sound-1_0-1 -p /sbin/ldconfig
%files -n libSDL_sound-1_0-1 %files -n libSDL_sound-1_0-1
%defattr(-,root,root) %defattr(-,root,root)
%doc CHANGELOG COPYING CREDITS README TODO %doc CHANGELOG COPYING CREDITS README TODO
%{_libdir}/lib*.so.* %_libdir/lib*.so.*
%files -n libSDL_sound-devel %files -n libSDL_sound-devel
%defattr(-,root,root) %defattr(-,root,root)
%{_bindir}/playsound* %_bindir/playsound*
%{_includedir}/SDL %_includedir/SDL/
%{_libdir}/lib*.so %_libdir/lib*.so
%changelog %changelog