From 8c6dd7bb87b10920e0d31197f45745ad768c9627cb8f0910f0f9313dd88afa3c Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Thu, 13 Jun 2024 08:41:25 +0000 Subject: [PATCH] Accepting request 1180334 from home:mcalabkova:branches:science - Drop the dependency on /usr/bin/python3 symlink * boo#1212476 OBS-URL: https://build.opensuse.org/request/show/1180334 OBS-URL: https://build.opensuse.org/package/show/science/asymptote?expand=0&rev=21 --- asymptote.changes | 6 ++++++ asymptote.spec | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/asymptote.changes b/asymptote.changes index 08a4467..d680d7a 100644 --- a/asymptote.changes +++ b/asymptote.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jun 13 08:26:44 UTC 2024 - Markéta Machová + +- Drop the dependency on /usr/bin/python3 symlink + * boo#1212476 + ------------------------------------------------------------------- Thu Apr 11 16:18:35 UTC 2024 - Jan Engelhardt diff --git a/asymptote.spec b/asymptote.spec index 8126065..e5f4261 100644 --- a/asymptote.spec +++ b/asymptote.spec @@ -41,6 +41,7 @@ BuildRequires: libboost_thread-devel %endif BuildRequires: makeinfo BuildRequires: ncurses-devel +BuildRequires: python-rpm-macros BuildRequires: readline-devel BuildRequires: texinfo BuildRequires: texlive-dvips-bin @@ -83,7 +84,7 @@ if [ ! -e configure ]; then autoreconf -fiv; fi mv "%buildroot/usr/local/share"/* "%buildroot/%_datadir/" chmod a-x "%buildroot/%_datadir/asymptote/shaders"/*.glsl find "%buildroot/%_datadir/asymptote/GUI" -type f -name "*.py" \ - -exec perl -i -lpe 's{^#!/usr/bin/env }{#!/usr/bin/}g' {} + + -exec perl -i -lpe "s{^#!/usr/bin/env python3}{#!/usr/bin/python%python3_bin_suffix}g" {} + %files %_bindir/asy