%global source_date_epoch_from_changelog nil %global clamp_mtime_to_source_date_epoch 1 %global srcname removegrain %global commitid 89ca38a %global fullcommitid 89ca38a6971e371bdce2778291393258daa5f03b Name: vapoursynth-plugin-%{srcname} Version: R1.r.%{commitid} Release: 1%{?dist} Summary: Vapoursynth plugin %{srcname} License: MIT URL: https://github.com/vapoursynth/vs-removegrain Source0: %{url}/archive/%{commitid}.zip BuildRequires: vapoursynth-devel BuildRequires: git-core BuildRequires: meson BuildRequires: g++ Requires: vapoursynth-libs Requires: libstdc++ %description Plugin for Vapoursynth: %{srcname} %prep %autosetup -S git -n vs-%{srcname}-%{fullcommitid} %build CXXFLAGS="-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer" %meson --buildtype=release %meson_build %install %meson_install %files %{_libdir}/vapoursynth/libremovegrain.so