Name: soundfont-fluid Version: 3.1 Release: 4mamba Summary: Pro-quality GM/GS soundfont Group: Applications/Multimedia Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: https://github.com/pianobooster/fluid-soundfont Source: http://ftp.de.debian.org/debian/pool/main/f/fluid-soundfont/fluid-soundfont_%{version}.orig.tar.gz License: MIT ## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-END BuildRequires: soundfont-utils Provides: fluid-soundfont Obsoletes: fluid-soundfont <= 3.1-3mamba Provides: soundfont-Fluid3 Obsoletes: soundfont-Fluid3 <= 3.1-3mamba %description FluidR3 is the third release of Frank Wen's pro-quality GM/GS soundfont. The soundfont has lots of excellent samples, including all the GM instruments along side with the GS instruments that are recycled and reprogrammed versions of the GM presets. %package common Summary: Common files for FluidR3 soundfont Group: Applications/Multimedia %description common FluidR3 is the third release of Frank Wen's pro-quality GM/GS soundfont. The soundfont has lots of excellent samples, including all the GM instruments along side with the GS instruments that are recycled and reprogrammed versions of the GM presets. This package contains common files shared among all FluidR3 soundfont packages. %package gm Summary: Pro-quality General Midi soundfont Group: Applications/Multimedia Requires: %{name}-common = %{version}-%{release} #Provides: soundfont2-default %description gm FluidR3 is the third release of Frank Wen's pro-quality GM/GS soundfont. The soundfont has lots of excellent samples, including all the GM instruments along side with the GS instruments that are recycled and reprogrammed versions of the GM presets. This package contains Fluid General Midi (GM) soundfont in soundfont 2.0 (.sf2) format. %package gs Summary: Pro-quality General Standard Extension soundfont Group: Applications/Multimedia Requires: %{name}-common = %{version}-%{release} Requires: %{name}-gm = %{version}-%{release} #Provides: soundfont2 %description gs FluidR3 is the third release of Frank Wen's pro-quality GM/GS soundfont. The soundfont has lots of excellent samples, including all the GM instruments along side with the GS instruments that are recycled and reprogrammed versions of the GM presets. This package contains instruments belonging to General Midi's General Standard (GS) Extension in soundfont 2.0 (.sf2) format. %package lite-patches Summary: Pro-quality General Midi soundfont in GUS patch format Group: Applications/Multimedia Requires: %{name}-common = %{version}-%{release} #Provides: timidity++-patches %description lite-patches FluidR3 is the third release of Frank Wen's pro-quality GM/GS soundfont. The soundfont has lots of excellent samples, including all the GM instruments along side with the GS instruments that are recycled and reprogrammed versions of the GM presets. This package contains Fluid General Midi (GM) soundfont in Gravis Ultrasound (GUS) patch (.pat) format. %prep %setup -q -n fluid-soundfont-%{version} %build unsf -v -s -m FluidR3_GM.sf2 unsf -v -s -m FluidR3_GS.sf2 for bank in GM-B{8,9,16} Standard{1,2,3,4,5,6,7} Room{1,2,3,4,5,6,7} Power{1,2,3} Jazz{1,2,3,4} Brush{1,2}; do sed -i "/$bank/d" FluidR3_GM.cfg rm -fr *$bank* done cat FluidR3_GM.cfg FluidR3_GS.cfg > FluidR3.cfg sed -i 's|FluidR3_GM-|%{_datadir}/soundfonts/%{name}-lite-patches/FluidR3_GM-|g' FluidR3.cfg sed -i 's|FluidR3_GS-|%{_datadir}/soundfonts/%{name}-lite-patches/FluidR3_GS-|g' FluidR3.cfg %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" mkdir -p %{buildroot}%{_datadir}/soundfonts install -pm 644 FluidR3_GM.sf2 %{buildroot}%{_datadir}/soundfonts install -pm 644 FluidR3_GS.sf2 %{buildroot}%{_datadir}/soundfonts #ln -s FluidR3_GM.sf2 %{buildroot}%{_datadir}/soundfonts/default.sf2 mkdir -p %{buildroot}%{_sysconfdir} mkdir -p %{buildroot}%{_datadir}/soundfonts/%{name}-lite-patches cp -a FluidR3_GM-* %{buildroot}%{_datadir}/soundfonts/%{name}-lite-patches cp -a FluidR3_GS-* %{buildroot}%{_datadir}/soundfonts/%{name}-lite-patches install -pm 644 FluidR3.cfg %{buildroot}%{_sysconfdir}/timidity.cfg %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %post gm mv -f %{_datadir}/soundfonts/default.sf2 %{_datadir}/soundfonts/default.sf2-old>/dev/null 2>&1 ln -sf %{_datadir}/soundfonts/FluidR3_GM.sf2 %{_datadir}/soundfonts/default.sf2 2>&1 %preun gm if [ "$1" = "0" ]; then %{__rm} -f %{_datadir}/soundfonts/default.sf2 2>&1 mv -f %{_datadir}/soundfonts/default.sf2-old %{_datadir}/soundfonts/default.sf2>/dev/null 2>&1 fi %files common %defattr(-,root,root) %dir %{_datadir}/soundfonts/ %doc COPYING README %files gm %defattr(-,root,root) %{_datadir}/soundfonts/FluidR3_GM.sf2 #%{_datadir}/soundfonts/default.sf2 %files gs %defattr(-,root,root) %{_datadir}/soundfonts/FluidR3_GS.sf2 %files lite-patches %defattr(-,root,root) %config %{_sysconfdir}/timidity.cfg %{_datadir}/soundfonts/%{name}-lite-patches/ %changelog * Sat Aug 20 2022 Silvan Calarco 3.1-4mamba - rebuilt * Mon May 10 2021 Automatic Build System 3.1-3mamba - automatic rebuild by autodist * Mon Jul 12 2010 Silvan Calarco 3.1-2mamba - port to openmamba devel - remad from fluid-soundfont, obsolete also soundfont-Fluid3 * Thu Jul 08 2010 gil 3.1-1mamba - package created by autospec