From 2de682f62825ef836740aa088b23c2a103bb66c3 Mon Sep 17 00:00:00 2001 From: Leigh Scott Date: Fri, 10 Dec 2021 16:04:47 +0000 Subject: [PATCH] Add model file for legacy apps that can't use the builtin models --- vmaf.spec | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/vmaf.spec b/vmaf.spec index 0110de6..53a22ff 100644 --- a/vmaf.spec +++ b/vmaf.spec @@ -54,6 +54,12 @@ Obsoletes: %{name}-devel < %{version}-%{release} The %{name}-devel package contains libraries and header files for developing applications that use %{name}. +%package models +Summary: Model files for %{name} + +%description models +The %{name}-models package contains model files. +These are needed for apps that can't use the builtin models. %prep %autosetup -p1 @@ -80,6 +86,9 @@ cat > %{buildroot}%{rpmmacrodir}/macros.%{name} << EOF EOF touch -r LICENSE %{buildroot}%{rpmmacrodir}/macros.%{name} +mkdir -p %{buildroot}%{_datadir}/model/ +cp -Rp model/* %{buildroot}%{_datadir}/model/ + %check pushd libvmaf ninja -vC %{_vpath_builddir} test @@ -92,6 +101,9 @@ popd %doc README.md %{_bindir}/vmaf +%files models +%{_datadir}/model/ + %files -n libvmaf %doc CHANGELOG.md %license LICENSE