dc9af3
Name:           ladspa
dc9af3
Version:        1.13
dc9af3
Release:        20%{?dist}
dc9af3
dc9af3
Summary:        Linux Audio Developer's Simple Plug-in API, examples and tools
dc9af3
dc9af3
Group:          System Environment/Libraries
dc9af3
License:        LGPLv2+
dc9af3
URL:            http://www.ladspa.org/
dc9af3
Source:         http://www.ladspa.org/download/%{name}_sdk_%{version}.tgz
dc9af3
Patch1:         ladspa-1.13-plugindir.patch
dc9af3
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
dc9af3
dc9af3
BuildRequires:  perl-interpreter
dc9af3
BuildRequires:  gcc-c++
dc9af3
dc9af3
%description
dc9af3
There is a large number of synthesis packages in use or development on
dc9af3
the Linux platform at this time. The Linux Audio Developer's Simple
dc9af3
Plugin API (LADSPA) attempts to give programmers the ability to write
dc9af3
simple `plugin' audio processors in C/C++ and link them dynamically
dc9af3
against a range of host applications.
dc9af3
dc9af3
This package contains the example plug-ins and tools from the LADSPA SDK.
dc9af3
dc9af3
%package        devel
dc9af3
Summary:        Linux Audio Developer's Simple Plug-in API
dc9af3
Group:          Development/Libraries
dc9af3
Requires:       %{name} = %{version}-%{release}
dc9af3
dc9af3
%description    devel
dc9af3
ladspa-devel contains the ladspa.h header file.
dc9af3
dc9af3
Definitive technical documentation on LADSPA plug-ins for both the host
dc9af3
and plug-in is contained within copious comments within the ladspa.h
dc9af3
header file.
dc9af3
dc9af3
dc9af3
%prep
dc9af3
%setup -q -n ladspa_sdk
dc9af3
%patch1 -p0 -b .plugindir
dc9af3
# respect RPM_OPT_FLAGS
dc9af3
perl -pi -e 's/^(CFLAGS.*)-O3(.*)/$1\$\(RPM_OPT_FLAGS\)$2 -DPLUGINDIR=\$\(PLUGINDIR\)/' src/makefile
dc9af3
# avoid X.org dependency
dc9af3
perl -pi -e 's/-mkdirhier/-mkdir -p/' src/makefile
dc9af3
dc9af3
# fix links to the header file in the docs
dc9af3
cd doc
dc9af3
perl -pi -e "s!HREF=\"ladspa.h.txt\"!href=\"file:///usr/include/ladspa.h\"!" *.html
dc9af3
dc9af3
dc9af3
%build
dc9af3
cd src
dc9af3
PLUGINDIR=\\\"%{_libdir}/ladspa\\\" make targets %{?_smp_mflags} LD="ld --build-id"
dc9af3
dc9af3
#make test
dc9af3
#make check
dc9af3
dc9af3
dc9af3
%install
dc9af3
rm -rf $RPM_BUILD_ROOT
dc9af3
dc9af3
cd src
dc9af3
make install \
dc9af3
  INSTALL_PLUGINS_DIR=$RPM_BUILD_ROOT%{_libdir}/ladspa \
dc9af3
  INSTALL_INCLUDE_DIR=$RPM_BUILD_ROOT%{_includedir} \
dc9af3
  INSTALL_BINARY_DIR=$RPM_BUILD_ROOT%{_bindir}
dc9af3
dc9af3
## this is where plugins will install their rdf
dc9af3
mkdir -p $RPM_BUILD_ROOT%{_datadir}/ladspa/rdf
dc9af3
dc9af3
dc9af3
%clean
dc9af3
rm -rf $RPM_BUILD_ROOT
dc9af3
dc9af3
dc9af3
%files
dc9af3
%defattr(-,root,root,-)
dc9af3
%doc doc/COPYING
dc9af3
%dir %{_libdir}/ladspa
dc9af3
%{_libdir}/ladspa/*.so
dc9af3
%{_bindir}/analyseplugin
dc9af3
%{_bindir}/applyplugin
dc9af3
%{_bindir}/listplugins
dc9af3
%{_datadir}/ladspa
dc9af3
dc9af3
%files devel
dc9af3
%defattr(-,root,root,-)
dc9af3
%doc doc/*.html
dc9af3
%{_includedir}/ladspa.h
dc9af3
dc9af3
dc9af3
%changelog
dc9af3
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.13-20
dc9af3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
dc9af3
dc9af3
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.13-19
dc9af3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
dc9af3
dc9af3
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.13-18
dc9af3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
dc9af3
dc9af3
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.13-17
dc9af3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
dc9af3
dc9af3
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.13-16
dc9af3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
dc9af3
dc9af3
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.13-15
dc9af3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
dc9af3
dc9af3
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 1.13-14
dc9af3
- Rebuilt for GCC 5 C++11 ABI change
dc9af3
dc9af3
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.13-13
dc9af3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
dc9af3
dc9af3
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.13-12
dc9af3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
dc9af3
dc9af3
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.13-11
dc9af3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
dc9af3
dc9af3
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.13-10
dc9af3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
dc9af3
dc9af3
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.13-9
dc9af3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
dc9af3
dc9af3
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.13-8
dc9af3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
dc9af3
dc9af3
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.13-7
dc9af3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
dc9af3
dc9af3
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.13-6
dc9af3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
dc9af3
dc9af3
* Sun Mar 22 2009 Robert Scheck <robert@fedoraproject.org> - 1.13-5
dc9af3
- Really added the plugindir patch now (thanks to Karsten Hopp)
dc9af3
- Avoid the make errors because of mkdirhier better than until now
dc9af3
dc9af3
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.13-4
dc9af3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
dc9af3
dc9af3
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.13-3
dc9af3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
dc9af3
dc9af3
* Sun Nov 23 2008 Thomas Vander Stichele <thomas at apestaart dot org>
dc9af3
- 1.13-2
dc9af3
- updated summary
dc9af3
- not rebuilt yet
dc9af3
dc9af3
* Fri Sep  5 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 1.13-1
dc9af3
- link with build-id to fix rawhide build
dc9af3
- upgrade to 1.13 (GCC4 build-fix and string fixes) (#449542)
dc9af3
- add -plugindir patch so listplugin and friends will work by default
dc9af3
  (Anthony Green #324741)
dc9af3
dc9af3
* Tue Aug  5 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.12-10
dc9af3
- fix license tag
dc9af3
dc9af3
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org>
dc9af3
- 1.12-9
dc9af3
- Autorebuild for GCC 4.3
dc9af3
dc9af3
* Mon Apr 23 2007 Thomas Vander Stichele <thomas at apestaart dot org>
dc9af3
- 1.12-8
dc9af3
- own the datadir.  Fixes #231706.
dc9af3
dc9af3
* Sat Sep 16 2006 Thomas Vander Stichele <thomas at apestaart dot org>
dc9af3
- 1.12-7
dc9af3
- include gcc 4.1 patch from Mandriva
dc9af3
dc9af3
* Sun Mar 05 2006 Thomas Vander Stichele <thomas at apestaart dot org>
dc9af3
- 1.12-6
dc9af3
- rebuilt for FE5
dc9af3
dc9af3
* Sun May 22 2005 Jeremy Katz <katzj@redhat.com> - 1.12-5
dc9af3
- rebuild on all arches
dc9af3
dc9af3
* Fri Apr  7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
dc9af3
- rebuilt
dc9af3
dc9af3
* Sun Sep 07 2003 Thomas Vander Stichele <thomas at apestaart dot org>
dc9af3
- 0:1.12-0.fdr.3: readded epoch, fixed group
dc9af3
dc9af3
* Fri Sep 05 2003 Thomas Vander Stichele <thomas at apestaart dot org>
dc9af3
- 1.12-0.fdr.2: fixed RPM_OPT_FLAGS respect
dc9af3
dc9af3
* Thu May 29 2003 Thomas Vander Stichele <thomas at apestaart dot org>
dc9af3
- 0:1.12-0.fdr.1: initial RPM release