Add model file for legacy apps that can't use the builtin models

epel9
Leigh Scott 3 years ago
parent 9f88e69ed1
commit 2de682f628

@ -54,6 +54,12 @@ Obsoletes: %{name}-devel < %{version}-%{release}
The %{name}-devel package contains libraries and header files for The %{name}-devel package contains libraries and header files for
developing applications that use %{name}. 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 %prep
%autosetup -p1 %autosetup -p1
@ -80,6 +86,9 @@ cat > %{buildroot}%{rpmmacrodir}/macros.%{name} << EOF
EOF EOF
touch -r LICENSE %{buildroot}%{rpmmacrodir}/macros.%{name} touch -r LICENSE %{buildroot}%{rpmmacrodir}/macros.%{name}
mkdir -p %{buildroot}%{_datadir}/model/
cp -Rp model/* %{buildroot}%{_datadir}/model/
%check %check
pushd libvmaf pushd libvmaf
ninja -vC %{_vpath_builddir} test ninja -vC %{_vpath_builddir} test
@ -92,6 +101,9 @@ popd
%doc README.md %doc README.md
%{_bindir}/vmaf %{_bindir}/vmaf
%files models
%{_datadir}/model/
%files -n libvmaf %files -n libvmaf
%doc CHANGELOG.md %doc CHANGELOG.md
%license LICENSE %license LICENSE

Loading…
Cancel
Save