14
0

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
This commit is contained in:
2022-03-02 17:08:46 +00:00
committed by Git OBS Bridge
parent 78d922e4c6
commit 47d399be13
3 changed files with 14 additions and 3 deletions

View File

@@ -1,2 +1,2 @@
# this is actually necessary
addFilter("explicit-lib-dependency .*libmpv1")
addFilter("explicit-lib-dependency .*libmpv")

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed Mar 2 15:50:32 UTC 2022 - Dominique Leuenberger <dimstar@opensuse.org>
- 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

View File

@@ -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