[packages/vapoursynth-plugin-bestsource] - up to R23, only the vapoursynth plugin now

baggins baggins at pld-linux.org
Thu Oct 29 01:53:21 CET 2026


commit 5e95a5a957cfd25decaefd5be4cdb28baa30ca8f
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Thu Oct 29 00:01:49 2026 +0100

    - up to R23, only the vapoursynth plugin now

 bestsource-system-AviSynthPlus.patch | 22 +++++------
 bestsource-system-libp2p.patch       | 74 +++---------------------------------
 vapoursynth-plugin-bestsource.spec   | 37 +++++-------------
 3 files changed, 26 insertions(+), 107 deletions(-)
---
diff --git a/vapoursynth-plugin-bestsource.spec b/vapoursynth-plugin-bestsource.spec
index 9be2a8f..60c5a79 100644
--- a/vapoursynth-plugin-bestsource.spec
+++ b/vapoursynth-plugin-bestsource.spec
@@ -1,23 +1,17 @@
-#
-# Conditional build:
-%bcond_without	static_libs	# static library
-
 Summary:	Vapoursynth plugin to access audio and video via FFmpeg library
 Summary(pl.UTF-8):	Wtyczka Vapoursynth pozwalająca na dostęp do dźwięku i obrazu poprzez bibliotekę FFmpeg
 Name:		vapoursynth-plugin-bestsource
-# >= 9 requires ffmpeg 7+
-Version:	8
-Release:	2
+Version:	23
+Release:	1
 License:	MIT
 Group:		Libraries
 #Source0Download: https://github.com/vapoursynth/bestsource/releases
 Source0:	https://github.com/vapoursynth/bestsource/archive/R%{version}/bestsource-R%{version}.tar.gz
-# Source0-md5:	827740eaa706533f587e154b37d509aa
+# Source0-md5:	d8078bad01ad4d4bdceb7231f0c87a6d
 Patch0:		bestsource-system-libp2p.patch
 Patch1:		bestsource-system-AviSynthPlus.patch
 URL:		https://github.com/vapoursynth/bestsource
 BuildRequires:	AviSynthPlus-devel
-# libavcodec >= 60.31.0, libavformat >= 60.16.0, libavutil >= 58.29.0
 BuildRequires:	ffmpeg-devel >= 6.0
 BuildRequires:	libp2p-devel >= 0-0.20240415
 BuildRequires:	libstdc++-devel >= 6:7
@@ -30,6 +24,9 @@ BuildRequires:	xxHash-devel
 Requires:	bestsource = %{version}-%{release}
 Requires:	vapoursynth >= 55
 Obsoletes:	vapoursynth-plugin-bestaudiosource < 2
+Obsoletes:	bestsource < 23
+Obsoletes:	bestsource-devel < 23
+Obsoletes:	bestsource-static < 23
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -84,8 +81,7 @@ Statyczna biblioteka bestsource.
 %patch -P1 -p1
 
 %build
-%meson \
-	%{!?with_static_libs:--default-library=shared}
+%meson
 
 %meson_build
 
