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
This commit is contained in:
Dominique Leuenberger 2024-06-12 08:14:14 +00:00 committed by Git OBS Bridge
parent a6c9a3180e
commit 81da1f6ffe
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Jun 10 21:50:54 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
- Add %python3_fix_shebang to fix binaries dependency on
/usr/bin/python3
-------------------------------------------------------------------
Wed Nov 1 20:25:24 UTC 2023 - Jan Engelhardt <jengelh@inai.de>

View File

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