diff --git a/fluidsynth-dssi-1.0.0-fluidsynth-2.3.2.patch b/fluidsynth-dssi-1.0.0-fluidsynth-2.3.2.patch new file mode 100644 index 0000000..17e7913 --- /dev/null +++ b/fluidsynth-dssi-1.0.0-fluidsynth-2.3.2.patch @@ -0,0 +1,36 @@ +diff --unified --recursive --text fluidsynth-dssi-1.0.0.orig/src/fluidsynth-dssi.c fluidsynth-dssi-1.0.0.new/src/fluidsynth-dssi.c +--- fluidsynth-dssi-1.0.0.orig/src/fluidsynth-dssi.c 2008-11-16 09:41:35.000000000 -0800 ++++ fluidsynth-dssi-1.0.0.new/src/fluidsynth-dssi.c 2019-09-22 13:03:54.789171736 -0700 +@@ -167,7 +167,7 @@ + fsd_sfont_t *sfont; + int palloc; + fluid_sfont_t *fluid_sfont; +- fluid_preset_t preset; ++ fluid_preset_t *preset; + + /* soundfont already loaded? */ + sfont = fsd_find_loaded_soundfont(path); +@@ -206,8 +206,8 @@ + return NULL; + } + fluid_sfont = fluid_synth_get_sfont_by_id(fsd_synth.fluid_synth, sfont->sfont_id); +- fluid_sfont->iteration_start(fluid_sfont); +- while (fluid_sfont->iteration_next(fluid_sfont, &preset)) { ++ fluid_sfont_iteration_start(fluid_sfont); ++ while (preset = fluid_sfont_iteration_next(fluid_sfont)) { + if (sfont->preset_count == palloc) { + palloc *= 2; + sfont->presets = (DSSI_Program_Descriptor *)realloc(sfont->presets, +@@ -219,9 +219,9 @@ + return NULL; + } + } +- sfont->presets[sfont->preset_count].Bank = preset.get_banknum(&preset); +- sfont->presets[sfont->preset_count].Program = preset.get_num(&preset); +- sfont->presets[sfont->preset_count].Name = preset.get_name(&preset); ++ sfont->presets[sfont->preset_count].Bank = fluid_preset_get_banknum(preset); ++ sfont->presets[sfont->preset_count].Program = fluid_preset_get_num(preset); ++ sfont->presets[sfont->preset_count].Name = fluid_preset_get_name(preset); + sfont->preset_count++; + } + diff --git a/fluidsynth-dssi.spec b/fluidsynth-dssi.spec index 3340265..8f0f61c 100644 --- a/fluidsynth-dssi.spec +++ b/fluidsynth-dssi.spec @@ -1,63 +1,38 @@ Name: fluidsynth-dssi Version: 1.0.0 -Release: 1mamba +Release: 2mamba Summary: A wrapper for the FluidSynth SoundFont-playing software synthesizer, allowing it to function as a DSSI plugin Group: Applications/Multimedia Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco -URL: http://dssi.sourceforge.net +URL: https://dssi.sourceforge.net/ Source: http://downloads.sourceforge.net/project/dssi/fluidsynth-dssi/%{version}/fluidsynth-dssi-%{version}.tar.gz +Patch0: fluidsynth-dssi-1.0.0-fluidsynth-2.3.2.patch License: GPL ## AUTOBUILDREQ-BEGIN -BuildRequires: fluidsynth-devel BuildRequires: glibc-devel -BuildRequires: libalsa-devel -BuildRequires: libatk-devel +BuildRequires: libat-spi2-core-devel BuildRequires: libcairo-devel -BuildRequires: libdbus-devel -BuildRequires: libexpat-devel -BuildRequires: libflac-devel +BuildRequires: libfluidsynth-devel BuildRequires: libfontconfig-devel BuildRequires: libfreetype-devel BuildRequires: libgdk-pixbuf-devel -BuildRequires: libGL-devel BuildRequires: libglib-devel -BuildRequires: libglitz-devel -BuildRequires: libgtk-devel -BuildRequires: libjack-devel -BuildRequires: liblash-devel +BuildRequires: libgtk2-devel +BuildRequires: libharfbuzz-devel BuildRequires: liblo-devel -BuildRequires: libncurses-devel -BuildRequires: libogg-devel BuildRequires: libpango-devel -BuildRequires: libpixman-devel -BuildRequires: libpng-devel -BuildRequires: libportaudio-devel -BuildRequires: libpthread-stubs-devel -BuildRequires: libpulseaudio-devel -BuildRequires: libreadline-devel -BuildRequires: libselinux-devel -BuildRequires: libsndfile-devel -BuildRequires: libstdc++6-devel -BuildRequires: libuuid-devel -BuildRequires: libvorbis-devel -BuildRequires: libX11-devel -BuildRequires: libXau-devel -BuildRequires: libxcb-devel -BuildRequires: libxcb-util-devel -BuildRequires: libXdmcp-devel -BuildRequires: libXrender-devel -BuildRequires: libz-devel -BuildRequires: udev-devel ## AUTOBUILDREQ-END -BuildRoot: %{_tmppath}/%{name}-%{version}-root %description A wrapper for the FluidSynth SoundFont-playing software synthesizer, allowing it to function as a DSSI plugin. +%debug_package + %prep %setup -q +%patch 0 -p1 -b .fluidsynth-2.3.2 %build %configure @@ -72,11 +47,14 @@ A wrapper for the FluidSynth SoundFont-playing software synthesizer, allowing it %files %defattr(-,root,root) -%{_libdir}/dssi/fluidsynth-dssi.la %{_libdir}/dssi/fluidsynth-dssi.so %{_libdir}/dssi/fluidsynth-dssi/FluidSynth-DSSI_gtk -%doc COPYING ChangeLog README TODO +%doc COPYING +#ChangeLog README TODO %changelog +* Sun Jun 11 2023 Silvan Calarco 1.0.0-2mamba +- rebuilt for x86_64 and with debug package + * Mon Mar 07 2011 Silvan Calarco 1.0.0-1mamba - package created by autospec