Release: 1
License: GPL
Group: X11/Applications/Sound
-Source0: http://mesh.dl.sourceforge.net/sourceforge/zynaddsubfx/%{name}-%{version}.tar.bz2
+Source0: http://dl.sourceforge.net/zynaddsubfx/%{name}-%{version}.tar.bz2
# Source0-md5: a078a85fc140bad8da6dd8114b9e5f41
-Source1: http://mesh.dl.sourceforge.net/sourceforge/zynaddsubfx/%{name}-doc-%{doc_ver}.tar.gz
+Source1: http://dl.sourceforge.net/zynaddsubfx/%{name}-doc-%{doc_ver}.tar.gz
# Source1-md5: 64a1c8d991e7ec9ffe0f9fbf929af62f
Source2: %{name}.desktop
URL: http://zynaddsubfx.sourceforge.net/
BuildRequires: jack-audio-connection-kit-devel >= 0.66.3
BuildRequires: mxml >= 2.0
BuildRequires: pkgconfig
+BuildRequires: sed >= 4.0
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
sed -i -e "s|-O6|\$(OPTFLAGS)|" src/Makefile
%build
-cd src
-%{__make} OPTFLAGS="%{rpmcflags}" \
+%{__make} -C src \
+ OPTFLAGS="%{rpmcflags}" \
LINUX_AUDIOOUT="OSS_AND_JACK" \
- CXX=%{__cxx}
+ CXX="%{__cxx}"
%install
rm -rf $RPM_BUILD_ROOT