Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-libarchive-c for
openSUSE:Factory checked in at 2022-06-04 23:26:54
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-libarchive-c (Old)
and /work/SRC/openSUSE:Factory/.python-libarchive-c.new.1548 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-libarchive-c"
Sat Jun 4 23:26:54 2022 rev:6 rq:980641 version:4.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-libarchive-c/python-libarchive-c.changes
2022-03-24 22:57:58.728249280 +0100
+++
/work/SRC/openSUSE:Factory/.python-libarchive-c.new.1548/python-libarchive-c.changes
2022-06-04 23:26:57.884751500 +0200
@@ -1,0 +2,15 @@
+Thu Jun 2 12:48:05 UTC 2022 - Marcus Rueckert <[email protected]>
+
+- 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 <[email protected]>
+
+- 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
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-libarchive-c.spec ++++++
--- /var/tmp/diff_new_pack.vdhMUy/_old 2022-06-04 23:26:58.320751940 +0200
+++ /var/tmp/diff_new_pack.vdhMUy/_new 2022-06-04 23:26:58.324751944 +0200
@@ -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-%{**}}
Name: python-libarchive-c
Version: 4.0
@@ -30,7 +32,11 @@
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
-Requires: libarchive-devel
+%if %{with libarchive_dynamically}
+%requires_file %{_libdir}/libarchive.so
+%else
+Requires: libarchive13
+%endif
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module pytest}