ladspa/ladspa.spec

Name: ladspa
Summary: Linux Audio Developer's Simple Plugin API
Version: 1.12
Release: 1.2
License: LGPL
Group: System Environment/Libraries
URL: http://www.ladspa.org/
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.

CentOS 7 x86_64

The build was not successful.

Build Status

CentOS 6 x86_64

The build was not successful.

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $Id$
# Authority: dag

### EL6 ships with ladspa-1.13-6.1.el6
# ExclusiveDist: el2 el3 el4 el5

%define real_name ladspa_sdk

Summary: Linux Audio Developer's Simple Plugin API
Name: ladspa
Version: 1.12
Release: 1.2%{?dist}
License: LGPL
Group: System Environment/Libraries
URL: http://www.ladspa.org/

Source: http://www.ladspa.org/download/ladspa_sdk_%{version}.tgz
Patch0: ladspa-1.12-gcc41.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildRequires: gcc-c++
Obsoletes: ladspa-sdk <= 1.12

%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.

%package devel
Summary: Header files, libraries and development documentation for %{name}
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}

%description devel
This package contains the header files, static libraries and development
documentation for %{name}. If you like to develop programs using %{name},
you will need to install %{name}-devel.

%prep
%setup -n %{real_name}

%patch0 -p1

### FIXME: Correct URLs to link to local file. (Please fix upstream)
%{__perl} -pi -e 's|HREF="ladspa.h.txt"|HREF="file:///usr/include/ladspa.h"|' doc/*.html

### FIXME: Make Makefile use autotool directory standard (Please fix upstream)
%{__perl} -pi -e '
		s|/usr/local/lib/|\$(libdir)/|;
		s|/usr/include/|\$(includedir)/|;
		s|/usr/local/bin/|\$(bindir)/|;
	' src/makefile

%build
%{__make} %{?_smp_mflags} -C src targets

%install
%{__rm} -rf %{buildroot}
### FIXME: Makefile doesn't create target directories (Please fix upstream)
%{__install} -d -m0755	%{buildroot}%{_libdir}/ladspa/ \
			%{buildroot}%{_includedir}/ladspa/ \
			%{buildroot}%{_bindir}/ladspa/
%makeinstall -C src

%post
/sbin/ldconfig &>/dev/null

%postun
/sbin/ldconfig &>/dev/null

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%doc README doc/COPYING
%{_libdir}/ladspa/
%{_bindir}/*

%files devel
%defattr(-, root, root, 0755)
%doc doc/*.html
%{_includedir}/*.h

%changelog
* Sat Apr 08 2006 Dries Verachtert <dries@ulyssis.org> - 1.12-1.2
- Rebuild for Fedora Core 5.

* Thu Feb 19 2004 Dag Wieers <dag@wieers.com> - 1.12-1
- Obsoletes ladspa-sdk. (Rudolf Kastl, #15)

* Sun Sep 14 2003 Dag Wieers <dag@wieers.com> - 1.12-0
- Initial package. (using DAR)