From 9705e8817416e8856918f9c543bf3d6d685e2044865b97a0fca1f3785d4ba9f2 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Thu, 13 Oct 2022 07:57:37 +0000 Subject: [PATCH] Accepting request 1010377 from home:iznogood:branches:multimedia:libs - Drop _lto_cflags define, current version supports lto build. - Drop unneeded rpm BuildRequires. - Add pkgconfig(libxxhash) BuildRequires and stop passing xhash_muxer=disabled to meson, build hash_muxer support. - Add check section and meson_test macro, run tests during build. - Use ldconfig_scriptlets macro for post(un) handling. OBS-URL: https://build.opensuse.org/request/show/1010377 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/dav1d?expand=0&rev=52 --- dav1d.changes | 10 ++++++++++ dav1d.spec | 17 +++++++++-------- 2 files changed, 19 insertions(+), 8 deletions(-) diff --git a/dav1d.changes b/dav1d.changes index b06460a..d24d753 100644 --- a/dav1d.changes +++ b/dav1d.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Thu Oct 13 06:52:06 UTC 2022 - Bjørn Lie + +- Drop _lto_cflags define, current version supports lto build. +- Drop unneeded rpm BuildRequires. +- Add pkgconfig(libxxhash) BuildRequires and stop passing + xhash_muxer=disabled to meson, build hash_muxer support. +- Add check section and meson_test macro, run tests during build. +- Use ldconfig_scriptlets macro for post(un) handling. + ------------------------------------------------------------------- Fri Mar 18 16:02:49 UTC 2022 - Luigi Baldoni diff --git a/dav1d.spec b/dav1d.spec index f56920c..a492434 100644 --- a/dav1d.spec +++ b/dav1d.spec @@ -16,8 +16,8 @@ # -%define _lto_cflags %{nil} %define sover 6 + Name: dav1d Version: 1.0.0 Release: 0 @@ -25,13 +25,13 @@ Summary: An AV1 decoder License: BSD-2-Clause Group: Productivity/Multimedia/Video/Editors and Convertors URL: https://code.videolan.org/videolan/dav1d -Source0: https://code.videolan.org/videolan/dav1d/-/archive/%{version}/dav1d-%{version}.tar.gz +Source0: %{url}/-/archive/%{version}/dav1d-%{version}.tar.gz Source99: baselibs.conf + BuildRequires: meson >= 0.49.0 BuildRequires: nasm >= 2.14 BuildRequires: pkgconfig -# necessary to meson -BuildRequires: rpm >= 4.14 +BuildRequires: pkgconfig(libxxhash) %description dav1d is a SIMD-enhanced decoder for AV1 video. It features @@ -64,15 +64,16 @@ Group: System/Libraries %autosetup -p1 %build -# disabling xxhash until it can be built properly -%meson -Dxxhash_muxer=disabled +%meson %meson_build +%check +%meson_test + %install %meson_install -%post -n lib%{name}%{sover} -p /sbin/ldconfig -%postun -n lib%{name}%{sover} -p /sbin/ldconfig +%ldconfig_scriptlets -n lib%{name}%{sover} %files %{_bindir}/%{name}