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