libSDL_mixer/libSDL_mixer.spec

132 lines
4.4 KiB
RPMSpec
Raw Permalink Normal View History

Name: libSDL_mixer
Version: 1.2.12
Release: 3mamba
Summary: SDL_mixer is a sample multi-channel audio mixer library
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://www.libsdl.org/projects/SDL_mixer/
Source: https://www.libsdl.org/projects/SDL_mixer/release/SDL_mixer-%{version}.tar.gz
Patch0: libSDL_mixer-1.2.12-double-free-crash.patch
Patch1: libSDL_mixer-1.2.12-fluidsynth-use-after-free.patch
Patch2: libSDL_mixer-1.2.12-fluidsynth-volume.patch
Patch3: libSDL_mixer-1.2.12-mikmod1.patch
Patch4: libSDL_mixer-1.2.12-mikmod2.patch
Patch5: libSDL_mixer-1.2.12-c99.patch
License: LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libsdl12-compat-devel
## AUTOBUILDREQ-END
BuildRequires: libvorbis-devel
BuildRequires: libmikmod-devel
%description
SDL_mixer is a sample multi-channel audio mixer library.
It supports any number of simultaneously playing channels of 16 bit stereo audio, plus a single channel of music, mixed by the popular MikMod MOD, Timidity MIDI, Ogg Vorbis, and SMPEG MP3 libraries.
%package devel
Group: Development/Libraries
Summary: Static libraries and headers for %name
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description devel
SDL_mixer is a sample multi-channel audio mixer library.
It supports any number of simultaneously playing channels of 16 bit stereo audio, plus a single channel of music, mixed by the popular MikMod MOD, Timidity MIDI, Ogg Vorbis, and SMPEG MP3 libraries.
This package contains static libraries and header files needed for development.
%package tools
Group: Applications/Multimedia
Summary: Tools provided with %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description tools
SDL_mixer is a sample multi-channel audio mixer library.
It supports any number of simultaneously playing channels of 16 bit stereo audio, plus a single channel of music, mixed by the popular MikMod MOD, Timidity MIDI, Ogg Vorbis, and SMPEG MP3 libraries.
This package contains static the tools provided with %{name}.
%debug_package
%prep
%setup -q -n SDL_mixer-%{version}
%patch 0 -p1 -b .double-free-crash
%patch 1 -p1 -b .fluidsynth-use-after-free
%patch 2 -p1 -b .fluidsynth-volume
%patch 3 -p1 -b .mikmod1
%patch 4 -p1 -b .mikmod2
%patch 5 -p1 -b .c99
sed -i "s,| arm-\* |,| aarch64-\* | arm-\* |," build-scripts/config.sub
%build
%configure
#--disable-smpegtest
%make LDFLAGS=-lm
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall install-bin
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/libSDL_mixer*.so.*
%doc COPYING
%files devel
%defattr(-,root,root)
%{_includedir}/SDL/*.h
%{_libdir}/libSDL_mixer.a
%{_libdir}/libSDL_mixer.so
%{_libdir}/pkgconfig/SDL_mixer.pc
%doc CHANGES README
%files tools
%defattr(-,root,root)
%{_bindir}/playmus
%{_bindir}/playwave
%changelog
* Wed Jun 19 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2.12-3mamba
- rebuilt without .la file
* Tue Feb 08 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2.12-2mamba
- rbuilt with debug package, -tools subpackage and patches taken from Arch Linux
* Mon Jan 23 2012 Automatic Build System <autodist@mambasoft.it> 1.2.12-1mamba
- automatic version update by autodist
* Sun Aug 22 2010 Automatic Build System <autodist@mambasoft.it> 1.2.11-3mamba
- automatic rebuild by autodist
* Fri Jul 02 2010 Davide Madrisan <davide.madrisan@gmail.com> 1.2.11-2mamba
- update specfile
- own %{_includedir}/SDL
- force linking with the libm library
- install playmus and playwave binaries
- fix build requirements
* Tue Jan 26 2010 Automatic Build System <autodist@mambasoft.it> 1.2.11-1mamba
- automatic update by autodist
* Mon Oct 26 2009 Automatic Build System <autodist@mambasoft.it> 1.2.9-1mamba
- automatic update by autodist
* Fri Nov 16 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2.8-1mamba
- update to 1.2.8
* Wed Oct 25 2006 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2.7-1qilnx
- update to version 1.2.7 by autospec
* Thu Dec 23 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2.6-1qilnx
- update to version 1.2.6 by autospec
* Fri Aug 06 2004 Davide Madrisan <davide.madrisan@qilinux.it> 1.2.5-1qilnx
- package creation