File vapoursynth-plugin-wwxd.spec of Package vapoursynth-plugin-wwxd

#
# spec file for package vapoursynth-plugin-wwxd
#
# 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#

Name:           vapoursynth-plugin-wwxd
Version:        1.0+0.ga587086
Release:        0
Summary:        Xvid-like scene change detection for VapourSynth
License:        GPL-2.0-or-later
URL:            https://github.com/dubhater/vapoursynth-wwxd
Source0:        vapoursynth-wwxd-%{version}.tar.zst
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(vapoursynth)

%description
WWXD is basically Xvid's frame type decision code stuffed into a
VapourSynth plugin.

The output is somewhat different from Scxvid's, because Xvid's
decisions are also affected by data calculated while encoding frames.

WWXD may miss more scene changes than Scxvid.
It may also detect some that Scxvid missed.
WWXD is considerably faster than Scxvid, possibly about six times.

%prep
%autosetup -n vapoursynth-wwxd-%{version}

%build
cc %{optflags} \
    -o libwwxd.so \
    -fPIC \
    -shared \
    -Wall -Wextra -Wno-unused-parameter \
    $(pkg-config --cflags vapoursynth) \
    src/wwxd.c \
    src/detection.c

%install
install -Dm755 libwwxd.so %{buildroot}%{_libdir}/vapoursynth/libwwxd.so

%files
%doc readme
%{_libdir}/vapoursynth

%changelog
openSUSE Build Service is sponsored by