## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec Name: zmusic Version: 1.1.14 Release: %autorelease Summary: GZDoom's music system as a standalone library License: GPL-3.0-only AND LGPL-3.0-only AND Zlib URL: https://github.com/ZDoom/ZMusic Source: %{url}/archive/refs/tags/%{version}.tar.gz Patch: zmusic-1.1.14-0001-unbundle-fluidsynth.patch Patch: zmusic-1.1.14-0002-unbundle-libxmp.patch BuildRequires: g++ BuildRequires: cmake BuildRequires: alsa-lib-devel BuildRequires: fluidsynth-devel BuildRequires: libxmp-devel BuildRequires: mpg123-devel BuildRequires: libsndfile-devel # unavailable Provides: bundled(adlmidi) = 1.5.1 # patched (kode54/dumb) Provides: bundled(dumb) = 1.0.0 # patched Provides: bundled(game-music-emu) = 0.6.2 # game-music-emu uses this Provides: bundled(miniz) = 3.0.0 # patched Provides: bundled(oplsynth) # unavailable Provides: bundled(opnmidi) = 1.5.1 # timidity Provides: bundled(timidity) # patched Provides: bundled(timidity++) # patched Provides: bundled(wildmidi) %description GZDoom's music system as a standalone library %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and header files needed for developing applications that use %{name} %prep %autosetup -n ZMusic-%{version} -p1 rm -rf thirdparty/fluidsynth rm thirdparty/mpg123.h rm thirdparty/sndfile.h # https://github.com/ZDoom/ZMusic/issues/64 rm licenses/dumb.txt cp thirdparty/dumb/licence.txt licenses/dumb.txt %build %cmake -DDYN_SNDFILE=OFF -DDYN_MPG123=OFF %cmake_build %install %cmake_install %check %ctest %files %license licenses/* %{_libdir}/libzmusic.so.1{,.*} %{_libdir}/libzmusiclite.so.1{,.*} %files devel %{_includedir}/zmusic.h %{_libdir}/cmake/ZMusic/ %{_libdir}/libzmusic.so %{_libdir}/libzmusiclite.so %changelog ## START: Generated by rpmautospec * Sat Dec 14 2024 John Doe - 1.1.14-1 - Uncommitted changes ## END: Generated by rpmautospec