From 3e4c75645fb3c73aec19e4c45952ef1159bfe73df258ad9bc04a3facd58f0c6c Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 25 Mar 2024 15:33:53 +0000 Subject: [PATCH] Accepting request 1160681 from home:pgajdos - remove dependency on /usr/bin/python3 using %python3_fix_shebang_path macro, [bsc#1212476] OBS-URL: https://build.opensuse.org/request/show/1160681 OBS-URL: https://build.opensuse.org/package/show/Base:System/lvm2?expand=0&rev=334 --- lvm2.changes | 6 ++++++ lvm2.spec | 10 +++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/lvm2.changes b/lvm2.changes index b7dea48..d904955 100644 --- a/lvm2.changes +++ b/lvm2.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Mar 22 12:54:54 UTC 2024 - pgajdos@suse.com + +- remove dependency on /usr/bin/python3 using + %python3_fix_shebang_path macro, [bsc#1212476] + ------------------------------------------------------------------- Mon Sep 18 02:06:09 UTC 2023 - Glass Su diff --git a/lvm2.spec b/lvm2.spec index 950fc6e..3bc9e9d 100644 --- a/lvm2.spec +++ b/lvm2.spec @@ -1,7 +1,7 @@ # -# spec file +# spec file for package lvm2 # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -116,13 +116,14 @@ Patch4001: bug-1037309_Makefile-skip-compliling-daemons-lvmlockd-directory. BuildRequires: kmod-compat BuildRequires: libaio-devel BuildRequires: pkgconfig +BuildRequires: python-rpm-macros BuildRequires: thin-provisioning-tools >= %{thin_provisioning_version} BuildRequires: pkgconfig(libsystemd) BuildRequires: pkgconfig(libudev) Requires: device-mapper >= %{device_mapper_version} Requires: modutils Requires(post): coreutils -Requires(postun):coreutils +Requires(postun): coreutils Provides: lvm = %{version} Obsoletes: lvm2-cmirrord <= %{lvm2_cmirrord_version} %{?systemd_requires} @@ -328,6 +329,9 @@ sed -ie "s/%{upstream_device_mapper_version}/1.03.01/g" VERSION_DM install -m 644 %{SOURCE1} "%{buildroot}/%{_sysconfdir}/lvm/" # Install testsuite make -C test install DESTDIR=%{buildroot} + %if %{suse_version} >= 1600 + %python3_fix_shebang_path %{buildroot}%{_datadir}/lvm2-testsuite/dbus/* + %endif pushd "%{buildroot}/%{_libdir}" ln -sf liblvm2cmd.so.2.03 liblvm2cmd.so