[packages/vapoursynth] - update to 81 - todo: cleanup default install mess
baggins
baggins at pld-linux.org
Wed Oct 28 01:49:43 CET 2026
commit fe81df76f3775c62ab22159927b95f876c0b5ce5
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Wed Oct 28 01:48:58 2026 +0100
- update to 81
- todo: cleanup default install mess
system-glslang.patch | 11 +++++++++++
vapoursynth-sse2.patch | 32 --------------------------------
vapoursynth.spec | 45 +++++++++++++++++----------------------------
3 files changed, 28 insertions(+), 60 deletions(-)
---
diff --git a/vapoursynth.spec b/vapoursynth.spec
index b238480..4a8b312 100644
--- a/vapoursynth.spec
+++ b/vapoursynth.spec
@@ -13,25 +13,25 @@ Summary(pl.UTF-8): Szkielet do przetwarzania obrazu stworzony z myślą o prosto
Name: vapoursynth
# versions >= 73 removes VSScript v3 API, used by ffmpeg 6.1.x
# versions >= 77 (or lower) removes system-wide library, moving all to python plugin tree
-Version: 72
-Release: 1
+Version: 81
+Release: 0.1
License: LGPL v2.1+
Group: Libraries
#Source0Download: https://github.com/vapoursynth/vapoursynth/releases
Source0: https://github.com/vapoursynth/vapoursynth/archive/R%{version}/%{name}-R%{version}.tar.gz
-# Source0-md5: e8dc8f3d327805b0a893c65c1a772745
-Patch0: %{name}-sse2.patch
+# Source0-md5: 1a60f95419daf7e6147ef5b68c688518
+Patch0: system-glslang.patch
URL: http://www.vapoursynth.com/
-BuildRequires: autoconf >= 2.50
-BuildRequires: automake >= 1:1.11
+BuildRequires: Vulkan-Headers
+BuildRequires: glslang-devel >= 16.4.0
BuildRequires: libstdc++-devel >= 6:7
-BuildRequires: libtool >= 2:2
%if %{with sse}
BuildRequires: nasm
%endif
BuildRequires: pkgconfig
-BuildRequires: python3-Cython
+BuildRequires: python3-Cython >= 3.3.0
BuildRequires: python3-devel >= 1:3.2
+BuildRequires: python3-meson-python >= 0.22.1
BuildRequires: rpm-build >= 4.6
BuildRequires: rpmbuild(macros) >= 1.752
BuildRequires: sed >= 4.0
@@ -101,22 +101,16 @@ Dokumentacja do biblioteki VapourSynth.
%prep
%setup -q -n %{name}-R%{version}
-%patch -P 0 -p1
-
-%if %{without sse}
-%{__sed} -i -e 's/"-mfpmath=sse -msse2"/""/' configure.ac
-%endif
+%patch -P0 -p1
%build
-%{__libtoolize}
-%{__aclocal}
-%{__autoconf}
-%{__automake}
-%configure \
- --disable-silent-rules \
- %{!?with_static_libs:--disable-static} \
- %{!?with_sse:--disable-x86-asm}
-%{__make}
+export CFLAGS="%{rpmcflags}"
+export CXXFLAGS="%{rpmcxxflags}"
+export LDFLAGS="%{rpmldflags}"
+%py3_build_pyproject \
+ -Csetup-args="-Denable_x86_asm=%{!?with_sse:false}%{?with_sse:true}" \
+ -Ccompile-args="--verbose" \
+ -Ccompile-args="%{?_smp_mflags}"
%if %{with doc}
sphinx-build-3 -b html doc doc/_build/html
@@ -126,12 +120,7 @@ sphinx-build-3 -b html doc doc/_build/html
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_libdir}/vapoursynth
-%{__make} install \
- DESTDIR=$RPM_BUILD_ROOT
-
-%{__rm} $RPM_BUILD_ROOT%{py3_sitedir}/vapoursynth.la
-# obsoleted by pkg-config
-%{__rm} $RPM_BUILD_ROOT%{_libdir}/libvapoursynth*.la
+%py3_install_pyproject
%clean
rm -rf $RPM_BUILD_ROOT
diff --git a/system-glslang.patch b/system-glslang.patch
new file mode 100644
index 0000000..3b4f8a9
--- /dev/null
+++ b/system-glslang.patch
@@ -0,0 +1,11 @@
+--- vapoursynth-R81/meson.build~ 2026-10-04 22:48:11.000000000 +0200
++++ vapoursynth-R81/meson.build 2026-10-27 22:33:16.206544225 +0100
+@@ -186,7 +186,7 @@
+ # Runtime GLSL to SPIR-V compilation: glslang is embedded statically and always present,
+ # taken from the wrap rather than the system so the accepted dialect stays a pinned
+ # platform property instead of following whatever glslang the machine happens to have.
+-glslang_dep = subproject('glslang').get_variable('glslang_dep')
++glslang_dep = [dependency('glslang'), cxx.find_library('glslang-default-resource-limits')]
+
+ soversion = is_win ? '' : run_command(
+ 'grep',
diff --git a/vapoursynth-sse2.patch b/vapoursynth-sse2.patch
deleted file mode 100644
index f0d2686..0000000
--- a/vapoursynth-sse2.patch
+++ /dev/null
@@ -1,32 +0,0 @@
---- vapoursynth-R62/Makefile.am.orig 2023-04-23 21:44:20.035726545 +0200
-+++ vapoursynth-R62/Makefile.am 2023-04-23 21:48:53.884242981 +0200
-@@ -94,7 +94,7 @@ libvapoursynth_la_LIBADD = $(PTHREAD_LIB
-
-
- if X86ASM
--noinst_LTLIBRARIES += libvapoursynth_avx2.la
-+noinst_LTLIBRARIES += libvapoursynth_avx2.la libvapoursynth_sse2.la
-
- libvapoursynth_avx2_la_SOURCES = src/core/kernel/x86/convolution_avx2.cpp \
- src/core/kernel/x86/generic_avx2.cpp \
-@@ -104,15 +104,18 @@ libvapoursynth_avx2_la_CFLAGS = $(AM_CFL
- libvapoursynth_avx2_la_CXXFLAGS = $(AM_CXXFLAGS) $(AVX2FLAGS)
-
- libvapoursynth_la_SOURCES += src/core/expr/jitasm.h \
-- src/core/expr/jitcompiler_x86.cpp \
-+ src/core/expr/jitcompiler_x86.cpp
-+libvapoursynth_sse2_la_SOURCES = \
- src/core/kernel/x86/average_sse2.c \
- src/core/kernel/x86/convolution_sse2.cpp \
- src/core/kernel/x86/generic_sse2.cpp \
- src/core/kernel/x86/merge_sse2.c \
- src/core/kernel/x86/planestats_sse2.c \
- src/core/kernel/x86/transpose_sse2.c
-+libvapoursynth_sse2_la_CFLAGS = $(AM_CFLAGS) -msse2
-+libvapoursynth_sse2_la_CXXFLAGS = $(AM_CXXFLAGS) -msse2
-
--libvapoursynth_la_LIBADD += libvapoursynth_avx2.la
-+libvapoursynth_la_LIBADD += libvapoursynth_avx2.la libvapoursynth_sse2.la
- endif # X86ASM
-
- if PYTHONMODULE
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/vapoursynth.git/commitdiff/fe81df76f3775c62ab22159927b95f876c0b5ce5
More information about the pld-cvs-commit
mailing list