5f9489d
Summary:      Real-time software synthesizer
5f9489d
Name:         fluidsynth
dce7765
Version:      1.0.9
dce7765
Release:      1%{?dist}
5f9489d
URL:          http://www.fluidsynth.org/
9146d26
Source0:      http://download.savannah.gnu.org/releases/fluid/fluidsynth-%{version}.tar.gz
6591ca8
License:      LGPLv2+
5f9489d
Group:        Applications/Multimedia
5f9489d
BuildRoot:    %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
5f9489d
Requires:     fluidsynth-libs = %{version}-%{release}
5f9489d
dce7765
BuildRequires: alsa-lib-devel
5f9489d
BuildRequires: jack-audio-connection-kit-devel
dce7765
BuildRequires: alsa-lib-devel 
dce7765
BuildRequires: ladspa-devel
5f9489d
BuildRequires: lash-devel
dce7765
BuildRequires: ncurses-devel
dce7765
BuildRequires: pkgconfig
dce7765
BuildRequires: portaudio-devel
dce7765
BuildRequires: readline-devel
dce7765
dce7765
# For documentation:
dce7765
BuildRequires: docbook-style-xsl
dce7765
BuildRequires: doxygen
dce7765
BuildRequires: libxslt
5f9489d
5f9489d
%description
5f9489d
FluidSynth is a real-time software synthesizer based on the SoundFont
5f9489d
2 specifications. It is a "software synthesizer". FluidSynth can read
5f9489d
MIDI events from the MIDI input device and render them to the audio
5f9489d
device. It can also play MIDI files (note: FluidSynth was previously
5f9489d
called IIWU Synth).
5f9489d
5f9489d
%package libs
5f9489d
Summary:   Real-time software synthesizer runtime libraries
5f9489d
Group:     System Environment/Libraries
5f9489d
5f9489d
%description libs
5f9489d
FluidSynth is a real-time software synthesizer based on the SoundFont
5f9489d
2 specifications. It is a "software synthesizer". This package holds
5f9489d
the runtime shared libraries.
5f9489d
5f9489d
%package devel
5f9489d
Summary:   Real-time software synthesizer development files
5f9489d
Group:     Development/Libraries
dce7765
Requires:  fluidsynth-libs = %{version}-%{release}
1a246ec
Requires:  pkgconfig
5f9489d
5f9489d
%description devel
5f9489d
FluidSynth is a real-time software synthesizer based on the SoundFont
5f9489d
2 specifications. It is a "software synthesizer". This package holds
5f9489d
header files for building programs that link against fluidsynth.
5f9489d
5f9489d
%prep
5f9489d
%setup -q
5f9489d
dce7765
# Fix encoding issues:
dce7765
for f in AUTHORS THANKS; do
dce7765
   iconv -f ISO-8859-1 -t UTF-8 $f > $f.tmp
dce7765
   touch -r $f $f.tmp
dce7765
   %{__mv} -f $f.tmp $f
