Compare commits

...
Sign in to create a new pull request.

3 commits

Author SHA1 Message Date
Leigh Scott
79895751a1 Bump changelog 2021-12-11 19:24:30 +00:00
Leigh Scott
80647d2482 fix sub-package arch 2021-12-11 19:19:04 +00:00
Leigh Scott
a2729571d2 Add model file for legacy apps that can't use the builtin models 2021-12-11 19:18:43 +00:00

View file

@ -1,6 +1,6 @@
Name: vmaf
Version: 2.1.1
Release: 2%{?dist}
Release: 3%{?dist}
Summary: Video Multi-Method Assessment Fusion
License: BSD-2-Clause-Patent
@ -54,6 +54,14 @@ 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}
Requires: libvmaf = %{version}-%{release}
BuildArch: noarch
%description models
The %{name}-models package contains model files.
These are needed for apps that can't use the builtin models.
%prep
%autosetup -p1
@ -76,10 +84,13 @@ popd
mkdir -p %{buildroot}%{rpmmacrodir}
cat > %{buildroot}%{rpmmacrodir}/macros.%{name} << EOF
# libvmaf RPM Macros
%libvmaf_version %{version}
%libvmaf_version %{version}
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 +103,9 @@ popd
%doc FAQ.md README.md
%{_bindir}/vmaf
%files models
%{_datadir}/model/
%files -n libvmaf
%doc CHANGELOG.md
%license LICENSE
@ -106,6 +120,9 @@ popd
%changelog
* Sat Dec 11 2021 Leigh Scott <leigh123linux@gmail.com> - 2.1.1-3
- Add models sub-package
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild