From 357536ea4bad9fa5a809a473e4b9bdda31b470485bb26486f8631ed34249caa3 Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Sun, 14 Apr 2024 12:47:34 +0000 Subject: [PATCH] Accepting request 1161665 from home:pgajdos - remove dependency on /usr/bin/python3 using %python3_fix_shebang{,_path} macros, [bsc#1212476] OBS-URL: https://build.opensuse.org/request/show/1161665 OBS-URL: https://build.opensuse.org/package/show/vdr/lirc?expand=0&rev=118 --- lirc.changes | 6 ++++++ lirc.spec | 6 +++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/lirc.changes b/lirc.changes index f423977..3a0f28a 100644 --- a/lirc.changes +++ b/lirc.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Mar 26 08:47:23 UTC 2024 - pgajdos@suse.com + +- remove dependency on /usr/bin/python3 using + %python3_fix_shebang{,_path} macros, [bsc#1212476] + ------------------------------------------------------------------- Wed May 3 14:13:16 UTC 2023 - Johannes Segitz diff --git a/lirc.spec b/lirc.spec index 491c1fb..11b08f2 100644 --- a/lirc.spec +++ b/lirc.spec @@ -1,7 +1,7 @@ # # spec file for package lirc # -# 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 @@ -258,6 +258,10 @@ rm -rf contrib/.release-process.txt.swp rm -rf %{buildroot}/%{_datadir}/lirc/lirc-%{version}.tar.gz %{buildroot}/%{_datadir}/lirc/python-pkg %fdupes -s %{buildroot} %fdupes -s . +%python3_fix_shebang +%if %{suse_version} >= 1600 +%python3_fix_shebang_path %{buildroot}%{python3_sitearch}/lirc-setup/* +%endif %post -n liblirc_client0 -p /sbin/ldconfig %post -n liblirc_driver0 -p /sbin/ldconfig