[packages/ladspa] - updated to 1.15 - removed obsolete mkdirhier,gcc4 patches

qboosh qboosh at pld-linux.org
Tue Apr 9 18:51:48 CEST 2019


commit 86b3593070be2d236f3e69e6eaaf5eac4dfd58c8
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Apr 9 18:51:50 2019 +0200

    - updated to 1.15
    - removed obsolete mkdirhier,gcc4 patches

 ladspa-gcc4.patch      | 18 ------------------
 ladspa-mkdirhier.patch | 23 -----------------------
 ladspa.spec            | 36 +++++++++++++++++++-----------------
 3 files changed, 19 insertions(+), 58 deletions(-)
---
diff --git a/ladspa.spec b/ladspa.spec
index 54c6537..fc70f29 100644
--- a/ladspa.spec
+++ b/ladspa.spec
@@ -1,17 +1,15 @@
 Summary:	LADSPA SDK example plugins
 Summary(pl.UTF-8):	Przykładowe wtyczki z LADSPA SDK
 Name:		ladspa
-Version:	1.13
-Release:	4
+Version:	1.15
+Release:	1
 License:	LGPL v2.1+
 Group:		Libraries
 Source0:	http://www.ladspa.org/download/%{name}_sdk_%{version}.tgz
-# Source0-md5:	671be3e1021d0722cadc7fb27054628e
-Patch0:		%{name}-mkdirhier.patch
-Patch1:		%{name}-gcc4.patch
+# Source0-md5:	5824922ad4ae6aeb2910d302191e7afd
 URL:		http://www.ladspa.org/
-BuildRequires:	perl-base
 BuildRequires:	libstdc++-devel
+BuildRequires:	sed >= 4.0
 Requires:	%{name}-common = %{version}-%{release}
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -79,24 +77,22 @@ wtyczek jak i korzystania z nich w programach znajduje się w
 komentarzach pliku nagłówkowego ladspa.h.
 
 %prep
-%setup -q -n %{name}_sdk
-%patch0 -p1
-%patch1 -p1
-cd doc
-#fix links to the header file in the docs
-perl -pi -e "s!HREF=\"ladspa.h.txt\"!href=\"file:///usr/include/ladspa.h\"!" *.html
+%setup -q -n %{name}_sdk_%{version}
+
+%{__sed} -i -e 's!HREF="ladspa\.h\.txt"!HREF="file:///usr/include/ladpsa.h"!' doc/*.html
 
 %build
 %{__make} -C src targets \
-	CC="%{__cc}" CPP="%{__cxx}" \
-	CFLAGS="-I. -Wall -Werror %{rpmcflags} -fPIC"
+	CC="%{__cc}" \
+	CPP="%{__cxx}" \
+	CFLAGS="-I. -Wall -Werror %{rpmcflags} %{rpmcppflags} -fPIC -DDEFAULT_LADSPA_PATH=%{_libdir}/ladspa" \
+	CXXFLAGS="-I. -Wall -Werror %{rpmcxxflags} %{rpmcppflags} -fPIC -DDEFAULT_LADSPA_PATH=%{_libdir}/ladspa"
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_datadir}/ladspa/rdf
 
 %{__make} -C src install \
-	MKDIRHIER="/usr/bin/install -d" \
 	INSTALL_PLUGINS_DIR=$RPM_BUILD_ROOT%{_libdir}/ladspa \
 	INSTALL_INCLUDE_DIR=$RPM_BUILD_ROOT%{_includedir} \
 	INSTALL_BINARY_DIR=$RPM_BUILD_ROOT%{_bindir}
@@ -106,8 +102,14 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/*
-%attr(755,root,root) %{_libdir}/ladspa/*.so
+%attr(755,root,root) %{_bindir}/analyseplugin
+%attr(755,root,root) %{_bindir}/applyplugin
+%attr(755,root,root) %{_bindir}/listplugins
+%attr(755,root,root) %{_libdir}/ladspa/amp.so
+%attr(755,root,root) %{_libdir}/ladspa/delay.so
+%attr(755,root,root) %{_libdir}/ladspa/filter.so
+%attr(755,root,root) %{_libdir}/ladspa/noise.so
+%attr(755,root,root) %{_libdir}/ladspa/sine.so
 
 %files common
 %defattr(644,root,root,755)
diff --git a/ladspa-gcc4.patch b/ladspa-gcc4.patch
deleted file mode 100644
index 9e7dd7b..0000000
--- a/ladspa-gcc4.patch
+++ /dev/null
@@ -1,18 +0,0 @@
---- ladspa_sdk/src/plugins/sine.cpp.orig	2002-07-06 17:23:17.000000000 +0000
-+++ ladspa_sdk/src/plugins/sine.cpp	2005-11-25 11:15:11.691087784 +0000
-@@ -59,6 +59,15 @@
- 
- /*****************************************************************************/
- 
-+LADSPA_Handle instantiateSineOscillator(const LADSPA_Descriptor *, unsigned long SampleRate);
-+void connectPortToSineOscillator(LADSPA_Handle Instance, unsigned long Port, LADSPA_Data * DataLocation);
-+void activateSineOscillator(void * pvHandle);
-+void runSineOscillator_FreqAudio_AmpAudio(LADSPA_Handle Instance, unsigned long SampleCount);
-+void runSineOscillator_FreqAudio_AmpCtrl(LADSPA_Handle Instance, unsigned long SampleCount);
-+void runSineOscillator_FreqCtrl_AmpAudio(LADSPA_Handle Instance, unsigned long SampleCount);
-+void runSineOscillator_FreqCtrl_AmpCtrl(LADSPA_Handle Instance,	unsigned long SampleCount);
-+void cleanupSineOscillator(void *pvHandle);
-+
- class SineOscillator {
- private:
- 
diff --git a/ladspa-mkdirhier.patch b/ladspa-mkdirhier.patch
deleted file mode 100644
index 53e7a0e..0000000
--- a/ladspa-mkdirhier.patch
+++ /dev/null
@@ -1,23 +0,0 @@
---- ladspa_sdk/src/makefile.orig	2007-11-06 11:42:45.000000000 +0100
-+++ ladspa_sdk/src/makefile	2008-07-20 21:41:58.374043926 +0200
-@@ -27,6 +27,7 @@
- 			../bin/listplugins
- CC		=	cc
- CPP		=	c++
-+MKDIRHIER = mkdirhier
- 
- ###############################################################################
- #
-@@ -59,9 +60,9 @@
- 	@echo Test complete.
- 
- install:	targets
--	-mkdirhier $(INSTALL_PLUGINS_DIR)
--	-mkdirhier $(INSTALL_INCLUDE_DIR)
--	-mkdirhier $(INSTALL_BINARY_DIR)
-+	-$(MKDIRHIER) $(INSTALL_PLUGINS_DIR)
-+	-$(MKDIRHIER) $(INSTALL_INCLUDE_DIR)
-+	-$(MKDIRHIER) $(INSTALL_BINARY_DIR)
- 	cp ../plugins/* $(INSTALL_PLUGINS_DIR)
- 	cp ladspa.h $(INSTALL_INCLUDE_DIR)
- 	cp ../bin/* $(INSTALL_BINARY_DIR)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ladspa.git/commitdiff/86b3593070be2d236f3e69e6eaaf5eac4dfd58c8



More information about the pld-cvs-commit mailing list