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

# 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
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

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.

    Nasca Octavian Paul

%setup -q
%patch -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1

cd src
# main binary
%ifnarch x86
  ASM_F2I=NO \
# backup the binary
cp zynaddsubfx ..
# build DSSI object
make clean
%ifnarch x86
  ASM_F2I=NO \
# cd ../ExternalPrograms
# cd Controller
# ./
# cd ../Spliter
# ./

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/ $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

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

%defattr(-, root, root)
%doc COPYING *.txt ZynAddSubFX.lsm

openSUSE Build Service is sponsored by