File ZynAddSubFX.spec of Package ZynAddSubFX

#
# spec file for package ZynAddSubFX (Version 2.2.1)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

Name:           ZynAddSubFX
BuildRequires:  alsa-devel fftw3-devel fltk-devel gcc-c++ jack-devel libjpeg-devel libpng-devel update-desktop-files xorg-x11-devel
%if %suse_version > 1020
BuildRequires:  mxml-devel
%else
BuildRequires:  mxml
%endif
Version:        2.2.1
Release:        133
Summary:        A Real-Time Software Synthesizer for Linux
License:        GPL v2 or later
Group:          Productivity/Multimedia/Sound/Midi
Url:            http://zynaddsubfx.sourceforge.net/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source:         %{name}-%{version}.tar.bz2
Source1:        ZynAddSubFX.desktop
Source2:        ZynAddSubFX.png
Patch:          ZynAddSubFX.dif
Patch1:         ZynAddSubFX-array-overflow-fix.diff
Patch2:         ZynAddSubFX-strncat-fix.diff

%description
ZynAddSubFX is a many-featured real-time software synthesizer for
Linux.	Features include polyphony and multitimbrel and microtonal
capabilities. It includes randomness of some parameters, which can make
warm sounds, like analog synthesizers.	This program has system and
insertion effects, too.



Authors:
--------
    Nasca Octavian Paul

%prep
%setup -q
%patch
%patch1
%patch2

%build
cd src
make CDEBUGFLAGS="$RPM_OPT_FLAGS" \
%ifnarch x86
  ASM_F2I=NO \
%endif
  LINUX_AUDIOOUT=OSS_AND_JACK
# cd ../ExternalPrograms
# cd Controller
# ./compile.sh
# cd ../Spliter
# ./compile.sh

%install
mkdir -p $RPM_BUILD_ROOT%{_bindir}
install -c -m 0755 src/zynaddsubfx $RPM_BUILD_ROOT%{_bindir}
%suse_update_desktop_file -i ZynAddSubFX AudioVideo Music
mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps
cp %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/pixmaps
mkdir -p $RPM_BUILD_ROOT%{_datadir}/zynaddsubfx
cp -a examples banks presets $RPM_BUILD_ROOT%{_datadir}/zynaddsubfx
# install -m 0755 ExternalPrograms/Controller/controller $RPM_BUILD_ROOT%{_bindir}/controller
# install -m 0755 ExternalPrograms/Splitter/spliter $RPM_BUILD_ROOT%{_bindir}/spliter

%clean
test "$RPM_BUILD_ROOT" != "/" -a -d "$RPM_BUILD_ROOT" && rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%doc COPYING FAQ.txt HISTORY.txt README.txt bugs.txt ZynAddSubFX.lsm
%doc examples
%{_bindir}/*
%{_datadir}/applications/*.desktop
%{_datadir}/pixmaps/*.png
%{_datadir}/zynaddsubfx

%changelog
* Fri Jan 18 2008 tiwai@suse.de
- fix strncat usage to avoid overflow.
* Thu Apr 26 2007 tiwai@suse.de
- fix buildrequires, use mxml-devel
- fix desktop file, use GenericName
* Mon Feb 26 2007 tiwai@suse.de
- fix array overflow (#247335)
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Oct 12 2005 tiwai@suse.de
- removed glib* from neededforbuild.
* Wed Jul 27 2005 tiwai@suse.de
- updated to version 2.2.1.
* Fri Apr 15 2005 tiwai@suse.de
- updated to version 2.2.0.
- fixed for gcc-4.0.
* Fri Jan 21 2005 tiwai@suse.de
- updated to version 2.1.1.
  added desktop file again.
* Wed Sep 15 2004 tiwai@suse.de
- removed desktop file (not working from menu).
* Sun Jan 11 2004 adrian@suse.de
- build as user
* Tue Nov 18 2003 tiwai@suse.de
- updated to version 1.4.3.
* Mon Sep 15 2003 tiwai@suse.de
- added desktop file and icon.
* Fri Jul 18 2003 tiwai@suse.de
- updated to version 1.4.2.
* Wed Jul 02 2003 tiwai@suse.de
- updated to version 1.4.1.
* Thu Mar 27 2003 tiwai@suse.de
- updated to version 1.2.0.
* Fri Feb 14 2003 tiwai@suse.de
- updated to version 1.0.8.
* Fri Feb 07 2003 tiwai@suse.de
- updated to version 1.0.7.
- linked with sfftw correctly now.
- fixed compile warnings.
* Wed Feb 05 2003 tiwai@suse.de
- initial version: 1.0.6.
openSUSE Build Service is sponsored by