Name: yoshimi
Version: 1.3.1
Release: 1%{?dist}
Summary: Rewrite of ZynAddSubFx aiming for better JACK support
Group: Applications/Multimedia
License: GPLv2+
URL: http://sourceforge.net/projects/%{name}
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
Source1: %{name}.desktop
Patch0: %{name}-cflags.patch
BuildRequires: jack-audio-connection-kit-devel
BuildRequires: cmake
BuildRequires: zlib-devel
BuildRequires: fontconfig-devel
BuildRequires: fltk-devel
BuildRequires: fltk-fluid
BuildRequires: fftw3-devel
BuildRequires: mxml-devel
BuildRequires: alsa-lib-devel
BuildRequires: libsndfile-devel
BuildRequires: desktop-file-utils
BuildRequires: boost-devel
BuildRequires: mesa-libGL-devel
BuildRequires: cairo-devel
BuildRequires: lv2-devel
%description
Yoshimi is a rewrite of ZynAddSubFx to improve its compatibility with
the Jack Audio Connection Kit.
ZynAddSubFX is an open source software synthesizer capable of making a
countless number of instrument sounds. It is microtonal, and the instruments
made by it sounds like those from professional keyboards. The program has
effects like Reverb, Echo, Chorus, Phaser...
%prep
%setup -q
%patch0 -p1
%build
cd src
export CFLAGS="%{optflags}"
%cmake -DCMAKE_CXX_FLAGS="$cxxflags" -DFLTK_INCLUDE_DIR=%{_includedir}/Fl .
make VERBOSE=1 %{?_smp_mflags}
%install
cd src
make install DESTDIR=%{buildroot}
mkdir -p %{buildroot}%{_datadir}/applications
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE1}
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/scalable/apps
install -m 644 ../desktop/%{name}.png %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/
#Remove superfluous file
rm %{buildroot}%{_datadir}/%{name}/banks/chip/.bankdir
# Fix directory permissions without affecting patch files
chmod 755 %{buildroot}%{_datadir}/%{name}/banks
chmod 755 %{buildroot}%{_datadir}/%{name}/banks/*
chmod 755 %{buildroot}%{_datadir}/%{name}/presets
chmod 755 %{buildroot}%{_datadir}/%{name}/presets/*
%post
update-desktop-database -q
touch --no-create %{_datadir}/icons/hicolor/scalable/apps/ >&/dev/null || :
%postun
update-desktop-database -q
if [ $1 -eq 0 ]; then
touch --no-create %{_datadir}/icons/hicolor/scalable/apps >&/dev/null || :
gtk-update-icon-cache %{_datadir}/icons/hicolor/scalable/apps >&/dev/null || :
fi
%posttrans
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor.scalable/apps &>/dev/null || :
%files
%doc Changelog COPYING README.txt
%{_bindir}/%{name}
%{_datadir}/%{name}/banks/
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/scalable/apps/%{name}.png
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/%{name}/presets/
%{_datadir}/icons/%{name}.svg
%{_datadir}/appdata/%{name}.appdata.xml
%changelog
* Sat Dec 27 2014 Adam Huffman <bloch@verdurin.com> - 1.3.1-1
- Update to 1.3.1
- Add BR for lv2
* Sun Oct 05 2014 Adam Huffman <bloch@verdurin.com> - 1.2.4-1
- Update to 1.2.4
- Notes file now replaced by Changelog
* Tue Sep 02 2014 Brendan Jones <brendan.jones.it@gmail.com> 1.2.3-2
- Correct notes
* Tue Sep 02 2014 Brendan Jones <brendan.jones.it@gmail.com> 1.2.3-1
- Update to 1.2.3
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
* Sun Jul 20 2014 Adam Huffman <bloch@verdurin.com> - 1.2.2-1
- Update to upstream 1.2.2
- Add appdata and new icon
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Fri May 30 2014 Adam Huffman <bloch@verdurin.com> - 1.2.1-1
- Update to 1.2.1
- Remove format-security patch, now that fix is in upstream
- Include README
* Fri May 23 2014 Petr Machata <pmachata@redhat.com> - 1.2.0-3
- Rebuild for boost 1.55.0
* Mon May 19 2014 Peter Robinson <pbrobinson@fedoraproject.org> 1.2.0-2
- Re-add cflags patch to fix FTBFS
* Wed Mar 19 2014 Brendan Jones <brendan.jones.it@gmail.com> 1.2.0-1
- Update to 1.2.0
* Thu Aug 1 2013 Peter Robinson <pbrobinson@fedoraproject.org> 1.1.0-4
- Use distro optflags rather than random project flags to fix FTBFS on ARM
- Modernise spec
* Tue Jul 30 2013 Petr Machata <pmachata@redhat.com> - 1.1.0-3
- Rebuild for boost 1.54.0
* Thu May 9 2013 Adam Huffman <bloch@verdurin.com> - 1.1.0-2
- add cairo BR
* Thu May 9 2013 Adam Huffman <bloch@verdurin.com> - 1.1.0-1
- First build of new upstream release 1.1.0
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Mon Oct 29 2012 Adam Huffman <bloch@verdurin.com> - 1.0.0-3
- add BR for mesa-libGL-devel, needed by FLTK
* Mon Oct 29 2012 Adam Huffman <bloch@verdurin.com> - 1.0.0-2
- correct fix for FLTK header detection by cmake
- add pixmaps to files
* Mon Oct 29 2012 Adam Huffman <bloch@verdurin.com> - 1.0.0-1
- update to upstream 1.0.0 release
- fix FLTK detection, from Brendan Jones
* Sun Apr 15 2012 Adam Huffman <verdurin@fedoraproject.org> - 0.060.12-4
- add missing posttrans scriptlet
* Mon Feb 20 2012 Adam Huffman <verdurin@fedoraproject.org> - 0.060.12-3
- re-add downstream desktop file
- remove extra .bankdir file
* Sun Feb 19 2012 Adam Huffman <verdurin@fedoraproject.org> - 0.060.12-2
- use upstream desktop and icon files
- fix missing parameters in upstream desktop file
- actually remove FLTK patch
* Sun Jan 8 2012 Adam Huffman <verdurin@fedoraproject.org> - 0.060.12-1
- update to new upstream release 0.060.12
- remove FLTK 1.3 patch
* Mon Aug 29 2011 Adam Huffman <bloch@verdurin.com> - 0.060.10-2
- add patch from Brendan Jones to fix compilation with FLTK 1.3
* Sun Apr 17 2011 Adam Huffman <bloch@verdurin.com> - 0.060.10-1
- new upstream release with further licensing clarification
* Mon Apr 11 2011 Adam Huffman <bloch@verdurin.com> - 0.060.9-1
- new upstream release with licence clarification
* Sun Apr 10 2011 Adam Huffman <bloch@verdurin.com> - 0.060.8-2
- add COPYING and notes to docs
* Sat Apr 9 2011 Adam Huffman <bloch@verdurin.com> - 0.060.8-1
- new upstream release 0.060.8
- add boost-devel BR
- consistent use of macros
- fix directory permissions for banks/presets
* Sun Jun 20 2010 Adam Huffman <bloch@verdurin.com> - 0.058-1
- desktop file and icon added
* Sun May 16 2010 Adam Huffman <bloch@verdurin.com> - 0.056-1
- new upstream release, fixing PAD synth patch problems
* Sun Mar 28 2010 Adam Huffman <bloch@verdurin.com> - 0.055.6-1
- new upstream bugfilx release
* Sat Mar 13 2010 Adam Huffman <bloch@verdurin.com> - 0.055.3-1
- initial version