From a8a27f3dfb8b6cdac52d7b812985943d160acef947ad07dfa86723c3015ed932 Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Tue, 12 Jul 2016 14:37:34 +0000 Subject: [PATCH] Accepting request 407900 from home:dimstar:Factory %requires_eq does not do what we need, so we just do the right thing by ourselves: the resulting rpm: rpm -q --requires -p /var/tmp/build-root/openSUSE_Factory-x86_64/home/abuild/rpmbuild/RPMS/x86_64/mpv-0.18.1-0.x86_64.rpm | grep avcod libavcodec.so.56()(64bit) libavcodec.so.56(LIBAVCODEC_56)(64bit) libavcodec56 = 2.8.6 OBS-URL: https://build.opensuse.org/request/show/407900 OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/mpv?expand=0&rev=50 --- mpv.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mpv.spec b/mpv.spec index 02be804..08545d3 100644 --- a/mpv.spec +++ b/mpv.spec @@ -93,7 +93,7 @@ BuildRequires: pkgconfig(xxf86vm) BuildRequires: pkgconfig(zlib) # we need to rebuild with every new minor version of ffmpeg # update soname once it changes -%requires_eq libavcodec56 +Requires: %(rpm -qf $(readlink -f %{_libdir}/libavcodec.so) --qf "%%{name} = %%{version}") # Used via LUA scripts Recommends: youtube-dl # Obsoletion of mplayer2 that is dead for 2 years now