File vapoursynth-mvtools.spec of Package vapoursynth-mvtools
#
# spec file for package vapoursynth-mvtools
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
%define __builder ninja
Name: vapoursynth-mvtools
Version: 24+8~git20240821.7471641
Release: 0
License: GPL-2.0
Summary: A set of filters for motion estimation and compensation for VapourSynth
Url: https://github.com/dubhater/vapoursynth-mvtools
Group: Productivity/Graphics/Bitmap Editors
#Source: https://github.com/dubhater/vapoursynth-mvtools/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source: %{name}-%{version}.tar.xz
BuildRequires: gcc-c++
BuildRequires: nasm
BuildRequires: yasm
BuildRequires: pkg-config
BuildRequires: meson
BuildRequires: ninja
BuildRequires: vapoursynth-devel
BuildRequires: fftw3-devel >= 3.3.4
BuildRequires: xz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
MVTools is a set of filters for motion estimation and compensation.
This is a port of version 2.5.11.20 of the Avisynth plugin.
Some changes from version 2.5.11.9 of the SVP fork have been incorporated as well (http://www.svp-team.com/wiki/Download).
%prep
%autosetup -p1
%build
export CFLAGS="%{optflags} -fPIC -O3 -ftree-parallelize-loops=4 -ftree-vectorize -fpredictive-commoning"
%ifarch x86_64
export CFLAGS="${CFLAGS} -march=x86-64-v2 -mtune=generic -mssse3 -msse4 -msse4.1 -msse4.2 -mavx -maes -mpclmul"
%endif
export CXXFLAGS="${CFLAGS}"
%meson \
--libdir="%{_libdir}/vapoursynth" \
%{nil} || cat */meson-logs/meson-log.txt
%meson_build
%install
%meson_install
%files
%doc readme.rst
%{_libdir}/vapoursynth