diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..363fa2e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/ladspa_sdk_1.13.tgz diff --git a/EMPTY b/EMPTY deleted file mode 100644 index 0519ecb..0000000 --- a/EMPTY +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ladspa-1.13-plugindir.patch b/ladspa-1.13-plugindir.patch new file mode 100644 index 0000000..745062e --- /dev/null +++ b/ladspa-1.13-plugindir.patch @@ -0,0 +1,25 @@ +--- src/search.c 2001-07-21 09:04:23.000000000 -0700 ++++ src/search.c.plugindir 2007-10-09 04:43:30.000000000 -0700 +@@ -99,10 +99,7 @@ + + pcLADSPAPath = getenv("LADSPA_PATH"); + if (!pcLADSPAPath) { +- fprintf(stderr, +- "Warning: You do not have a LADSPA_PATH " +- "environment variable set.\n"); +- return; ++ pcLADSPAPath = PLUGINDIR; + } + + pcStart = pcLADSPAPath; +--- src/load.c 2001-07-21 09:04:23.000000000 -0700 ++++ src/load.c.plugindir 2007-10-09 04:42:47.000000000 -0700 +@@ -54,6 +54,8 @@ + to search. */ + + pcLADSPAPath = getenv("LADSPA_PATH"); ++ if (! pcLADSPAPath) ++ pcLADSPAPath = PLUGINDIR; + + if (pcLADSPAPath) { + diff --git a/ladspa.spec b/ladspa.spec new file mode 100644 index 0000000..ffd9f95 --- /dev/null +++ b/ladspa.spec @@ -0,0 +1,192 @@ +Name: ladspa +Version: 1.13 +Release: 20%{?dist} + +Summary: Linux Audio Developer's Simple Plug-in API, examples and tools + +Group: System Environment/Libraries +License: LGPLv2+ +URL: http://www.ladspa.org/ +Source: http://www.ladspa.org/download/%{name}_sdk_%{version}.tgz +Patch1: ladspa-1.13-plugindir.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: perl-interpreter +BuildRequires: gcc-c++ + +%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 +Group: Development/Libraries +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 +%patch1 -p0 -b .plugindir +# 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 + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc doc/COPYING +%dir %{_libdir}/ladspa +%{_libdir}/ladspa/*.so +%{_bindir}/analyseplugin +%{_bindir}/applyplugin +%{_bindir}/listplugins +%{_datadir}/ladspa + +%files devel +%defattr(-,root,root,-) +%doc doc/*.html +%{_includedir}/ladspa.h + + +%changelog +* Wed Feb 07 2018 Fedora Release Engineering - 1.13-20 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Aug 03 2017 Fedora Release Engineering - 1.13-19 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 1.13-18 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Fri Feb 10 2017 Fedora Release Engineering - 1.13-17 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Thu Feb 04 2016 Fedora Release Engineering - 1.13-16 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Wed Jun 17 2015 Fedora Release Engineering - 1.13-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Sat May 02 2015 Kalev Lember - 1.13-14 +- Rebuilt for GCC 5 C++11 ABI change + +* Sun Aug 17 2014 Fedora Release Engineering - 1.13-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Sat Jun 07 2014 Fedora Release Engineering - 1.13-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Sat Aug 03 2013 Fedora Release Engineering - 1.13-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Thu Feb 14 2013 Fedora Release Engineering - 1.13-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Thu Jul 19 2012 Fedora Release Engineering - 1.13-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Fri Jan 13 2012 Fedora Release Engineering - 1.13-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Mon Feb 07 2011 Fedora Release Engineering - 1.13-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Fri Jul 24 2009 Fedora Release Engineering - 1.13-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Sun Mar 22 2009 Robert Scheck - 1.13-5 +- Really added the plugindir patch now (thanks to Karsten Hopp) +- Avoid the make errors because of mkdirhier better than until now + +* Wed Feb 25 2009 Fedora Release Engineering - 1.13-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Wed Feb 25 2009 Fedora Release Engineering - 1.13-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Sun Nov 23 2008 Thomas Vander Stichele +- 1.13-2 +- updated summary +- not rebuilt yet + +* Fri Sep 5 2008 Michael Schwendt - 1.13-1 +- link with build-id to fix rawhide build +- upgrade to 1.13 (GCC4 build-fix and string fixes) (#449542) +- add -plugindir patch so listplugin and friends will work by default + (Anthony Green #324741) + +* Tue Aug 5 2008 Tom "spot" Callaway - 1.12-10 +- fix license tag + +* Tue Feb 19 2008 Fedora Release Engineering +- 1.12-9 +- Autorebuild for GCC 4.3 + +* Mon Apr 23 2007 Thomas Vander Stichele +- 1.12-8 +- own the datadir. Fixes #231706. + +* Sat Sep 16 2006 Thomas Vander Stichele +- 1.12-7 +- include gcc 4.1 patch from Mandriva + +* Sun Mar 05 2006 Thomas Vander Stichele +- 1.12-6 +- rebuilt for FE5 + +* Sun May 22 2005 Jeremy Katz - 1.12-5 +- rebuild on all arches + +* Fri Apr 7 2005 Michael Schwendt +- rebuilt + +* Sun Sep 07 2003 Thomas Vander Stichele +- 0:1.12-0.fdr.3: readded epoch, fixed group + +* Fri Sep 05 2003 Thomas Vander Stichele +- 1.12-0.fdr.2: fixed RPM_OPT_FLAGS respect + +* Thu May 29 2003 Thomas Vander Stichele +- 0:1.12-0.fdr.1: initial RPM release diff --git a/sources b/sources new file mode 100644 index 0000000..e4c172b --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (ladspa_sdk_1.13.tgz) = a1dab807fda58e08869d3f519be5fa91c394690eb13006fbe7f20b332548e4676b32b01273f5695bf36c8da72190c07618662a76d50f991b3f05068ac2b346ef