From 47d399be13a49e43bd04de2e1237af902af7408588fe76517f9b0a11127327a3 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 2 Mar 2022 17:08:46 +0000 Subject: [PATCH] Accepting request 958482 from home:dimstar:Factory - Dynamically add a dependency to the libmpv version that was present during build. Allows to dynamically move between various so versions (e.g. libmpv1 to libmpv2). OBS-URL: https://build.opensuse.org/request/show/958482 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-mpv?expand=0&rev=29 --- python-python-mpv-rpmlintrc | 2 +- python-python-mpv.changes | 7 +++++++ python-python-mpv.spec | 8 ++++++-- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/python-python-mpv-rpmlintrc b/python-python-mpv-rpmlintrc index 575dff4..66f91e4 100644 --- a/python-python-mpv-rpmlintrc +++ b/python-python-mpv-rpmlintrc @@ -1,2 +1,2 @@ # this is actually necessary -addFilter("explicit-lib-dependency .*libmpv1") +addFilter("explicit-lib-dependency .*libmpv") diff --git a/python-python-mpv.changes b/python-python-mpv.changes index c506ad0..a516f99 100644 --- a/python-python-mpv.changes +++ b/python-python-mpv.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed Mar 2 15:50:32 UTC 2022 - Dominique Leuenberger + +- Dynamically add a dependency to the libmpv version that was + present during build. Allows to dynamically move between various + so versions (e.g. libmpv1 to libmpv2). + ------------------------------------------------------------------- Sun Jul 26 06:26:13 UTC 2020 - aloisio@gmx.com diff --git a/python-python-mpv.spec b/python-python-mpv.spec index d35b2db..f83c22d 100644 --- a/python-python-mpv.spec +++ b/python-python-mpv.spec @@ -1,7 +1,7 @@ # # spec file for package python-python-mpv # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -26,7 +26,11 @@ Source0: https://files.pythonhosted.org/packages/source/p/python-mpv/pyth Source99: %{name}-rpmlintrc BuildRequires: %{python_module setuptools} BuildRequires: python-rpm-macros -Requires: libmpv1 +# Needed to be able to set the proper dependency to the library +BuildRequires: mpv-devel +# workaround via define needed as python_ubpackages wants to interpret Requires: lines +%define libmpv %(rpm -qf $(readlink -f %{_libdir}/libmpv.so) --qf "%%{name}") +Requires: %libmpv BuildArch: noarch %python_subpackages