File ZynAddSubFX.spec of Package ZynAddSubFX
#
# spec file for package ZynAddSubFX
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: ZynAddSubFX
BuildRequires: alsa-devel fftw3-devel fltk-devel gcc-c++ jack-devel
BuildRequires: libjpeg-devel libpng-devel update-desktop-files xorg-x11-devel
BuildRequires: dssi-devel
# seems broken
# BuildRequires: lash-devel
BuildRequires: mxml-devel
Version: 2.4.1
Release: 5
Summary: A Real-Time Software Synthesizer for Linux
License: GPL-2.0+
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
Patch3: ZynAddSubFX-fltk13.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 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%build
cd src
# main binary
make CDEBUGFLAGS="$RPM_OPT_FLAGS" \
%ifnarch x86
ASM_F2I=NO \
%endif
LINUX_AUDIOOUT=OSS_AND_JACK
# backup the binary
cp zynaddsubfx ..
# build DSSI object
make clean
make CDEBUGFLAGS="$RPM_OPT_FLAGS -fPIC" \
%ifnarch x86
ASM_F2I=NO \
%endif
LINUX_AUDIOOUT=OSS_AND_JACK \
LINUX_DSSI=YES
# cd ../ExternalPrograms
# cd Controller
# ./compile.sh
# cd ../Spliter
# ./compile.sh
%install
mkdir -p $RPM_BUILD_ROOT%{_bindir}
install -c -m 0755 zynaddsubfx $RPM_BUILD_ROOT%{_bindir}
mkdir -p $RPM_BUILD_ROOT%{_libdir}/dssi
install -c -m 0644 src/zynaddsubfx.so $RPM_BUILD_ROOT%{_libdir}/dssi
%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 $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 *.txt ZynAddSubFX.lsm
%{_bindir}/*
%{_libdir}/dssi
%{_datadir}/applications/*.desktop
%{_datadir}/pixmaps/*.png
%{_datadir}/zynaddsubfx
%changelog