2020-10-18 19:19:40 +02:00
|
|
|
#
|
|
|
|
# spec file for package vmaf
|
|
|
|
#
|
2022-04-11 23:25:18 +02:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2020-10-18 19:19:40 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2021-01-08 09:08:46 +01:00
|
|
|
%define sonum 1
|
|
|
|
%define lname libvmaf%sonum
|
2021-01-07 22:44:58 +01:00
|
|
|
|
2021-03-08 13:49:57 +01:00
|
|
|
# undefined reference to `vmaf_cpu_cpuid'
|
2021-07-02 21:02:10 +02:00
|
|
|
%define _lto_cflags %nil
|
2020-10-18 19:19:40 +02:00
|
|
|
Name: vmaf
|
2022-04-11 23:25:18 +02:00
|
|
|
Version: 2.3.1
|
2020-10-18 19:19:40 +02:00
|
|
|
Release: 0
|
2020-10-19 22:29:21 +02:00
|
|
|
Summary: Perceptual video quality assessment algorithm
|
2020-10-18 19:19:40 +02:00
|
|
|
License: BSD-2-Clause-Patent AND BSD-3-Clause
|
|
|
|
Group: Productivity/Multimedia/Video/Editors and Convertors
|
|
|
|
URL: https://github.com/Netflix/vmaf
|
|
|
|
Source: https://github.com/Netflix/vmaf/archive/v%version.tar.gz
|
2020-10-23 10:47:57 +02:00
|
|
|
Source9: baselibs.conf
|
2020-10-18 19:19:40 +02:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: gcc-c++
|
2020-10-19 09:02:39 +02:00
|
|
|
BuildRequires: meson >= 0.47
|
2020-10-18 19:19:40 +02:00
|
|
|
BuildRequires: nasm
|
2020-10-19 14:15:09 +02:00
|
|
|
BuildRequires: pkg-config
|
2020-10-18 19:19:40 +02:00
|
|
|
Provides: bundled(libsvm) = 3.18
|
|
|
|
|
|
|
|
%description
|
|
|
|
VMAF is a perceptual video quality assessment algorithm.
|
|
|
|
|
|
|
|
%package -n %lname
|
2020-10-19 22:29:21 +02:00
|
|
|
Summary: Perceptual video quality assessment algorithm
|
2020-10-18 19:19:40 +02:00
|
|
|
Group: System/Libraries
|
|
|
|
Recommends: %name-data
|
|
|
|
|
|
|
|
%description -n %lname
|
|
|
|
VMAF is a perceptual video quality assessment algorithm.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development tools for Video Multi-Method Assessment Fusion
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %lname = %version-%release
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
VMAF is a perceptual video quality assessment algorithm developed by
|
|
|
|
Netflix.
|
|
|
|
This package contains the library API definitions.
|
|
|
|
|
|
|
|
%prep
|
2021-01-07 22:44:58 +01:00
|
|
|
%autosetup
|
2020-10-18 19:19:40 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
rm -rf third_party
|
|
|
|
pushd libvmaf/
|
|
|
|
%meson
|
|
|
|
%meson_build
|
|
|
|
popd
|
|
|
|
|
|
|
|
%install
|
|
|
|
pushd libvmaf/
|
|
|
|
%meson_install
|
|
|
|
popd
|
|
|
|
rm -f "%buildroot/%_libdir"/*.a
|
|
|
|
%fdupes %buildroot/%_prefix
|
|
|
|
|
|
|
|
%post -n %lname -p /sbin/ldconfig
|
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n %lname
|
2021-01-08 09:08:46 +01:00
|
|
|
%_libdir/libvmaf.so.%{sonum}*
|
2020-10-18 19:19:40 +02:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%_bindir/vmaf*
|
|
|
|
%_includedir/libvmaf/
|
|
|
|
%_libdir/libvmaf.so
|
|
|
|
%_libdir/pkgconfig/*.pc
|
|
|
|
%license LICENSE
|
2021-10-16 23:44:35 +02:00
|
|
|
%doc README.md
|
2020-10-18 19:19:40 +02:00
|
|
|
|
|
|
|
%changelog
|