forked from pool/python-libarchive-c
Accepting request 980511 from home:darix:branches:devel:languages:python
- Hardcode libarchive13 for now until we make macro based requires work with the python package magic. libarchive13 was the package name since sle12. - we only need the shared library package for libarchive and not the devel package: use %requires_file to get the package of the currently installed via the libarchive.so symlink in libarchive-devel OBS-URL: https://build.opensuse.org/request/show/980511 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-libarchive-c?expand=0&rev=11
This commit is contained in:
@@ -1,3 +1,18 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jun 2 12:48:05 UTC 2022 - Marcus Rueckert <mrueckert@suse.de>
|
||||||
|
|
||||||
|
- Hardcode libarchive13 for now until we make macro based requires
|
||||||
|
work with the python package magic. libarchive13 was the package
|
||||||
|
name since sle12.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jun 2 12:23:32 UTC 2022 - Marcus Rueckert <mrueckert@suse.de>
|
||||||
|
|
||||||
|
- we only need the shared library package for libarchive and not
|
||||||
|
the devel package:
|
||||||
|
use %requires_file to get the package of the currently installed
|
||||||
|
via the libarchive.so symlink in libarchive-devel
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Mar 23 13:50:58 UTC 2022 - pgajdos@suse.com
|
Wed Mar 23 13:50:58 UTC 2022 - pgajdos@suse.com
|
||||||
|
|
||||||
|
|||||||
@@ -16,6 +16,8 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%define requires_file() %( readlink -f '%*' | LC_ALL=C xargs -r rpm -q --qf 'Requires: %%{name} >= %%{epoch}:%%{version}\\n' -f | sed -e 's/ (none):/ /' -e 's/ 0:/ /' | grep -v "is not")
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-libarchive-c
|
Name: python-libarchive-c
|
||||||
Version: 4.0
|
Version: 4.0
|
||||||
@@ -30,7 +32,11 @@ Patch0: python-libarchive-c-no-mock.patch
|
|||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: libarchive-devel
|
%if %{with libarchive_dynamically}
|
||||||
|
%requires_file %{_libdir}/libarchive.so
|
||||||
|
%else
|
||||||
|
Requires: libarchive13
|
||||||
|
%endif
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
|
|||||||
Reference in New Issue
Block a user