d2b8bd1
Name:           swami
08149df
Version:        2.0.0
3efb060
Release:        4.20110806svn386%{?dist}
d2b8bd1
Summary:        MIDI instrument and sound editor
d2b8bd1
Group:          Applications/Multimedia
08149df
License:        GPLv2
08149df
URL:            http://www.swamiproject.org/
08149df
# Upstream applied our patches and switched to cmake in trunk. It is easier
08149df
# just to package the trunk than patching it. The original tarball is at
08149df
#Source0:        http://downloads.sourceforge.net/swami/swami-%%{version}.tar.gz
08149df
Source0:        swami-2.0.0-svn386.tar.bz2
08149df
# To fetch the sources
08149df
Source1:        swami-snapshot.sh
08149df
08149df
BuildRequires:  cmake
d2b8bd1
BuildRequires:  desktop-file-utils
08149df
BuildRequires:  fftw-devel
d2b8bd1
BuildRequires:  fluidsynth-devel
08149df
BuildRequires:  libglade2-devel
08149df
BuildRequires:  libgnomecanvas-devel
08149df
BuildRequires:  libinstpatch-devel
08149df
BuildRequires:  librsvg2-devel
d2b8bd1
d2b8bd1
Requires:       hicolor-icon-theme
08149df
Requires:       swami-libs%{?_isa} = %{version}-%{release}
d2b8bd1
d2b8bd1
%description
d2b8bd1
The Swami Project - Sampled Waveforms And Musical Instruments - is a collection
d2b8bd1
of free software for editing and sharing MIDI instruments and sounds. Swami
d2b8bd1
aims to provide an instrument editing and sharing software for instrument 
d2b8bd1
formats such as SoundFont, DLS and GigaSampler. 
d2b8bd1
08149df
%package libs
08149df
Summary:        MIDI instrument and sound editor library
d2b8bd1
08149df
%description libs
08149df
Shared libraries for The Swami Project - Sampled Waveforms And Musical
08149df
Instruments.
d2b8bd1
08149df
%package devel
08149df
Summary:        MIDI instrument and sound editor development files
08149df
Requires:       swami-libs%{?_isa} = %{version}-%{release}
d2b8bd1
08149df
%description devel
08149df
Headers and development files for The Swami Project - Sampled Waveforms And
08149df
Musical Instruments.
d2b8bd1
08149df
%prep
08149df
%setup -q
d2b8bd1
08149df
%build
08149df
mkdir -p %{_target_platform}
08149df
pushd %{_target_platform}
08149df
%{cmake} -DLIB_SUFFIX="" -DPLUGINS_DIR=%{_libdir}/swami/ ..
08149df
popd
d2b8bd1
08149df
make %{?_smp_mflags} -C %{_target_platform}
d2b8bd1
d2b8bd1
08149df
%install
08149df
make install DESTDIR=%{buildroot} -C %{_target_platform}
293be9f
desktop-file-install                                    \
293be9f
    --add-category="AudioVideo"                         \
293be9f
    --add-category="X-Jack"                             \
293be9f
    --remove-category="Application"                     \
293be9f
    --remove-key="Encoding"                             \
293be9f
    --delete-original                                   \
293be9f
    --dir=%{buildroot}%{_datadir}/applications          \
293be9f
    %{buildroot}/%{_datadir}/applications/%{name}.desktop
d2b8bd1
d2b8bd1
d2b8bd1
%post
d2b8bd1
touch --no-create %{_datadir}/icons/hicolor &>/dev/null
d2b8bd1
update-desktop-database &> /dev/null
d2b8bd1
update-mime-database %{_datadir}/mime &> /dev/null || :
d2b8bd1
d2b8bd1
%postun
d2b8bd1
if [ $1 -eq 0 ] ; then
d2b8bd1
    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
d2b8bd1
    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null
