Name: ladspa Version: 1.17 Release: 1%{?dist} Summary: Linux Audio Developer's Simple Plug-in API, examples and tools License: LGPLv2+ URL: http://www.ladspa.org/ Source: http://www.ladspa.org/download/%{name}_sdk_%{version}.tgz Patch1: ladspa-1.13-plugindir.patch BuildRequires: perl-interpreter BuildRequires: gcc-c++ BuildRequires: make %description There is a large number of synthesis packages in use or development on the Linux platform at this time. The Linux Audio Developer's Simple Plugin API (LADSPA) attempts to give programmers the ability to write simple `plugin' audio processors in C/C++ and link them dynamically against a range of host applications. This package contains the example plug-ins and tools from the LADSPA SDK. %package devel Summary: Linux Audio Developer's Simple Plug-in API Requires: %{name} = %{version}-%{release} %description devel ladspa-devel contains the ladspa.h header file. Definitive technical documentation on LADSPA plug-ins for both the host and plug-in is contained within copious comments within the ladspa.h header file. %prep %setup -q -n ladspa_sdk_%{version} # respect RPM_OPT_FLAGS perl -pi -e 's/^(CFLAGS.*)-O3(.*)/$1\$\(RPM_OPT_FLAGS\)$2 -DPLUGINDIR=\$\(PLUGINDIR\)/' src/makefile # avoid X.org dependency perl -pi -e 's/-mkdirhier/-mkdir -p/' src/makefile # fix links to the header file in the docs cd doc perl -pi -e "s!HREF=\"ladspa.h.txt\"!href=\"file:///usr/include/ladspa.h\"!" *.html %build cd src PLUGINDIR=\\\"%{_libdir}/ladspa\\\" make targets %{?_smp_mflags} LD="ld --build-id" #make test #make check %install rm -rf $RPM_BUILD_ROOT cd src make install \ INSTALL_PLUGINS_DIR=$RPM_BUILD_ROOT%{_libdir}/ladspa \ INSTALL_INCLUDE_DIR=$RPM_BUILD_ROOT%{_includedir} \ INSTALL_BINARY_DIR=$RPM_BUILD_ROOT%{_bindir} ## this is where plugins will install their rdf mkdir -p $RPM_BUILD_ROOT%{_datadir}/ladspa/rdf %files %doc doc/COPYING %dir %{_libdir}/ladspa %{_libdir}/ladspa/*.so %{_bindir}/analyseplugin %{_bindir}/applyplugin %{_bindir}/listplugins %{_datadir}/ladspa %files devel %doc doc/*.html %{_includedir}/ladspa.h %changelog