@@ -99,20 +95,5 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc LICENSE README.md
-%attr(755,root,root) %{_libdir}/vapoursynth/bestsource.so
-
-%files -n bestsource
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libbestsource.so
-
-%files -n bestsource-devel
-%defattr(644,root,root,755)
-%{_includedir}/bestsource
-%{_pkgconfigdir}/bestsource.pc
-
-%if %{with static_libs}
-%files -n bestsource-static
-%defattr(644,root,root,755)
-%{_libdir}/libbestsource.a
-%endif
+%doc README.md
+%attr(755,root,root) %{py3_sitedir}/vapoursynth/plugins/libbestsource.so
diff --git a/bestsource-system-AviSynthPlus.patch b/bestsource-system-AviSynthPlus.patch
index b7d6245..6d40398 100644
--- a/bestsource-system-AviSynthPlus.patch
+++ b/bestsource-system-AviSynthPlus.patch
@@ -1,11 +1,11 @@
---- bestsource-R4/src/avisynth.cpp.orig	2024-04-25 09:54:57.000000000 +0200
-+++ bestsource-R4/src/avisynth.cpp	2024-05-27 21:47:03.609466239 +0200
-@@ -23,7 +23,7 @@
- #include "bsshared.h"
- #include "version.h"
- #include "synthshared.h"
--#include "../AviSynthPlus/avs_core/include/avisynth.h"
-+#include <avisynth/avisynth.h>
- #include <VSHelper4.h>
- #include <vector>
- #include <algorithm>
+--- bestsource-R23/meson.build~	2026-10-28 23:56:12.000000000 +0100
++++ bestsource-R23/meson.build	2026-10-28 23:57:27.166443060 +0100
+@@ -145,7 +145,7 @@
+     # does not match the host AviSynth+ can never be loaded by it. Leave the interface out entirely
+     # in that case instead of exporting an AvisynthPluginInit3 that cannot work.
+     if get_option('enable_avisynth')
+-        deps += dependency('avisynthplus')
++        deps += dependency('avisynth')
+ 
+         sources += files(
+             'src/avisynth.cpp',
diff --git a/bestsource-system-libp2p.patch b/bestsource-system-libp2p.patch
index b7843e9..876ae32 100644
--- a/bestsource-system-libp2p.patch
+++ b/bestsource-system-libp2p.patch
@@ -1,73 +1,11 @@
 --- bestsource-R8/meson.build.orig	2024-10-19 18:00:53.000000000 +0200
 +++ bestsource-R8/meson.build	2025-06-06 17:58:52.546182236 +0200
-@@ -29,38 +29,14 @@ plugin_sources = files(
-     'src/vapoursynth.cpp',
- )
- 
--libs = []
--p2p_args = []
--
--if host_machine.cpu_family().startswith('x86')
--    p2p_args += ['-DP2P_SIMD']
--endif
--
--libs += static_library('p2p_main',
--    files(
--        'libp2p/p2p_api.cpp',
--        'libp2p/v210.cpp',
--        'libp2p/simd/cpuinfo_x86.cpp',
--        'libp2p/simd/p2p_simd.cpp',
--    ),
--    cpp_args: p2p_args,
--    gnu_symbol_visibility: 'hidden',
--)
--
--if host_machine.cpu_family().startswith('x86')
--    p2p_args += ['-msse4.1']
--
--    libs += static_library('p2p_sse41', files('libp2p/simd/p2p_sse41.cpp'),
--        cpp_args: p2p_args,
--        gnu_symbol_visibility: 'hidden',
--    )
--endif
-+p2p_dep = meson.get_compiler('cpp').find_library('p2p')
- 
- deps = [
-     dependency('libavcodec', version: '>=60.31.0'),
-     dependency('libavformat', version: '>=60.16.0'),
-     dependency('libavutil', version: '>=58.29.0'),
+@@ -16,7 +16,7 @@
+     dependency('libavcodec', version: '>=63.1.0'),
+     dependency('libavformat', version: '>=63.1.0'),
+     libavutil_dep,
+-    dependency('libp2p'),
++    meson.get_compiler('cpp').find_library('p2p'),
      dependency('libxxhash'),
-+    p2p_dep,
  ]
  
- link_args = []
-@@ -73,7 +49,6 @@ libbestsource = library('libbestsource',
-     dependencies: deps,
-     install: true,
-     link_args: link_args,
--    link_with: libs,
-     name_prefix: '',
- )
- 
---- bestsource-R12/src/videosource.cpp.orig	2025-05-13 21:43:54.000000000 +0200
-+++ bestsource-R12/src/videosource.cpp	2025-06-06 17:49:12.665990383 +0200
-@@ -26,7 +26,7 @@
- #include <iterator>
- #include <charconv>
- 
--#include "../libp2p/p2p_api.h"
-+#include <p2p_api.h>
- 
- #include <xxhash.h>
- 
---- bestsource-R4/src/audiosource.cpp.orig	2024-04-25 09:54:57.000000000 +0200
-+++ bestsource-R4/src/audiosource.cpp	2024-05-27 06:28:13.010135677 +0200
-@@ -26,7 +26,7 @@
- #include <cassert>
- #include <iterator>
- 
--#include "../libp2p/p2p_api.h"
-+#include <p2p_api.h>
- 
- #include <xxhash.h>
- 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/vapoursynth-plugin-bestsource.git/commitdiff/5e95a5a957cfd25decaefd5be4cdb28baa30ca8f



More information about the pld-cvs-commit mailing list