6 Commits

Author SHA256 Message Date
5aac3415e7 Accepting request 1318731 from multimedia:libs
- Add xxd.patch and ditch build dependency on vim's xxd

OBS-URL: https://build.opensuse.org/request/show/1318731
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/vmaf?expand=0&rev=12
2025-11-21 15:54:11 +00:00
6b6843b6a9 Accepting request 1297723 from multimedia:libs
- Move vmaf utilities to their own subpackage [boo#1247607]

OBS-URL: https://build.opensuse.org/request/show/1297723
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/vmaf?expand=0&rev=11
2025-08-06 12:31:31 +00:00
OBS User unknown
93dd08d6d0 [info=ad97bc3c7abbcee82eb114603da41698cfc492554b177d194ad284e080f2c85c]
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/vmaf?expand=0&rev=31
2025-08-05 12:58:08 +00:00
OBS User unknown
14a052fbd0 [info=3b5a32fb73945c03d61562140a6b2e91ff77561d80964378e905fa4c6aaaf6ce]
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/vmaf?expand=0&rev=30
2025-08-05 12:57:45 +00:00
OBS User unknown
f7555d3571 [info=fbc5b4c5727b7be8af5fd5df4b85a5110949326e41ae6442da99c9a44b1d3d15]
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/vmaf?expand=0&rev=29
2025-03-01 18:59:56 +00:00
95b91cf989 [info=646d769f1b86b6ce8f387b31054ae9d6674a3a9c8b3a79d4a39c7c99802d0cd9]
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/vmaf?expand=0&rev=28
2025-03-01 18:59:31 +00:00
5 changed files with 64 additions and 12 deletions

4
_scmsync.obsinfo Normal file
View File

@@ -0,0 +1,4 @@
mtime: 1763421768
commit: c0e3f4251180ca6a165e7b4779d38713842e9e8c6dcdf1ca89fad2283a799caf
url: https://src.opensuse.org/jengelh/vmaf
revision: master

3
build.specials.obscpio Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:796ae41bccd169f7daff64595f85540275f536f911d3879e3342f6b73d175aed
size 256

View File

@@ -1,3 +1,18 @@
-------------------------------------------------------------------
Mon Nov 17 23:22:22 UTC 2025 - Jan Engelhardt <jengelh@inai.de>
- Add xxd.patch and ditch build dependency on vim's xxd
-------------------------------------------------------------------
Tue Aug 5 12:50:35 UTC 2025 - Jan Engelhardt <jengelh@inai.de>
- Move vmaf utilities to their own subpackage [boo#1247607]
-------------------------------------------------------------------
Thu Feb 27 23:37:08 UTC 2025 - Jan Engelhardt <jengelh@inai.de>
- Make specfile compliant with POSIX sh
-------------------------------------------------------------------
Thu Feb 15 09:49:43 UTC 2024 - Ondřej Súkup <mimi.vx@gmail.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package vmaf
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -30,13 +30,14 @@ Group: Productivity/Multimedia/Video/Editors and Convertors
URL: https://github.com/Netflix/vmaf
Source: https://github.com/Netflix/vmaf/archive/v%version.tar.gz
Source9: baselibs.conf
Patch1: xxd.patch
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: meson >= 0.47
BuildRequires: nasm
BuildRequires: pkg-config
BuildRequires: xxd
Provides: bundled(libsvm) = 3.24
Provides: vmaf-devel:/usr/bin/vmaf
%description
VMAF is a perceptual video quality assessment algorithm.
@@ -59,34 +60,35 @@ Netflix.
This package contains the library API definitions.
%prep
%autosetup
%autosetup -p1
%build
export PATH="$PATH:$PWD/bin"
chmod a+x bin/xxd
rm -rf third_party
pushd libvmaf/
cd libvmaf/
%meson -Dbuilt_in_models=true -Denable_float=true
%meson_build
popd
%install
pushd libvmaf/
cd libvmaf/
%meson_install
popd
rm -f "%buildroot/%_libdir"/*.a
%fdupes %buildroot/%_prefix
%post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig
%ldconfig_scriptlets -n %lname
%files
%_bindir/vmaf*
%license LICENSE
%doc README.md
%files -n %lname
%_libdir/libvmaf.so.%{sonum}*
%files devel
%_bindir/vmaf*
%_includedir/libvmaf/
%_libdir/libvmaf.so
%_libdir/pkgconfig/*.pc
%license LICENSE
%doc README.md
%changelog

28
xxd.patch Normal file
View File

@@ -0,0 +1,28 @@
From: Jan Engelhardt <ej@inai.de>
Date: 2025-11-18 00:02:49.785881693 +0100
xxd comes from vim. That's too much of a build dependency.
---
bin/xxd | 15 +++++++++++++++
1 file changed, 15 insertions(+)
Index: vmaf/bin/xxd
===================================================================
--- /dev/null
+++ vmaf/bin/xxd
@@ -0,0 +1,15 @@
+#!/usr/bin/perl
+use Getopt::Long;
+use strict;
+use warnings;
+my($nflag, $iflag);
+&Getopt::Long::Configure(qw(bundling));
+&GetOptions("include" => \$iflag, "i" => \$iflag, "n=s" => \$nflag);
+if (!defined($nflag)) { ($nflag = $ARGV[0]) =~ s{[^a-z0-9]}{_}gi; }
+open(STDIN, "<", $ARGV[0]) or die("$ARGV[0]: $!");
+if (scalar(@ARGV) == 2) { open(STDOUT, ">", $ARGV[1]) or die("$ARGV[1]: $!"); }
+my $data = join("", <STDIN>);
+print "unsigned int ${nflag}_len = ", length($data), ";\n";
+print "unsigned char $nflag", "[", length($data), "] = {\n";
+for (my $i = 0; $i < length($data); ++$i) { printf("0x%x,", ord(substr($data, $i, 1))); }
+print "};\n";