From 210a21322659ccb9a98ca76bfbc99a0710a89889 Mon Sep 17 00:00:00 2001 From: Ercole 'ercolinux' Carpanetto Date: Fri, 5 Jan 2024 17:42:41 +0100 Subject: [PATCH] package created using the webbuild interface [release 2.0.4-1mamba;Fri Feb 26 2021] --- README.md | 3 ++ sdl2_mixer.spec | 84 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 87 insertions(+) create mode 100644 sdl2_mixer.spec diff --git a/README.md b/README.md index d71d04d..5bbde83 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ # sdl2_mixer +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 FLAC, MikMod MOD, Timidity MIDI, Ogg Vorbis, and SMPEG MP3 libraries. + diff --git a/sdl2_mixer.spec b/sdl2_mixer.spec new file mode 100644 index 0000000..80a4c08 --- /dev/null +++ b/sdl2_mixer.spec @@ -0,0 +1,84 @@ +Name: sdl2_mixer +Version: 2.0.4 +Release: 1mamba +Summary: a sample multi-channel audio mixer library. +Group: System/Multimedia +Vendor: openmamba +Distribution: openmamba +Packager: Ercole 'ercolinux' Carpanetto +URL: https://www.libsdl.org/projects/SDL_mixer/ +Source: https://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-%{version}.zip +License: zlib/libpng +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: ldconfig +BuildRequires: libSDL2-devel +## AUTOBUILDREQ-END +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} +Requires(post): %{__install_info} +Requires(preun): %{__install_info} + +%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 FLAC, MikMod MOD, Timidity MIDI, Ogg Vorbis, and SMPEG MP3 libraries. + +%package -n lib%{name} +Group: System/Libraries +Summary: Shared libraries for %{name} + +%description -n lib%{name} +This package contains shared libraries for %{name}. + +%package -n lib%{name}-devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} +Requires: pkg-config + +%description -n lib%{name}-devel +This package contains libraries and header files for developing applications that use %{name}. + + +%debug_package + +%prep +%setup -q -n SDL2_mixer-%{version} + +%build +%configure +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -n lib%{name} -p /sbin/ldconfig +%postun -n lib%{name} -p /sbin/ldconfig + +%post -n lib%{name}-devel +%install_info %{name}.info +exit 0 + +%preun -n lib%{name}-devel +%uninstall_info %{name}.info +exit 0 + +%files -n lib%{name} +%defattr(-,root,root) +%{_libdir}/*.so.* + +%files -n lib%{name}-devel +%defattr(-,root,root) +%{_includedir}/SDL2/*.h +%{_libdir}/*.a +%{_libdir}/*.la +%{_libdir}/*.so +%{_libdir}/pkgconfig/*.pc +%doc README.txt + +%changelog +* Fri Feb 26 2021 Ercole 'ercolinux' Carpanetto 2.0.4-1mamba +- package created using the webbuild interface