commit 46bdb4f04e39a34f25992c6192a0be2653073388
Author: Leigh Scott <leigh123linux(a)gmail.com>
Date: Thu Sep 1 09:29:28 2022 +0100
Fix lv2 headers path
ffmpeg.spec | 3 ++-
lv2_headers_fix.patch | 13 +++++++++++++
2 files changed, 15 insertions(+), 1 deletion(-)
---
diff --git a/ffmpeg.spec b/ffmpeg.spec
index a255e34..767ef6d 100644
--- a/ffmpeg.spec
+++ b/ffmpeg.spec
@@ -143,6 +143,7 @@ Source0: ffmpeg-%{?branch}%{date}.tar.bz2
%else
Source0:
http://ffmpeg.org/releases/ffmpeg-%{version}.tar.xz
%endif
+Patch0: lv2_headers_fix.patch
Conflicts: %{name}-free
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
%{?_with_cuda:BuildRequires: cuda-minimal-build-%{_cuda_version_rpm} cuda-drivers-devel}
@@ -209,7 +210,7 @@ BuildRequires: nasm
%{?_with_omx:BuildRequires: libomxil-bellagio-devel}
BuildRequires: libxcb-devel
BuildRequires: libxml2-devel
-%{!?_without_lv2:BuildRequires: lilv-devel}
+%{!?_without_lv2:BuildRequires: lilv-devel lv2-devel >= 1.18.8 }
%{!?_without_openal:BuildRequires: openal-soft-devel}
%if 0%{!?_without_opencl:1}
BuildRequires: opencl-headers ocl-icd-devel
diff --git a/lv2_headers_fix.patch b/lv2_headers_fix.patch
new file mode 100644
index 0000000..727bf4f
--- /dev/null
+++ b/lv2_headers_fix.patch
@@ -0,0 +1,13 @@
+--- a/libavfilter/af_lv2.c 2022-07-22 18:58:39.000000000 +0100
++++ b/libavfilter/af_lv2.c 2022-09-01 09:18:44.308960087 +0100
+@@ -25,8 +25,8 @@
+ */
+
+ #include <lilv/lilv.h>
+-#include <lv2/lv2plug.in/ns/ext/atom/atom.h>
+-#include <lv2/lv2plug.in/ns/ext/buf-size/buf-size.h>
++#include <lv2/atom/atom.h>
++#include <lv2/buf-size/buf-size.h>
+
+ #include "libavutil/avstring.h"
+ #include "libavutil/channel_layout.h"