[packages/vapoursynth-plugin-descratch] - updated to R4
qboosh
qboosh at pld-linux.org
Sat Nov 21 21:43:10 CET 2026
commit 32ac5802ac10fbcb048a7ef77b37ed91cb137c5f
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Nov 21 21:43:12 2026 +0100
- updated to R4
descratch-system-libs.patch | 11 +++++++++++
vapoursynth-plugin-descratch.spec | 31 +++++++++++++++++--------------
2 files changed, 28 insertions(+), 14 deletions(-)
---
diff --git a/vapoursynth-plugin-descratch.spec b/vapoursynth-plugin-descratch.spec
index 147e726..934be0b 100644
--- a/vapoursynth-plugin-descratch.spec
+++ b/vapoursynth-plugin-descratch.spec
@@ -1,18 +1,22 @@
Summary: DeScratch - Scratches Removing Filter
Summary(pl.UTF-8): DeScratch - filtr usuwający zarysowania
Name: vapoursynth-plugin-descratch
-Version: 3
+Version: 4
Release: 1
License: GPL v2
Group: Libraries
+#Source0Download: https://github.com/vapoursynth/descratch/releases
Source0: https://github.com/vapoursynth/descratch/archive/R%{version}/descratch-R%{version}.tar.gz
-# Source0-md5: f0a9f840689670169507a65b13fd0e1a
+# Source0-md5: 5369093f30b27811860f7df30d50b742
+Patch0: descratch-system-libs.patch
URL: https://github.com/vapoursynth/descratch
BuildRequires: AviSynthPlus-devel
-BuildRequires: libstdc++-devel
-BuildRequires: libtool >= 2:1.5
-BuildRequires: vapoursynth-devel >= 55
-Requires: vapoursynth >= 55
+BuildRequires: libstdc++-devel >= 6:7
+BuildRequires: meson >= 1.2.3
+BuildRequires: ninja >= 1.5
+BuildRequires: python3 >= 1:3.12
+BuildRequires: vapoursynth-devel >= 77
+Requires: vapoursynth >= 77
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -23,23 +27,22 @@ Ta wtyczka usuwa pionowe zarysowania ze zdigitalizowanych filmów.
%prep
%setup -q -n descratch-R%{version}
+%patch -P0 -p1
%build
-libtool --tag=CXX --mode=compile %{__cxx} -c -o src/descratch.lo %{rpmcxxflags} %{rpmcppflags} $(pkg-config --cflags vapoursynth avisynth) src/descratch.cpp
-libtool --tag=CXX --mode=link %{__cxx} -shared -module -avoid-version -o src/libdescratch.la %{rpmldflags} %{rpmcflags} src/descratch.lo -rpath %{_libdir}/vapoursynth
+%meson
+
+%meson_build
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_libdir}/vapoursynth
-
-libtool --mode=install install src/libdescratch.la $RPM_BUILD_ROOT%{_libdir}/vapoursynth
-%{__rm} $RPM_BUILD_ROOT%{_libdir}/vapoursynth/libdescratch.la
+%meson_install
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc doc/{descratch.html,*.jpg}
-%attr(755,root,root) %{_libdir}/vapoursynth/libdescratch.so
+%doc README.md doc/{descratch.html,*.jpg}
+%{py3_sitedir}/vapoursynth/plugins/descratch.so
diff --git a/descratch-system-libs.patch b/descratch-system-libs.patch
new file mode 100644
index 0000000..5a0a3a3
--- /dev/null
+++ b/descratch-system-libs.patch
@@ -0,0 +1,11 @@
+--- descratch-R4/meson.build.orig 2026-04-08 13:04:05.000000000 +0200
++++ descratch-R4/meson.build 2026-11-21 21:36:26.179914965 +0100
+@@ -6,7 +6,7 @@ project('DeScratch', 'cpp',
+ version: '4.0',
+ )
+
+-incdir = include_directories('vapoursynth/include', 'AviSynthPlus/avs_core/include')
++incdir = include_directories('/usr/include/vapoursynth', '/usr/include/avisynth')
+
+ py = import('python').find_installation(pure: false)
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/vapoursynth-plugin-descratch.git/commitdiff/32ac5802ac10fbcb048a7ef77b37ed91cb137c5f
More information about the pld-cvs-commit
mailing list