[packages/libsndfile] build library before building octave

atler atler at pld-linux.org
Fri Feb 14 18:53:00 CET 2025


commit ef854c64f8addf8f5fc9cee314899bed57a3863c
Author: Jan Palus <atler at pld-linux.org>
Date:   Fri Feb 14 18:29:47 2025 +0100

    build library before building octave

 libsndfile.spec          |  2 ++
 octave-build-order.patch | 15 +++++++++++++++
 2 files changed, 17 insertions(+)
---
diff --git a/libsndfile.spec b/libsndfile.spec
index 5e6e4fd..3f69a9c 100644
--- a/libsndfile.spec
+++ b/libsndfile.spec
@@ -19,6 +19,7 @@ Source0:	https://github.com/libsndfile/libsndfile/releases/download/%{version}/%
 # Source0-md5:	04e2e6f726da7c5dc87f8cf72f250d04
 Patch0:		octave32.patch
 Patch1:		octave-include-dir.patch
+Patch2:		octave-build-order.patch
 URL:		http://www.mega-nerd.com/libsndfile/
 BuildRequires:	alsa-lib-devel
 BuildRequires:	autoconf >= 2.69
@@ -127,6 +128,7 @@ dźwiękowych.
 %setup -q
 %patch -P0 -p1
 %patch -P1 -p1
+%patch -P2 -p1
 
 %if %{without tests}
 %{__sed} -i 's, tests$,,' Makefile.am
diff --git a/octave-build-order.patch b/octave-build-order.patch
new file mode 100644
index 0000000..9f7945c
--- /dev/null
+++ b/octave-build-order.patch
@@ -0,0 +1,15 @@
+--- libsndfile-1.2.2/Makefile.am.orig	2025-02-14 18:03:09.204974042 +0100
++++ libsndfile-1.2.2/Makefile.am	2025-02-14 18:26:00.284673105 +0100
+@@ -6,9 +6,11 @@
+ 
+ CLEANFILES = programs/*.wav octave-workspace
+ 
++SUBDIRS = .
++
+ if FULL_SUITE
+ if BUILD_OCTAVE_MOD
+-SUBDIRS = Octave
++SUBDIRS += Octave
+ endif
+ endif
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libsndfile.git/commitdiff/ef854c64f8addf8f5fc9cee314899bed57a3863c



More information about the pld-cvs-commit mailing list