Group :: Sound
RPM: ladspa_sdk
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Name: ladspa_sdk
Version: 1.12
Release: alt4
Summary: The Linux Audio Developer's Simple Plugin API (LADSPA)
License: LGPL
Group: Sound
Url: http://www.ladspa.org
Source: http://www.ladspa.org/download/%name.tgz
Patch0: %name-1.11-alt-makefile.patch
Patch1: %name-1.11-alt-silent.build.patch
Patch2: %name-1.11-alt-notmp_makefile.patch
Patch3: %name-1.12-alt-libs.patch
Patch4: %name-1.12-alt-gcc4.1.patch
Requires: common-licenses
# Automatically added by buildreq on Mon May 29 2006
BuildRequires: gcc-c++ time
%description
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.
%define _ladspa_path %_libdir/ladspa
%define _ladspa_datadir %_datadir/ladspa
%prep
%setup -q -n %name
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%__subst 's,mkdirhier,mkdir -p,' src/makefile
%build
%define _optlevel 3
pushd src
%make_build CFLAGS="\$(INCLUDES) -Werror -fPIC $RPM_OPT_FLAGS"
popd
%install
%__mkdir_p %buildroot%_datadir/ladspa/rdf
pushd src
%make_install PREFIX=%prefix DESTDIR=%buildroot \
INSTALL_PLUGINS_DIR=%_ladspa_path \
install
popd
# install docs and license
%__rm -f doc/COPYING
%__ln_s -f %_licensedir/LGPL-2 COPYING
%__ln_s -f %_includedir/ladspa.h doc/ladspa.h.txt
%__ln_s -f doc/index.html index.html
# Applications using LADSPA-plugins needs environment variable LADSPA_PATH.
%__cat << __SH__ >ladspa.sh
# where LADSPA plugins installed
LADSPA_PATH="%_ladspa_path"
export LADSPA_PATH
__SH__
%__cat << __CSH__ >ladspa.csh
# where LADSPA plugins installed
setenv LADSPA_PATH "%_ladspa_path"
__CSH__
%__install -d %buildroot%_sysconfdir/profile.d
%__install -m755 ladspa.{sh,csh} %buildroot%_sysconfdir/profile.d
# Creating ladspa_sdk buildreq filter
%__cat <<__BUILDREQS__ > %name.buildreq
# ladspa buildreq filter.
^%_ladspa_path
__BUILDREQS__
%__install -pD -m644 %name.buildreq %buildroot%_sysconfdir/buildreqs/files/ignore.d/ladspa
# rpm macros for ladspa related software
%__cat <<__RPM_MACROS__ >ladspa.rpm_macros
%%_ladspa_path %%_libdir/ladspa
%%_ladspa_datadir %%_datadir/ladspa
__RPM_MACROS__
%__install -pD -m644 ladspa.rpm_macros %buildroot%_sysconfdir/rpm/macros.d/%name
%files
%_bindir/*
%_includedir/ladspa.h
%_ladspa_path
%dir %_ladspa_datadir
%dir %_ladspa_datadir/rdf
%_sysconfdir/profile.d/*
%_sysconfdir/rpm/macros.d/*
%config %_sysconfdir/buildreqs/files/ignore.d/*
%doc --no-dereference index.html doc README COPYING
%changelog
…
Full changelog you can see here
Version: 1.12
Release: alt4
Summary: The Linux Audio Developer's Simple Plugin API (LADSPA)
License: LGPL
Group: Sound
Url: http://www.ladspa.org
Source: http://www.ladspa.org/download/%name.tgz
Patch0: %name-1.11-alt-makefile.patch
Patch1: %name-1.11-alt-silent.build.patch
Patch2: %name-1.11-alt-notmp_makefile.patch
Patch3: %name-1.12-alt-libs.patch
Patch4: %name-1.12-alt-gcc4.1.patch
Requires: common-licenses
# Automatically added by buildreq on Mon May 29 2006
BuildRequires: gcc-c++ time
%description
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.
%define _ladspa_path %_libdir/ladspa
%define _ladspa_datadir %_datadir/ladspa
%prep
%setup -q -n %name
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%__subst 's,mkdirhier,mkdir -p,' src/makefile
%build
%define _optlevel 3
pushd src
%make_build CFLAGS="\$(INCLUDES) -Werror -fPIC $RPM_OPT_FLAGS"
popd
%install
%__mkdir_p %buildroot%_datadir/ladspa/rdf
pushd src
%make_install PREFIX=%prefix DESTDIR=%buildroot \
INSTALL_PLUGINS_DIR=%_ladspa_path \
install
popd
# install docs and license
%__rm -f doc/COPYING
%__ln_s -f %_licensedir/LGPL-2 COPYING
%__ln_s -f %_includedir/ladspa.h doc/ladspa.h.txt
%__ln_s -f doc/index.html index.html
# Applications using LADSPA-plugins needs environment variable LADSPA_PATH.
%__cat << __SH__ >ladspa.sh
# where LADSPA plugins installed
LADSPA_PATH="%_ladspa_path"
export LADSPA_PATH
__SH__
%__cat << __CSH__ >ladspa.csh
# where LADSPA plugins installed
setenv LADSPA_PATH "%_ladspa_path"
__CSH__
%__install -d %buildroot%_sysconfdir/profile.d
%__install -m755 ladspa.{sh,csh} %buildroot%_sysconfdir/profile.d
# Creating ladspa_sdk buildreq filter
%__cat <<__BUILDREQS__ > %name.buildreq
# ladspa buildreq filter.
^%_ladspa_path
__BUILDREQS__
%__install -pD -m644 %name.buildreq %buildroot%_sysconfdir/buildreqs/files/ignore.d/ladspa
# rpm macros for ladspa related software
%__cat <<__RPM_MACROS__ >ladspa.rpm_macros
%%_ladspa_path %%_libdir/ladspa
%%_ladspa_datadir %%_datadir/ladspa
__RPM_MACROS__
%__install -pD -m644 ladspa.rpm_macros %buildroot%_sysconfdir/rpm/macros.d/%name
%files
%_bindir/*
%_includedir/ladspa.h
%_ladspa_path
%dir %_ladspa_datadir
%dir %_ladspa_datadir/rdf
%_sysconfdir/profile.d/*
%_sysconfdir/rpm/macros.d/*
%config %_sysconfdir/buildreqs/files/ignore.d/*
%doc --no-dereference index.html doc README COPYING
%changelog
…
Full changelog you can see here