%global source_date_epoch_from_changelog nil %global clamp_mtime_to_source_date_epoch 1 %global srcname znedi3 %global commitid 47e7698 %global fullcommitid 47e7698f481577ac325567bb553134520939f1ff Name: vapoursynth-plugin-%{srcname} Version: 2.1.r.%{commitid} Release: 1%{?dist} Summary: Vapoursynth plugin %{srcname} License: MIT URL: https://github.com/sekrit-twc/znedi3 Source0: %{url}/archive/%{commitid}.zip Source1: znedi3-deps.tar.gz BuildRequires: vapoursynth-devel BuildRequires: git-core BuildRequires: g++ BuildRequires: autoconf BuildRequires: automake BuildRequires: libtool BuildRequires: yasm Requires: vapoursynth-libs Requires: libstdc++ %description Plugin for Vapoursynth: %{srcname} %prep %autosetup -S git -n %{srcname}-%{fullcommitid} -a1 # Use system vapoursynth headers. rm -fr vsxx/VapourSynth sed -e "s| -Ivsxx/vapoursynth||g" \ -e '/VSConstants4.h/d' \ -e '/VapourSynth4.h/d' \ -e '/VSHelper4.h/d'\ -i Makefile %build export CXXFLAGS="${CXXFLAGS/-fno-plt/-fplt}" export CPPFLAGS+=" $(pkg-config --cflags vapoursynth) -DNNEDI3_WEIGHTS_PATH=\\\"/usr/lib64/vapoursynth/nnedi3_weights.bin\\\"" export LDFLAGS="${LDFLAGS/-z,now/-z,lazy}" %make_build %install install -Dm755 "vsznedi3.so" "%{buildroot}%{_libdir}/vapoursynth/libvsznedi3.so" %files %{_libdir}/vapoursynth/libvsznedi3.so