SHA256
1
0
forked from pool/SDL2_mixer
Dominique Leuenberger 2015-01-08 22:03:29 +00:00 committed by Git OBS Bridge
commit bff4383364
2 changed files with 26 additions and 24 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Jan 8 09:33:53 UTC 2015 - jengelh@inai.de
- Improve package summary and description. Drop --with-pic which
is enabled implicitly anyway, remove redundant Requires.
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Aug 28 18:34:49 UTC 2013 - jengelh@inai.de Wed Aug 28 18:34:49 UTC 2013 - jengelh@inai.de

View File

@ -1,7 +1,7 @@
# #
# spec file for package SDL2_mixer # spec file for package SDL2_mixer
# #
# 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
@ -20,7 +20,7 @@ Name: SDL2_mixer
%define lname libSDL2_mixer-2_0-0 %define lname libSDL2_mixer-2_0-0
Version: 2.0.0 Version: 2.0.0
Release: 0 Release: 0
Summary: Sample Mixer Library for SDL2 Summary: SDL2 sound mixer library
License: Zlib License: Zlib
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Url: http://libsdl.org/projects/SDL_mixer/ Url: http://libsdl.org/projects/SDL_mixer/
@ -28,14 +28,13 @@ Url: http://libsdl.org/projects/SDL_mixer/
#Hg-Clone: http://hg.libsdl.org/SDL_mixer/ #Hg-Clone: http://hg.libsdl.org/SDL_mixer/
Source: http://libsdl.org/projects/SDL_mixer/release/%name-%version.tar.gz Source: http://libsdl.org/projects/SDL_mixer/release/%name-%version.tar.gz
Source1: baselibs.conf Source1: baselibs.conf
BuildRequires: flac-devel BuildRequires: pkg-config
BuildRequires: fluidsynth-devel BuildRequires: pkgconfig(flac)
BuildRequires: libSDL2-devel BuildRequires: pkgconfig(fluidsynth)
BuildRequires: libmikmod-devel BuildRequires: pkgconfig(libmikmod)
BuildRequires: libogg-devel
BuildRequires: libvorbis-devel
BuildRequires: pkgconfig
BuildRequires: pkgconfig(libmodplug) >= 0.8.8 BuildRequires: pkgconfig(libmodplug) >= 0.8.8
BuildRequires: pkgconfig(sdl2)
BuildRequires: pkgconfig(vorbis)
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description %description
@ -44,9 +43,9 @@ audio, plus a single channel of music, mixed by the popular MikMod MOD,
Timidity MIDI, and SMPEG MP3 libraries. Timidity MIDI, and SMPEG MP3 libraries.
%package -n %lname %package -n %lname
Summary: Sample Mixer Library for SDL2 Summary: Simple DirectMedia Layer 2  Sound mixer library
Group: System/Libraries Group: System/Libraries
Provides: SDL2_mixer = %{version} Provides: SDL2_mixer = %version-%release
%description -n %lname %description -n %lname
A multichannel audio mixer. It supports four channels of 16-bit stereo A multichannel audio mixer. It supports four channels of 16-bit stereo
@ -54,11 +53,10 @@ audio, plus a single channel of music, mixed by the popular MikMod MOD,
Timidity MIDI, and SMPEG MP3 libraries. Timidity MIDI, and SMPEG MP3 libraries.
%package -n libSDL2_mixer-devel %package -n libSDL2_mixer-devel
Summary: Sample Mixer Library for SDL2 - files mandatory for development Summary: Development files for the SDL2 sound mixer library
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Requires: %lname = %version Requires: %lname = %version
Requires: libSDL2-devel Provides: SDL2_mixer-devel = %version-%release
Provides: SDL2_mixer-devel = %{version}
%description -n libSDL2_mixer-devel %description -n libSDL2_mixer-devel
A multi-channel audio mixer. It supports 4 channels of 16-bit stereo A multi-channel audio mixer. It supports 4 channels of 16-bit stereo
@ -77,29 +75,27 @@ rm -rf external
--disable-music-ogg-shared \ --disable-music-ogg-shared \
--disable-music-flac-shared \ --disable-music-flac-shared \
--enable-music-mp3-smpeg-shared \ --enable-music-mp3-smpeg-shared \
--disable-static \ --disable-static
--with-pic
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
make install install-bin DESTDIR=%{buildroot} %make_install install-bin
rm -f %{buildroot}%{_libdir}/*.la rm -f "%buildroot/%_libdir"/*.la
# We have these debug tools in SDL_mixer-devel already # We have these debug tools in SDL_mixer-devel already
rm -f "%buildroot/%_bindir"/play* rm -f "%buildroot/%_bindir"/play*
%post -n %lname -p /sbin/ldconfig %post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig %postun -n %lname -p /sbin/ldconfig
%files -n %lname %files -n %lname
%defattr(-,root,root) %defattr(-,root,root)
%doc CHANGES.txt COPYING.txt README.txt %doc CHANGES.txt COPYING.txt README.txt
%{_libdir}/libSDL2_mixer-2*.so.* %_libdir/libSDL2_mixer-2*.so.*
%files -n libSDL2_mixer-devel %files -n libSDL2_mixer-devel
%defattr(-,root,root) %defattr(-,root,root)
%{_includedir}/SDL2/ %_includedir/SDL2/
%{_libdir}/libSDL2_mixer.so %_libdir/libSDL2_mixer.so
%{_libdir}/pkgconfig/SDL2_mixer.pc %_libdir/pkgconfig/SDL2_mixer.pc
%changelog %changelog