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