dce7765
done
dce7765
5f9489d
%build
5f9489d
%configure --enable-jack-support --enable-ladspa --disable-static
5f9489d
dce7765
# remove rpath from libtool
dce7765
%{__sed} -i.rpath 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
dce7765
%{__sed} -i.rpath 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
dce7765
dce7765
# build fluidsynth
5f9489d
%{__make} %{?_smp_mflags}
5f9489d
dce7765
# build docs
dce7765
%{__make} DOCBOOK_STYLESHEET=%{_datadir}/sgml/docbook/xsl-stylesheets/html/chunk.xsl %{?_smp_mflags} -C doc update-docs
dce7765
dce7765
5f9489d
%install
5f9489d
%{__rm} -rf $RPM_BUILD_ROOT
dce7765
%{__make} DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" install
5f9489d
%{__mkdir} -p $RPM_BUILD_ROOT%{_datadir}/soundfonts
dce7765
%{__install} -pm 644 sf2/*.sf2 $RPM_BUILD_ROOT%{_datadir}/soundfonts
5f9489d
find $RPM_BUILD_ROOT -name \*.la | xargs rm
5f9489d
5f9489d
%clean
5f9489d
%{__rm} -rf $RPM_BUILD_ROOT
5f9489d
5f9489d
%post libs -p /sbin/ldconfig
5f9489d
5f9489d
%postun libs -p /sbin/ldconfig
5f9489d
5f9489d
%files
dce7765
%defattr(-,root,root,-)
5f9489d
%{_bindir}/fluid*
5f9489d
%{_mandir}/man1/*
5f9489d
5f9489d
%files libs
dce7765
%defattr(-,root,root,-)
5f9489d
%doc AUTHORS COPYING ChangeLog NEWS README sf2/COPYRIGHT THANKS TODO doc/FluidSynth-LADSPA.pdf
5f9489d
%{_libdir}/libfluidsynth.so.1
5f9489d
%{_libdir}/libfluidsynth.so.1.*
dce7765
%{_datadir}/soundfonts/
5f9489d
5f9489d
%files devel
dce7765
%defattr(-,root,root,-)
5f9489d
%doc doc/api doc/html
5f9489d
%{_includedir}/fluidsynth.h
dce7765
%{_includedir}/fluidsynth/
5f9489d
%{_libdir}/libfluidsynth.so
5f9489d
%{_libdir}/pkgconfig/*
5f9489d
5f9489d
%changelog
dce7765
* Sun Jun 28 2009 Orcan Ogetbil <oget[DOT]fedora[AT]gmail[DOT]com> - 1.0.9-1
dce7765
- Updated to 1.0.9
dce7765
- Clean rpath
dce7765
- Fix encoding issues
dce7765
- Remove unnecessary direct library dependencies
dce7765
- Add portaudio support
dce7765
8b623bf
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.8-3
8b623bf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
8b623bf
6591ca8
* Fri Jul 18 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.0.8-2
6591ca8
- fix license tag
6591ca8
9146d26
* Tue Jul 08 2008 Anthony Green <green@redhat.com> 1.0.8-1
9146d26
- Upgrade source.
9146d26
f69f733
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.0.7-11.a
f69f733
- Autorebuild for GCC 4.3
f69f733
d731f76
* Tue Oct 09 2007 Anthony Green <green@redhat.com> 1.0.7-10.a
d731f76
- Rebuilt for new lash again.
d731f76
fd33f73
* Mon Oct 08 2007 Anthony Green <green@redhat.com> 1.0.7-9.a
fd33f73
- Rebuilt for new lash.
fd33f73
4da98a9
* Thu Oct 05 2006 Christian Iseli <Christian.Iseli@licr.org> - 1.0.7-8.a
4da98a9
 - rebuilt for unwind info generation, broken in gcc-4.1.1-21
4da98a9
e6c7891
* Mon Sep 18 2006 Anthony Green <green@redhat.com> 1.0.7-7.a
e6c7891
- Rebuild.
e6c7891
1a246ec
* Mon Sep  4 2006 Anthony Green <green@redhat.com> 1.0.7-6.a
1a246ec
- devel package must Require pkgconfig.
1a246ec
5f9489d
* Thu Jul 13 2006 Anthony Green <green@redhat.com> 1.0.7-5.a
5f9489d
- Remove iiwusynth references.
5f9489d
- Don't install .la file.
dce7765
- Add %%doc bits.
5f9489d
- Move non-numersion version component to release tag.
5f9489d
- Fix libs and devel package names.
5f9489d
5f9489d
* Sat May 27 2006 Anthony Green <green@redhat.com> 1.0.7a-4
5f9489d
- Remove e2fsprogs-devel BuildRequires.
5f9489d
5f9489d
* Tue Apr 25 2006 Anthony Green <green@redhat.com> 1.0.7a-3
5f9489d
- Port from ladcca to lash.
5f9489d
- Configure with --disable-static.
5f9489d
- Install sample soundfont.  Own /usr/share/soundfonts.
5f9489d
- Use $RPM_BUILD_ROOT
5f9489d
- Add Requires to libfluidsynth.
5f9489d
- Change fluidsynth Requires to point at libfluidsynth.
5f9489d
5f9489d
* Sat Apr 22 2006 Anthony Green <green@redhat.com> 1.0.7a-2
5f9489d
- Minor spec file improvements.
5f9489d
5f9489d
* Tue Apr 18 2006 Anthony Green <green@redhat.com> 1.0.7a-1
5f9489d
- Update sources.  Build for Fedora Extras.
5f9489d
5f9489d
* Tue Dec 21 2004 Fernando Lopez-Lezcano <nando@ccrma.stanford.edu> 
5f9489d
- spec file cleanup
5f9489d
* Fri Sep 24 2004 Fernando Lopez-Lezcano <nando@ccrma.stanford.edu> 1.0.5-1
5f9489d
- updated to 1.0.5
5f9489d
- ladcca patch no longer needed
5f9489d
* Wed May 19 2004 Fernando Lopez-Lezcano <nando@ccrma.stanford.edu>
5f9489d
- added defattr to libfluidsynth
5f9489d
* Wed May 12 2004 Fernando Lopez-Lezcano <nando@ccrma.stanford.edu>
5f9489d
- added buildrequires, made midishare optional
5f9489d
* Tue Feb 24 2004 Fernando Lopez-Lezcano <nando@ccrma.stanford.edu> 1.0.3-3
5f9489d
- enabled ladcca 0.4.0 support (patch0)
5f9489d
* Tue Oct 21 2003 Fernando Lopez-Lezcano <nando@ccrma.stanford.edu> 1.0.3-2
5f9489d
- enabled midishare support
5f9489d
* Tue Aug 26 2003 Fernando Lopez-Lezcano <nando@ccrma.stanford.edu> 1.0.3-1
5f9489d
- updated to 1.0.3, added release tags
5f9489d
* Fri Jul 25 2003 Fernando Lopez-Lezcano <nando@ccrma.stanford.edu> 1.0.2-1
5f9489d
- updated to 1.0.2
5f9489d
* Thu May  8 2003 Fernando Lopez-Lezcano <nando@ccrma.stanford.edu> 1.0.1-1
5f9489d
- changed over to new fluidsynth name
5f9489d
- we obsolete only iiwusynth and libiiwusynth-devel, we leave libiiwusynth
5f9489d
  there for now for older programs to use. We cannot install both iiwusynth
5f9489d
  and fluidsynth as there is a pkgconfig file in libiiwusynth-devel named
5f9489d
  fluidsynth.pc.
5f9489d
* Wed Apr  2 2003 Fernando Lopez-Lezcano <nando@ccrma.stanford.edu> 0.2.4-4.cvs
5f9489d
- rebuild for jack 0.66.3, added explicit requires for it
5f9489d
* Fri Mar  7 2003 Fernando Lopez-Lezcano <nando@ccrma.stanford.edu> 0.2.4-3.cvs
5f9489d
- added patches for jack buffer size callback and alsa snd_pcm_drop
5f9489d
* Thu Mar  6 2003 Fernando Lopez-Lezcano <nando@ccrma.stanford.edu> 0.2.4-2.cvs
5f9489d
- cvs: 20030306.150630
5f9489d
* Thu Feb 27 2003 Fernando Lopez-Lezcano <nando@ccrma.stanford.edu> 0.2.4-1
5f9489d
- changed over to cvs version, includes jack and ladcca support
5f9489d
- disable ladcca support under redhat 7.2/7.3, can't get it to 
5f9489d
  compile
5f9489d
- split libraries into separate packages (from mandrake spec file)
5f9489d
* Sun Nov 10 2002 Fernando Lopez-Lezcano <nando@ccrma.stanford.edu> 0.2.2-2
5f9489d
- added patch to rename jack alsa ports for jack >= 0.40
5f9489d
- added explicit dependency to jack
5f9489d
* Mon Oct 21 2002 Fernando Lopez Lezcano <nando@ccrma.stanford.edu>
5f9489d
- Initial build.
5f9489d
5f9489d