Update to Factory version #1

Manually merged
anag_factory merged 5 commits from mlin7442/libplacebo5:161_branch_20260205 into leap-16.1 2026-02-09 10:16:10 +01:00
4 changed files with 44 additions and 30044 deletions

28
12509c0f.patch Normal file
View File

@@ -0,0 +1,28 @@
From 12509c0f1ee8c22ae163017f0a5e7b8a9d983a17 Mon Sep 17 00:00:00 2001
From: Nicolas Chauvet <kwizart@gmail.com>
Date: Tue, 29 Jul 2025 11:42:35 +0200
Subject: [PATCH] vulkan/utils_gen: fix for python 3.14
Python 3.14+ has added more type checking. This patch fixes usage
Fixes: https://github.com/haasn/libplacebo/issues/335
Signed-off-by: Nicolas Chauvet <kwizart@gmail.com>
---
src/vulkan/utils_gen.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/vulkan/utils_gen.py b/src/vulkan/utils_gen.py
index 9a97d35f3..9b803d82b 100644
--- a/src/vulkan/utils_gen.py
+++ b/src/vulkan/utils_gen.py
@@ -202,7 +202,8 @@ def find_registry_xml(datadir):
if not xmlfile or xmlfile == '':
xmlfile = find_registry_xml(datadir)
- registry = VkXML(ET.parse(xmlfile))
+ tree = ET.parse(xmlfile)
+ registry = VkXML(tree.getroot())
with open(outfile, 'w') as f:
f.write(TEMPLATE.render(
vkresults = get_vkenum(registry, 'VkResult'),

View File

@@ -1,3 +1,15 @@
-------------------------------------------------------------------
Tue Sep 9 10:21:05 UTC 2025 - llyyr <llyyr@yukari.in>
- Disabled tests and dropped plplay5 package, as this package only
exists to provide libplacebo264 for VLC. We don't need the demos
or run tests.
-------------------------------------------------------------------
Tue Aug 12 15:25:18 UTC 2025 - Dominique Leuenberger <dimstar@opensuse.org>
- Add 12509c0f.patch: Fix build on python 3.13.6.
-------------------------------------------------------------------
Wed Apr 16 16:57:41 UTC 2025 - Atri Bhattacharya <badshah400@gmail.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package libplacebo5
#
# Copyright (c) 2025 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -29,8 +29,8 @@ License: LGPL-2.1-or-later
Group: Development/Libraries/C and C++
URL: https://code.videolan.org/videolan/libplacebo
Source0: https://code.videolan.org/videolan/libplacebo/-/archive/v%{version}/libplacebo-v%{version}.tar.bz2
Source1: https://github.com/Immediate-Mode-UI/Nuklear/raw/c512ac886425f6b6b6c816d67f4cb1385cd4cc53/nuklear.h
Source9: baselibs.conf
Patch0: https://github.com/haasn/libplacebo/commit/12509c0f.patch
BuildRequires: c++_compiler
BuildRequires: c_compiler
BuildRequires: meson >= 0.63.0
@@ -41,9 +41,6 @@ BuildRequires: pkgconfig(dav1d)
BuildRequires: pkgconfig(dovi)
BuildRequires: pkgconfig(glfw3)
BuildRequires: pkgconfig(lcms2)
BuildRequires: pkgconfig(libavcodec)
BuildRequires: pkgconfig(libavformat)
BuildRequires: pkgconfig(libavutil)
BuildRequires: pkgconfig(libunwind)
BuildRequires: pkgconfig(sdl2)
BuildRequires: pkgconfig(shaderc)
@@ -75,33 +72,14 @@ primitives, as well as a standalone vulkan-based image/video
renderer. It is based on the core rendering algorithms and ideas
of mpv.
%if 0%{?suse_version} >= 1550 || 0%{?sle_version} > 150400
%package -n plplay5
Summary: Example video player based on %{libname}
Group: Productivity/Multimedia/Video/Players
Conflicts: plplay
%description -n plplay5
A small example video player based on %{libname} and FFmpeg. This provides little
more than the ability to display video files, and rather serves as a tool to
help understand and demonstrate the various options provided by %{libname}.
%endif
%prep
%setup -q -n %{libname}-v%{version}
cp %{SOURCE1} ./demos/3rdparty/nuklear/
%autosetup -p1 -n %{libname}-v%{version}
%build
%if 0%{?suse_version} < 1600
export PYTHON=%{_bindir}/python3.%{py_min_ver}
%endif
%meson -Dglslang=disabled -Dd3d11=disabled -Dtests=true \
%if 0%{?suse_version} >= 1550 || 0%{?sle_version} > 150400
-Ddemos=true \
%else
-Ddemos=false \
%endif
%meson -Dglslang=disabled -Dd3d11=disabled -Dtests=false
%meson_build
%install
@@ -124,9 +102,4 @@ export PYTHON=%{_bindir}/python3.%{py_min_ver}
%{_libdir}/%{libname}.so
%{_libdir}/pkgconfig/%{libname}.pc
%if 0%{?suse_version} >= 1550 || 0%{?sle_version} > 150400
%files -n plplay5
%{_bindir}/plplay
%endif
%changelog

30013
nuklear.h

File diff suppressed because it is too large Load Diff