You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
vmaf/vmaf.spec

146 lines
4.1 KiB

6 years ago
Name: vmaf
5 years ago
Version: 1.5.1
Release: 3%{?dist}
6 years ago
Summary: Video Multi-Method Assessment Fusion
5 years ago
License: BSD-2-Clause-Patent
5 years ago
URL: https://github.com/netflix/vmaf
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
5 years ago
Patch0: 0001-Use-better-FLAGS-for-ptools.patch
6 years ago
Patch1: 0002-Unbundle-pugixml.patch
5 years ago
Patch3: 0003-Fix-soname.patch
Patch4: 0004-Avoid-x86cpudetection-code-when-not-relevant.patch
Patch5: 0005-Use-shared-for-vmafossexec.patch
6 years ago
# This project relies on AVX
ExclusiveArch: x86_64
BuildRequires: gcc-c++
5 years ago
BuildRequires: meson
6 years ago
BuildRequires: libsvm-devel
BuildRequires: pugixml-devel
# Enforce our own build version for library
Requires: libvmaf%{?_isa} = %{version}-%{release}
# Upstream only provides a static library
# Packages using libvmaf must Requires this:
#%%{?libvmaf_version:Requires: libvmaf%%{?_isa} = %%{libvmaf_version}}
%description
VMAF is a perceptual video quality assessment algorithm developed by
Netflix. VMAF Development Kit (VDK) is a software package that contains
the VMAF algorithm implementation, as well as a set of tools that allows
a user to train and test a custom VMAF model. For an overview, read this
tech blog post, or this slide deck.
https://github.com/Netflix/vmaf/blob/master/resource/doc/VMAF_ICIP17.pdf
%package -n libvmaf
Summary: Library for %{name}
#Some repo provides it
Provides: %{name}-static = %{version}-%{release}
Obsoletes: %{name}-static < %{version}-%{release}
%description -n libvmaf
Library for %{name}.
%package -n libvmaf-devel
Summary: Development files for %{name}
Requires: libvmaf%{?_isa} = %{version}-%{release}
#Some repo provides it
Provides: %{name}-devel = %{version}-%{release}
Obsoletes: %{name}-devel < %{version}-%{release}
%description -n libvmaf-devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%prep
5 years ago
%autosetup -p1
6 years ago
# Unbundle
5 years ago
rm -rf libvmaf/src/third_party/pugixml
rm -rf third_party/libsvm
sed -i -e 's@1.3.16@%{version}@g' libvmaf/meson.build
6 years ago
%build
5 years ago
pushd libvmaf
%meson
%meson_build
popd
6 years ago
%install
5 years ago
pushd libvmaf
%meson_install
popd
6 years ago
5 years ago
mv %{buildroot}%{_libdir}/libvmaf.so.0 \
6 years ago
%{buildroot}%{_libdir}/libvmaf.so.0.0.0
ln -s libvmaf.so.0.0.0 \
%{buildroot}%{_libdir}/libvmaf.so.0
5 years ago
rm -f %{buildroot}%{_libdir}/libvmaf.a
6 years ago
#RPM Macros support
mkdir -p %{buildroot}%{rpmmacrodir}
cat > %{buildroot}%{rpmmacrodir}/macros.%{name} << EOF
# libvmaf RPM Macros
%libvmaf_version %{version}
EOF
touch -r LICENSE %{buildroot}%{rpmmacrodir}/macros.%{name}
%ldconfig_scriptlets -n libvmaf
%files
%doc FAQ.md NOTICE.md README.md
%{_bindir}/vmafossexec
%{_datadir}/model/
%files -n libvmaf
%doc CHANGELOG.md
%license LICENSE
%{_libdir}/*.so.*
%files -n libvmaf-devel
%doc CONTRIBUTING.md
%{rpmmacrodir}/macros.%{name}
5 years ago
%{_includedir}/libvmaf/
6 years ago
%{_libdir}/*.so
%{_libdir}/pkgconfig/libvmaf.pc
%changelog
* Sat May 23 2020 Leigh Scott <leigh123linux@gmail.com> - 1.5.1-3
- Fix pkconfig version
* Wed Mar 04 2020 Leigh Scott <leigh123linux@gmail.com> - 1.5.1-2
- Use shared for vmafossexec
5 years ago
* Tue Mar 03 2020 Leigh Scott <leigh123linux@gmail.com> - 1.5.1-1
- Update to 1.5.1
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.15-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
5 years ago
* Wed Sep 11 2019 Leigh Scott <leigh123linux@googlemail.com> - 1.3.15-1
- Update to 1.3.15
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.14-2.20190403git8f41503
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
6 years ago
* Sat Apr 06 2019 Nicolas Chauvet <kwizart@gmail.com> - 1.3.14-1.20190403git8f415036
5 years ago
- Update to 1.3.14
6 years ago
- Rebase patches
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.9-2.20180914gita654f6f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
6 years ago
* Fri Sep 21 2018 Nicolas Chauvet <kwizart@gmail.com> - 1.3.9-0.20180914gita654f6f
- Update to 1.3.9 up to 20180914
* Sat Apr 07 2018 Nicolas Chauvet <kwizart@gmail.com> - 1.3.3-1.20180407git510e257
- Initial spec file