packages swami.spec
      Pages: < 1 >  DOWNLOAD      
Name:          swami
Version:       2.2.1
Release:       1mamba
Summary:       A collection of free software for editing and sharing MIDI instruments and sounds
Group:         Graphical Desktop/Applications/Multimedia
Vendor:        openmamba
Distribution:  openmamba
Packager:      Silvan Calarco <silvan.calarco@...>
URL:           http://swami.resonance.org/trac
Source:        https://github.com/swami/swami.git/v%{version}/swami-%{version}.tar.bz2
#Source:        http://downloads.sourceforge.net/project/swami/swami/%{version}/swami-%{version}.tar.gz
Source1:       swami.desktop
Source2:       swami.svg
Source3:       swami.xml
License:       GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: fluidsynth-devel
BuildRequires: glibc-devel
BuildRequires: ldconfig
BuildRequires: libart_lgpl-devel
BuildRequires: libatk-devel
BuildRequires: libcairo-devel
BuildRequires: libfftw-devel
BuildRequires: libfontconfig-devel
BuildRequires: libfreetype-devel
BuildRequires: libgdk-pixbuf-devel
BuildRequires: libglib-devel
BuildRequires: libgnomecanvas-devel
BuildRequires: libgtk2-devel
BuildRequires: libharfbuzz-devel
BuildRequires: libinstpatch-devel
BuildRequires: libpango-devel
BuildRequires: libsndfile-devel
## AUTOBUILDREQ-END
BuildRequires: libinstpatch-devel >= 1.1.4
Requires:      hicolor-icon-theme
BuildRoot:     %{_tmppath}/%{name}-%{version}-root

# FIXME:
#**************************************************************
#Enabled features (Feature name - Swami usage):                
#  fluidsynth - Soft synth wavetable plugin                    
#  audiofile - Sound file library plugin                       
#  libsndfile - Sound file library plugin                      
#  Splash image                                                
#  Debugging (compiler flags)                                  
#
#Disabled features:
#  GnomeCanvas - Graphical envelope editor

%description
The Swami Project - Sampled Waveforms And Musical Instruments - is a collection of free software for editing and sharing MIDI instruments and sounds. Swami aims to provide cross platform (Linux, Windows and Mac OSX) instrument editing and sharing software for instrument formats such as SoundFont, DLS and GigaSampler.

%package devel
Summary:       Static libraries and headers for %{name}
Group:         Development/Libraries
Requires:      %{name} = %{?epoch:%epoch:}%{version}-%{release}

%description devel
The Swami Project - Sampled Waveforms And Musical Instruments - is a collection of free software for editing and sharing MIDI instruments and sounds. Swami aims to provide cross platform (Linux, Windows and Mac OSX) instrument editing and sharing software for instrument formats such as SoundFont, DLS and GigaSampler.

This package contains static libraries and header files need for development.

%debug_package

%prep
%setup -q

%build
%cmake -d build

%make

%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C build

install -D -m0644 %{SOURCE1} %{buildroot}%{_datadir}/applications/swami.desktop
install -D -m0644 %{SOURCE2} %{buildroot}%{_datadir}/icons/hicolor/apps/swami.svg
install -D -m0644 %{SOURCE3} %{buildroot}%{_datadir}/mime/packages/swami.xml

%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"

%posttrans
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :

%files
%defattr(-,root,root)
%{_bindir}/swami
%{_libdir}/libswami.so.*
%{_libdir}/libswamigui.so.*
%dir %{_libdir}/swami
%{_libdir}/swami/fftune.so
%{_libdir}/swami/fftune_gui.so
%{_libdir}/swami/fluidsynth_gui.so
%{_libdir}/swami/fluidsynth_plugin.so
%{_datadir}/applications/swami.desktop
%{_datadir}/icons/hicolor/apps/swami.svg
%{_datadir}/mime/packages/swami.xml
%dir %{_datadir}/swami
%{_datadir}/swami/swami-2.ui
%dir %{_datadir}/swami/images
%{_datadir}/swami/images/*.png
#%{_datadir}/swami/images/knob.svg
%{_datadir}/swami/images/DLS.png
#%{python_sitearch}/swamiguimodule.a
#%{python_sitearch}/swamiguimodule.la
#%{python_sitearch}/swamiguimodule.so
#%{python_sitearch}/swamimodule.a
#%{python_sitearch}/swamimodule.la
#%{python_sitearch}/swamimodule.so
%{_datadir}/icons/hicolor/48x48/apps/swami.png
%{_datadir}/icons/hicolor/scalable/apps/swami.svg
#%{_datadir}/pygtk/2.0/defs/swami.defs
#%{_datadir}/pygtk/2.0/defs/swamigui.defs
%doc AUTHORS COPYING

%files devel
%defattr(-,root,root)
%dir %{_includedir}/swami/libswami
%{_includedir}/swami/libswami/*.h
%dir %{_includedir}/swami/libswamigui
%{_includedir}/swami/libswamigui/*.h
%{_libdir}/libswami.so
%{_libdir}/libswamigui.so
#%dir %{_datadir}/gtk-doc/html/libswami
#%{_datadir}/gtk-doc/html/libswami/*
#%{_datadir}/swami/swami-2.glade
#%dir %{_datadir}/gtk-doc/html/swamigui
#%{_datadir}/gtk-doc/html/swamigui/*
%doc ChangeLog NEWS

%changelog
* Tue Apr 28 2020 Silvan Calarco <silvan.calarco@...> 2.2.1-1mamba
- update to 2.2.1

* Thu May 23 2013 Silvan Calarco <silvan.calarco@...> 2.0.0-2mamba
- python 2.7 mass rebuild

* Mon Oct 24 2011 Automatic Build System <autodist@...> 2.0.0-1mamba
- update to 2.0.0

* Mon Jan 11 2010 Silvan Calarco <silvan.calarco@...> 0.9.4-1mamba
- package created by autospec