ladspa/ladspa.spec

587 lines
17 KiB
RPMSpec

#
# spec file for package ladspa (Version 1.12.code10.3.1)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: ladspa
BuildRequires: fdupes fftw-devel fftw3-devel flac-devel gcc-c++ ladspa-devel libsndfile-devel pkgconfig
%define swh_version 0.4.15
%define vocoder_version 0.2
%define alienwah_version 1.13
%define sooperlooper_version 0.93
%define blop_version 0.2.8
%define vcf_version 0.0.5
%define vlevel_version 0.5
%define MCP_version 0.3.0
%define REV_version 0.3.1
%define VCO_version 0.3.0
%define FIL_version 0.0.1
%define AMB_version 0.0.1
%define tap_version 0.7.0
%define caps_version 0.4.2
%define pvoc_version 0.1.10
%define blepvco_version 0.1.0
Summary: The Linux Audio Developer's Simple Plug-In API
Version: 1.12.code10.3.1
Release: 27
License: GPL v2 or later
Group: Development/Libraries/C and C++
AutoReq: on
Autoprov: off
Source1: ladspa_sdk_1.12.tar.bz2
Source2: cmt_src_1.15.tar.bz2
Source3: swh-plugins-%{swh_version}.tar.bz2
Source4: ladspa-swh.tex
Source5: ladspa-swh.pdf
Source6: vocoder-ladspa-%{vocoder_version}.tar.bz2
Source7: alienwah-%{alienwah_version}.tar.bz2
Source8: sooperlooper-%{sooperlooper_version}.tar.bz2
Source9: blop-%{blop_version}.tar.bz2
Source10: vcf-%{vcf_version}.tar.bz2
Source11: unmatched.tar.bz2
Source12: preamp-v2.tar.bz2
Source13: MCP-plugins-%{MCP_version}.tar.bz2
Source14: REV-plugins-%{REV_version}.tar.bz2
Source15: vlevel-%{vlevel_version}.tar.bz2
Source16: VCO-plugins-%{VCO_version}.tar.bz2
Source17: matched.tar.bz2
Source18: tap-plugins-%{tap_version}.tar.bz2
Source19: super-60.tar.bz2
Source20: caps_%{caps_version}.tar.bz2
Source21: FIL-plugins-%{FIL_version}.tar.bz2
Source22: pvoc_%{pvoc_version}.tar.bz2
Source23: blepvco-%{blepvco_version}.tar.bz2
Source24: AMB-plugins-%{AMB_version}.tar.bz2
Source30: cmt.rdf
Source50: README_VCF
Patch: ladspa.dif
Patch1: swh-uninit-variable.diff
Patch2: cmt_src_1.15.diff
Patch3: vocoder-0.1.dif
Patch4: sooperlooper-0.9.dif
Patch5: blop-automake-fix.dif
Patch6: blop-shlib.diff
Patch7: vcf-Makefile.dif
Patch8: alienwah.dif
Patch9: unmatched.dif
Patch10: preamp.dif
Patch13: tap-type-punning-fix.dif
Patch14: super-60-fix.dif
Patch15: swh-readonly.dif
Patch16: pvoc-compile-fix.dif
Patch17: swh-0.4.13-gcc4-fix.diff
Patch18: sooperlooper-0.93-gcc4-fix.diff
Patch20: pvoc-0.1.10-gcc4-fix.diff
Patch21: ladspa_sdk-compile-fix.diff
Patch22: alienwah-compile-fix.diff
Patch23: alienwah-float_complex.diff
Patch25: pvoc-0.1.10-depend-copts-fix.diff
Url: http://www.ladspa.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
The Linux Audio Developer's Simple Plug-in API (LADSPA) provides the
ability to write simple plug-in audio processors in C/C++ and link them
dynamically. The package contains the LADSPA SDK, the CMT plug-in
libraries (including Freeverb), and the swh plug-ins.
Authors:
--------
Richard Furse <richard@muse.demon.co.uk>
Jezar at Dreampoint <dreampoint.co.uk>
Steve Harris <steve@plugin.org.uk>
%prep
#
# More URLs
#
# Blop: http://blop.sourceforge.net/
# MCP, REV, VCO, FIL, AMB-plugins:
# http://users.skynet.be/solaris/linuxaudio/
# swh-plugins: http://plugin.org.uk/
# TAP-plugins URL: http://tap-plugins.sourceforge.net/
# vlevel: http://vlevel.sourceforge.net/about/
# sooperlooper: http://essej.net/sooperlooper/
# alienwah: http://plugin.org.uk/releases/alienwah/
# pvoc, caps, preamp, match, unmatched, super-60:
# http://quitte.de/dsp/
# blepvco: http://home.jps.net/~musound/
#
%setup -q -c -n ladspa -T -a 1 -a 2 -a 3 -a 6 -a 7 -a 8 -a 9 -a 10 -a 11 -a 12 -a 13 -a 14 -a 15 -a 16 -a 17 -a 18 -a 19 -a 20 -a 21 -a 22 -a 23 -a 24
%patch
(cd ladspa_sdk
%patch21
)
(cd swh-plugins-%{swh_version}
%patch1
%patch15
%patch17
)
(cd cmt
%patch2
)
(cd vocoder-%{vocoder_version}
%patch3
)
(cd sooperlooper-%{sooperlooper_version}
%patch4
%patch18
)
(cd blop-%{blop_version}
%patch5
%patch6
)
(cd vcf-%{vcf_version}
%patch7
)
(cd alienwah-%{alienwah_version}
%patch8
%patch22
%patch23
)
(cd unmatched
%patch9
)
(cd matched
# the same one with unmatched
%patch9
)
(cd preamp
%patch10
)
(cd tap-plugins-%{tap_version}
%patch13
)
(cd super-60
%patch14
)
(cd pvoc-%{pvoc_version}
%patch16
%patch20
%patch25
)
# (cd caps-%{caps_version}
# )
%build
# LADSPA SDK
cd ladspa_sdk/src
make CFLAGS="$RPM_OPT_FLAGS -fPIC" targets
cd ../..
# CMT
cd cmt/src
make CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -fPIC" targets
cd ../..
# SWH plugins
cd swh-plugins-%{swh_version}
%{?suse_update_config:%{suse_update_config -f}}
autoreconf --install --force
CFLAGS="$RPM_OPT_FLAGS -fPIC -DPIC" \
./configure --prefix=%{_prefix}
make CFLAGS="$RPM_OPT_FLAGS -fPIC -DPIC"
cd ..
# Vocoder
cd vocoder-%{vocoder_version}
make CFLAGS="$RPM_OPT_FLAGS -fPIC"
cd ..
# Alien Wah
cd alienwah-%{alienwah_version}
make CFLAGS="$RPM_OPT_FLAGS -fPIC"
cd ..
# Sooperlooper
cd sooperlooper-%{sooperlooper_version}
make CFLAGS="$RPM_OPT_FLAGS -fPIC"
cd ..
# Blop
cd blop-%{blop_version}
%{?suse_update_config:%{suse_update_config -f}}
autoreconf --install --force
./configure --prefix=%{_prefix} \
--with-ladspa-plugin-dir=%{_libdir}/ladspa
make CFLAGS="$RPM_OPT_FLAGS -DNO_DEBUG -DPIC -fPIC"
cd ..
# VCF
cd vcf-%{vcf_version}
make CFLAGS="$RPM_OPT_FLAGS -fPIC"
cd ..
# unmatched
cd unmatched
make CFLAGS="$RPM_OPT_FLAGS -fPIC"
cd ..
# matched
cd matched
make CFLAGS="$RPM_OPT_FLAGS -fPIC"
cd ..
# preamp
cd preamp
make CFLAGS="$RPM_OPT_FLAGS -fPIC -fno-strict-aliasing" \
CXXFLAGS="$RPM_OPT_FLAGS -fPIC -fno-strict-aliasing"
cd ..
# MCP plugins
cd MCP-plugins-%{MCP_version}
make CXXFLAGS="$RPM_OPT_FLAGS -fPIC"
cd ..
# REV plugins
cd REV-plugins-%{REV_version}
make CXXFLAGS="$RPM_OPT_FLAGS -fPIC"
cd ..
# VCO plugins
cd VCO-plugins-%{VCO_version}
make CXXFLAGS="$RPM_OPT_FLAGS -fPIC"
cd ..
# vlevel
cd vlevel-%{vlevel_version}
make CXXFLAGS="$RPM_OPT_FLAGS -fPIC"
cd ..
# tap-plugins
cd tap-plugins-%{tap_version}
make CFLAGS="$RPM_OPT_FLAGS -fPIC -c"
cd ..
# super-60
cd super-60
make CFLAGS="$RPM_OPT_FLAGS -fPIC"
cd ..
# caps
cd caps-%{caps_version}
make CFLAGS="$RPM_OPT_FLAGS -fPIC"
cd ..
# FIL plugins
cd FIL-plugins-%{FIL_version}
make CXXFLAGS="$RPM_OPT_FLAGS -fPIC"
cd ..
# AMB plugins
cd AMB-plugins-%{AMB_version}
make CXXFLAGS="$RPM_OPT_FLAGS -fPIC"
cd ..
# pvoc plugins
cd pvoc-%{pvoc_version}
make OPTS="$RPM_OPT_FLAGS -fPIC"
cd ..
# blepvco
cd blepvco-%{blepvco_version}
make CPPFLAGS="$RPM_OPT_FLAGS -fPIC"
cd ..
%install
# LADSPA SDK
cd ladspa_sdk/src
make INSTALL_PLUGINS_DIR="$RPM_BUILD_ROOT"%{_libdir}/ladspa \
INSTALL_INCLUDE_DIR="$RPM_BUILD_ROOT"%{_includedir} \
INSTALL_BINARY_DIR="$RPM_BUILD_ROOT"%{_bindir} install
cd ../..
# CMT
cd cmt/src
make INSTALL_PLUGINS_DIR="$RPM_BUILD_ROOT"%{_libdir}/ladspa install
cd ../..
# SWH plugins
cd swh-plugins-%{swh_version}
make DESTDIR="$RPM_BUILD_ROOT" plugindir=%{_libdir}/ladspa \
INCLUDES=-I../ladspa_sdk/src install
cd ..
# Blop
cd blop-%{blop_version}
make DESTDIR="$RPM_BUILD_ROOT" install
cd ..
# Others
for i in \
vocoder-%{vocoder_version} \
alienwah-%{alienwah_version} \
sooperlooper-%{sooperlooper_version} \
vcf-%{vcf_version} \
unmatched \
matched \
preamp \
MCP-plugins-%{MCP_version} \
REV-plugins-%{REV_version} \
VCO-plugins-%{VCO_version} \
vlevel-%{vlevel_version} \
tap-plugins-%{tap_version} \
super-60 \
caps-%{caps_version} \
FIL-plugins-%{FIL_version} \
AMB-plugins-%{AMB_version} \
pvoc-%{pvoc_version} \
blepvco-%{blepvco_version}
do
install -c $i/*.so "$RPM_BUILD_ROOT"%{_libdir}/ladspa
done
# install other binary execs
mkdir -p "$RPM_BUILD_ROOT"%{_bindir}
install -c -m 755 vlevel-%{vlevel_version}/vlevel-bin "$RPM_BUILD_ROOT"%{_bindir}
# additional RDF files
cp %{SOURCE30} $RPM_BUILD_ROOT%{_datadir}/ladspa/rdf
cp tap-plugins-%{tap_version}/*.rdf $RPM_BUILD_ROOT%{_datadir}/ladspa/rdf
# install documents
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}/{cmt,swh,vcf}
cp -av cmt/README $RPM_BUILD_ROOT%{_docdir}/%{name}/cmt
cp -av cmt/doc/* $RPM_BUILD_ROOT%{_docdir}/%{name}/cmt
for i in \
swh-plugins-%{swh_version} \
vocoder-%{vocoder_version} \
alienwah-%{alienwah_version} \
sooperlooper-%{sooperlooper_version} \
blop-%{blop_version} \
MCP-plugins-%{MCP_version} \
REV-plugins-%{REV_version} \
VCO-plugins-%{VCO_version} \
vlevel-%{vlevel_version} \
preamp \
tap-plugins-%{tap_version} \
super-60 \
caps-%{caps_version} \
FIL-plugins-%{FIL_version} \
AMB-plugins-%{AMB_version} \
pvoc-%{pvoc_version} \
blepvco-%{blepvco_version}
do
# !! bashism...
cd $i
d=${i%-*}
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}/$d
for f in AUTHORS README COPYRIGHT CREDITS COPYING NEWS THANKS TODO ChangeLog PARAMETERS *.html; do
test -f $f && cp -a $f $RPM_BUILD_ROOT%{_docdir}/%{name}/$d
done
cd ..
done
# extra document files
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}/swh/gsm
cp -av swh-plugins-%{swh_version}/gsm/README $RPM_BUILD_ROOT%{_docdir}/%{name}/swh/gsm
cp %{SOURCE4} %{SOURCE5} $RPM_BUILD_ROOT%{_docdir}/%{name}/swh
cp %{SOURCE50} $RPM_BUILD_ROOT%{_docdir}/%{name}/vcf
cp -av vlevel-%{vlevel_version}/docs $RPM_BUILD_ROOT%{_docdir}/%{name}/vlevel
mkdir -p $RPM_BUILD_ROOT%{_docdir}/examples/vlevel
cp -av vlevel-%{vlevel_version}/utils/* $RPM_BUILD_ROOT%{_docdir}/examples/vlevel
chmod 644 $RPM_BUILD_ROOT%{_docdir}/%{name}/cmt/plugins.html
# remove incldue file (already in devel package)
rm -f $RPM_BUILD_ROOT%{_includedir}/*
%find_lang %{name} --all-name
%fdupes -s $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files -f %{name}.lang
%defattr(-,root,root)
%doc %{_docdir}/%{name}
%doc %{_docdir}/examples
%{_libdir}/ladspa
%{_bindir}/*
%{_datadir}/ladspa
%changelog
* Thu Nov 22 2007 tiwai@suse.de
- fix build with gcc 4.3
- update swh plugins 0.4.15; minor fixes
* Wed Jun 20 2007 tiwai@suse.de
- fixed filelist (examples directory).
- fix fdupes usage
* Tue Jun 19 2007 tiwai@suse.de
- updated CAPS plugin to 0.4.2
- use fdupes
- use find_lang
* Fri May 04 2007 tiwai@suse.de
- remove the explicit requirement of ladspa-devel (#270555)
* Wed Apr 18 2007 tiwai@suse.de
- split ladspa-devel.spec to reduce the build dependency
* Tue Apr 17 2007 tiwai@suse.de
- split ladspa SDK to devel sub package
* Tue Jan 16 2007 tiwai@suse.de
- fix build warnings regarding RPM_OPT_FLAGS.
* Tue Jan 09 2007 tiwai@suse.de
- fix array out of range in caps Amp plugin (#232111)
* Tue Nov 07 2006 ro@suse.de
- fix permissions for docu
* Mon Jul 31 2006 tiwai@suse.de
- fixed broken patch in the last change for triangle_1649 plugin
(#194955).
* Mon May 22 2006 schwab@suse.de
- Use RPM_OPT_FLAGS.
- Don't strip binaries.
- Fix building of shared libraries.
* Tue Mar 28 2006 tiwai@suse.de
- fixed the wrong permission for vlevel-bin (#157814)
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Jan 12 2006 tiwai@suse.de
- updated caps plugin to 0.3.0
- fixed compile warnings with swh plugins
* Thu Oct 06 2005 tiwai@suse.de
- updated swh plugin to 0.4.14.
- fix some compile problems with the recent gcc.
* Thu Aug 04 2005 tiwai@suse.de
- updated caps plugin to 0.2.3.
- added AMB plugin 0.0.1.
* Mon Apr 11 2005 tiwai@suse.de
- fix build with gcc-4.0 again.
* Fri Apr 08 2005 tiwai@suse.de
- fixed build with gcc-4.0.
* Wed Feb 16 2005 tiwai@suse.de
- updated swh-plugins to (real) 0.4.13.
* Thu Feb 10 2005 tiwai@suse.de
- updated REV plugins to 0.3.1.
- added blepvco-0.1.0.
* Fri Jan 21 2005 tiwai@suse.de
- updated swh-plugins to 0.4.13.
- updated caps-plugins to 0.2.0.
* Wed Aug 18 2004 tiwai@suse.de
- updated swh-plugins to 0.4.7.
- updated TAP-plugins to 0.7.0.
- updated caps-plugins to 0.1.12.
- updated blop plugin to 0.2.8.
- added FIL-plugins 0.0.1.
- added pvoc-plugins 0.1.10.
* Tue Jun 22 2004 ro@suse.de
- remove some "const" statements where the pointer is modified
* Mon Jun 14 2004 mana@suse.de
- Updated MCP and VCO plugins
* Fri Mar 05 2004 tiwai@suse.de
- added TAP-plugins 0.4.2.
- added CAPS 0.1.10.
- added super-60 plugin.
* Thu Jan 22 2004 tiwai@suse.de
- fixed the build of swh-plugins with the latest automake.
- updated MCP and REV plugins to version 0.2.1.
- added VCO plugins 0.2.1.
- updated blop to version 0.2.7.
- updated preamp v2.
- added matched plugin.
- updated sooperlooper to 0.93.
- updated vocoder to 0.2.
- clean up the installation phase.
- fixed the type punning in swh and blop plugins.
* Mon Jan 12 2004 adrian@suse.de
- add %%defattr
* Fri Jan 09 2004 tiwai@suse.de
- updated swh plugins to version 0.4.3.
* Mon Aug 25 2003 tiwai@suse.de
- added vlevel plugin.
* Mon Aug 25 2003 tiwai@suse.de
- updated to LADSPA-SDK 1.12, CMT-1.15.
- added REV-plugins.
* Mon Aug 18 2003 tiwai@suse.de
- added RDF file for CMT.
* Wed Aug 06 2003 meissner@suse.de
- do not compile gverb-test.c on !i386, until the code
gets rid of hardcoded "rdtsc" assembler.
* Tue Aug 05 2003 tiwai@suse.de
- use fftw3 for swh plugins.
* Tue Jul 29 2003 tiwai@suse.de
- added pkgconfig to neededforbuild.
- fixed the build on x86-64.
* Fri Jun 06 2003 tiwai@suse.de
- updated swh-plugins to ver.0.4.2.
- added MCP-plugins-0.0.2.
- fixed the symlink of ladspa.h.txt.
* Thu Apr 03 2003 tiwai@suse.de
- updated swh-plugins to ver.0.3.7.
* Mon Mar 03 2003 tiwai@suse.de
- removed _init and _fini patches from swh plugin.
works with ams now (bug #24523).
* Mon Jan 20 2003 ro@suse.de
- fix multiline-string issue in code (pitchscale.c)
* Thu Jan 16 2003 tiwai@suse.de
- updated swh plugsin to version 0.3.6.
* Tue Nov 26 2002 tiwai@suse.de
- updated LADSPA SDK ver.1.1.
- updated CMT.
- updated to swh plugin ver.0.3.0.
- added unmatched and preamp plugins.
* Tue Sep 17 2002 ro@suse.de
- removed bogus self-provides
* Tue Sep 17 2002 arvin@suse.de
- fixed seg. fault in alienwah plugin on hammer
* Tue Sep 03 2002 mana@suse.de
- Added README_VCF for vcf filter plugins
* Mon Aug 12 2002 tiwai@suse.de
- added vcf plugin version 0.0.5.
* Wed Jul 24 2002 tiwai@suse.de
- added blop plugins ver.0.2.5.
- updated the swh documents.
* Mon Jul 22 2002 tiwai@suse.de
- updated swh-plugins to ver.0.2.8.
* Tue Jun 25 2002 tiwai@suse.de
- updated swh-plugins to ver.0.2.7.
fixed for gcc-3.1.
- updated alienwah plugin to ver.1.13.
* Tue May 07 2002 schwab@suse.de
- Link with $(CC) instead of ld.
- Fix invalid casts.
* Wed Apr 10 2002 tiwai@suse.de
- updated swh plugins to version 0.2.5.
- fixed build with gcc-3.1.
* Mon Jan 28 2002 tiwai@suse.de
- added sooperlooper plugin (ver.0.9).
- fixed installation of alienwah plugin.
* Tue Jan 15 2002 tiwai@suse.de
- updated swh plugins ver.0.2.3.
some plugins are added; many bug fixes.
- updated ladspa-swh.{tex,pdf}.
* Wed Jan 02 2002 tiwai@suse.de
- updated swh plugins ver.0.2.2.
* Mon Dec 10 2001 tiwai@suse.de
- added alienwah plugin (ver.1.11).
- updated version number.
* Fri Oct 19 2001 tiwai@suse.de
- updated to swh plugins ver.0.2.1.
* Fri Oct 05 2001 tiwai@suse.de
- added vocoder plugin (ver.0.1).
* Fri Aug 24 2001 tiwai@suse.de
- updated to swh plugins ver.0.2.0.
+ fixed a major bug that bit somtimes in instantiation.
+ human readable docs (pdf & TeX).
* Fri Aug 03 2001 tiwai@suse.de
- fixed compile on ia64.
* Mon Jul 23 2001 tiwai@suse.de
- updated swh plugins to 0.1.14.
* Mon Jul 09 2001 tiwai@suse.de
- updated swh plugins to 0.1.13.
* Thu Jun 07 2001 tiwai@suse.de
- fixed build.
* Thu Apr 05 2001 tiwai@suse.de
- Updated swh plugins to 0.1.11.
- Updated cmt libs.
* Wed Mar 07 2001 tiwai@suse.de
- Fixed compile on ia64 and axp.
- Replace mkdirhier with mkdir -p in CMT's makefile.
- Use RPM_OPT_FLAGS for CFLAGS in compile of swh plugins.
* Thu Feb 01 2001 tiwai@suse.de
- Updated swh plugins to 0.1.10.
* Tue Jan 30 2001 tiwai@suse.de
- Updated swh plugins to 0.1.9.
* Mon Jan 08 2001 tiwai@suse.de
- Linked dynamically with fftw lib.
* Fri Jan 05 2001 tiwai@suse.de
- Updated swh plugins to 0.1.8.
- Correct the address of swh.
* Wed Dec 13 2000 tiwai@suse.de
- Updated swh plugins to 0.1.7.
* Tue Nov 28 2000 tiwai@suse.de
- Linked statically with fftw.
* Tue Nov 21 2000 tiwai@suse.de
- Updated swh plugin 0.1.2.
* Fri Nov 17 2000 tiwai@suse.de
- Updated swh plugin 0.1.1.
* Fri Nov 17 2000 tiwai@suse.de
- Added swh plugins.
* Tue Nov 07 2000 tiwai@suse.de
- Updated to the latest source.
- Fixed autobuild on beta-i386.
- Remove compat requirement.
* Tue Sep 26 2000 tiwai@suse.de
- Changed to bzip2.
* Wed Aug 16 2000 uli@suse.de
- now links to standard libstdc++ instead of 2.9 from compat (which does
not exist on PPC)
* Tue Aug 01 2000 tiwai@suse.de
- Initial package - LADSPA SDK and CMT libraries ver.1.