Name: soundfont-fluid Version: 3.1 Release: 2mamba Summary: Pro-quality GM/GS soundfont Group: Applications/Multimedia Vendor: openmamba Distribution: openmamba Packager: gil URL: http://www.hammersound.com/cgi-bin/soundlink.pl?action=view_category&category=Collections&ListStart=0&ListLength=20 Source: http://ftp.de.debian.org/debian/pool/main/f/fluid-soundfont/fluid-soundfont_%{version}.orig.tar.gz License: MIT BuildRequires: soundfont-utils BuildRoot: %{_tmppath}/%{name}-%{version}-root Provides: fluid-soundfont Obsoletes: fluid-soundfont Provides: soundfont-Fluid3 Obsoletes: soundfont-Fluid3 %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 * 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