d2b8bd1
fi
d2b8bd1
update-desktop-database &> /dev/null
d2b8bd1
update-mime-database %{_datadir}/mime &> /dev/null || :
d2b8bd1
d2b8bd1
%posttrans
d2b8bd1
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
d2b8bd1
08149df
%post libs -p /sbin/ldconfig
08149df
08149df
%postun libs -p /sbin/ldconfig
d2b8bd1
d2b8bd1
%files
08149df
%doc AUTHORS ChangeLog NEWS README
d2b8bd1
%{_libdir}/%{name}/
08149df
%{_datadir}/%{name}/
d2b8bd1
%{_bindir}/%{name}
d2b8bd1
%{_datadir}/applications/%{name}.desktop
08149df
%{_datadir}/icons/hicolor/*/apps/*
d2b8bd1
%{_datadir}/mime/packages/%{name}.xml
d2b8bd1
08149df
%files libs
08149df
%doc COPYING
08149df
%{_libdir}/lib%{name}*.so.*
08149df
08149df
%files devel
08149df
%doc HACKERS
08149df
%{_libdir}/lib%{name}*.so
08149df
%{_includedir}/%{name}/
08149df
08149df
d2b8bd1
%changelog
3efb060
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0-4.20110806svn386
3efb060
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
3efb060
3d90404
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0-3.20110806svn386
3d90404
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
3d90404
accd8b0
* Tue Dec 06 2011 Adam Jackson <ajax@redhat.com> - 2.0.0-2.20110806svn386
accd8b0
- Rebuild for new libpng
accd8b0
08149df
* Fri Aug 12 2011 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 2.0.0-1.20110806svn386
08149df
- Update to swami2. Fixes RHBZ#728694
08149df
9b51f13
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.4-7
9b51f13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
9b51f13
78afdc2
* Wed Aug 05 2009 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 0.9.4-6
40bf866
- Update .desktop file
40bf866
5138521
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.4-5
5138521
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
5138521
d2b8bd1
* Sun Apr 12 2009 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 0.9.4-4
d2b8bd1
- Add Requires: hicolor-icon-theme
d2b8bd1
d2b8bd1
* Fri Mar 27 2009 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 0.9.4-3
d2b8bd1
- Initial Fedora build
d2b8bd1
d2b8bd1
* Sun Jul 27 2008 Fernando Lopez-Lezcano <nando@ccrma.stanford.edu> 0.9.4-2
d2b8bd1
- updated for new fluidsynth libraries (1.0.8) on fc8
d2b8bd1
d2b8bd1
* Wed Nov 14 2007 Fernando Lopez-Lezcano <nando@ccrma.stanford.edu>
d2b8bd1
- updated desktop categories
d2b8bd1
- add popt-devel build requirement for f8
d2b8bd1
d2b8bd1
* Fri Sep 14 2007 Fernando Lopez-Lezcano <nando@ccrma.stanford.edu> 0.9.4-1
d2b8bd1
- updated to 0.9.4
d2b8bd1
d2b8bd1
* Tue May  8 2007 Fernando Lopez-Lezcano <nando@ccrma.stanford.edu> 0.9.3-2
d2b8bd1
- build on fc7, use autogen.sh to use the newer versions of auto* tools
d2b8bd1
- add MKINSTALLDIRS explicitly in make invocation
d2b8bd1
d2b8bd1
* Mon Apr 16 2007 Fernando Lopez-Lezcano <nando@ccrma.stanford.edu> 0.9.3-2
d2b8bd1
- spec file tweaks, build on fc6
d2b8bd1
d2b8bd1
* Mon May 29 2006 Fernando Lopez-Lezcano <nando@ccrma.stanford.edu> 0.9.3-1
d2b8bd1
- added Planet CCRMA categories to desktop file, spec file cleanups
d2b8bd1
- updated to 0.9.3
d2b8bd1
d2b8bd1
* Fri Nov 18 2005 Fernando Lopez-Lezcano <nando@ccrma.stanford.edu> 0.9.2-3
d2b8bd1
- rebuild for new version of fluidsynth (1.0.6)
d2b8bd1
- build requires lash (name change from ladcca)
d2b8bd1
- change all references from ladcca to lash
d2b8bd1
- added autotools build requirement (for change to lash), needs
d2b8bd1
  automake17
d2b8bd1
d2b8bd1
* Fri Dec 31 2004 Fernando Lopez-Lezcano <nando@ccrma.stanford.edu>
d2b8bd1
- spec file cleanup
d2b8bd1
d2b8bd1
* Fri Sep 24 2004 Fernando Lopez-Lezcano <nando@ccrma.stanford.edu> 0.9.2-2
d2b8bd1
- built for new fluidsynth libraries
d2b8bd1
- set libfluidsynth require to be for the exact version, swami is
d2b8bd1
  very picky and won't work with newer versions than the one it was
d2b8bd1
  compiled with
d2b8bd1
d2b8bd1
* Thu May 20 2004 Fernando Lopez-Lezcano <nando@ccrma.stanford.edu>
d2b8bd1
- added code to recognize libpng12.pc in configure
d2b8bd1
d2b8bd1
* Wed May 12 2004 Fernando Lopez-Lezcano <nando@ccrma.stanford.edu>
d2b8bd1
- added buildrequires
d2b8bd1
d2b8bd1
* Sun Feb 29 2004 Fernando Lopez-Lezcano <nando@ccrma.stanford.edu> 0.9.2-1
d2b8bd1
- updated to 0.9.2
d2b8bd1
- patched config.status to force recognition of libpng
d2b8bd1
- erased and obsoleted old libswami and libswami-devel packages
d2b8bd1
d2b8bd1
* Mon Nov 17 2003 Fernando Lopez-Lezcano <nando@ccrma.stanford.edu> 0.9.1a-3
d2b8bd1
- spec file tweaks, autogen ommited, does not work on FC1
d2b8bd1
d2b8bd1
* Fri Jul 25 2003 Fernando Lopez-Lezcano <nando@ccrma.stanford.edu> 0.9.1-3
d2b8bd1
- rebuilt for fluidsynth 1.0.3
d2b8bd1
- added release tags and an explicit dependency with the current
d2b8bd1
  version of libfluidsynth
d2b8bd1
d2b8bd1
* Fri Jul 25 2003 Fernando Lopez-Lezcano <nando@ccrma.stanford.edu> 0.9.1-2
d2b8bd1
- rebuilt for fluidsynth 1.0.2
d2b8bd1
d2b8bd1
* Thu May  8 2003 Fernando Lopez-Lezcano <nando@ccrma.stanford.edu> 0.9.1-1
d2b8bd1
- updated to 0.9.1a
d2b8bd1
d2b8bd1
* Thu Mar  6 2003 Fernando Lopez-Lezcano <nando@ccrma.stanford.edu> 0.9.0-1.cvs
d2b8bd1
- cvs: 20030306.185320
d2b8bd1
d2b8bd1
* Thu Feb 27 2003 Fernando Lopez-Lezcano <nando@ccrma.stanford.edu> 0.9.0-1.cvs
d2b8bd1
- adapted from mandrake spec file
d2b8bd1
- switched over to cvs swami
d2b8bd1
d2b8bd1
* Fri Jan 31 2003 Austin Acton <aacton@yorku.ca> 0.9.0-1mdk
d2b8bd1
- adapted spec file from Torbjorn Turpeinen <tobbe@nyvalls.se>