From 81da1f6ffe50aed16fea87d006a44200239b467e12ef54d16865061f2a9eaaa3 Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Wed, 12 Jun 2024 08:14:14 +0000 Subject: [PATCH] Accepting request 1179865 from home:mcepl:branches:devel:libraries:c_c++ - Add %python3_fix_shebang to fix binaries dependency on /usr/bin/python3 OBS-URL: https://build.opensuse.org/request/show/1179865 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libbytesize?expand=0&rev=25 --- libbytesize.changes | 6 ++++++ libbytesize.spec | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/libbytesize.changes b/libbytesize.changes index d581ac7..edf23fc 100644 --- a/libbytesize.changes +++ b/libbytesize.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Jun 10 21:50:54 UTC 2024 - Matej Cepl + +- Add %python3_fix_shebang to fix binaries dependency on + /usr/bin/python3 + ------------------------------------------------------------------- Wed Nov 1 20:25:24 UTC 2023 - Jan Engelhardt diff --git a/libbytesize.spec b/libbytesize.spec index 8e90531..8402b47 100644 --- a/libbytesize.spec +++ b/libbytesize.spec @@ -1,7 +1,7 @@ # # spec file for package libbytesize # -# 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 @@ -33,6 +33,7 @@ BuildRequires: gmp-devel BuildRequires: gtk-doc BuildRequires: mpfr-devel BuildRequires: pkgconfig +BuildRequires: python-rpm-macros BuildRequires: python3-devel BuildRequires: pkgconfig(libpcre2-8) @@ -98,6 +99,7 @@ install -m 644 -t . %{SOURCE1} %make_install find %{buildroot} -type f -name "*.la" -delete -print %find_lang %{name} %{?no_lang_C} +%python3_fix_shebang %post -n libbytesize%{soversion} -p /sbin/ldconfig %postun -n libbytesize%{soversion} -p /sbin/ldconfig