diff --git a/ttf-converter.changes b/ttf-converter.changes index 1ca1548..b7e507c 100644 --- a/ttf-converter.changes +++ b/ttf-converter.changes @@ -1,3 +1,20 @@ +------------------------------------------------------------------- +Fri Feb 2 06:34:59 UTC 2024 - Antonio Larrosa + +- Fix for SLE 15 where %primary_python is not defined. + +------------------------------------------------------------------- +Thu Feb 1 13:23:03 UTC 2024 - Antonio Larrosa + +- Reduce the BuildRequires from python3 to just python-rpm-macros + and Require: %{primary_python}-base instead of python3-base + which might be off for a short time when %primary_python changes. + +------------------------------------------------------------------- +Thu Feb 1 12:46:52 UTC 2024 - Antonio Larrosa + +- Use %python3_fix_shebang + ------------------------------------------------------------------- Thu Sep 28 11:16:39 UTC 2023 - Jan Engelhardt diff --git a/ttf-converter.spec b/ttf-converter.spec index ec6fc56..29ae6ac 100644 --- a/ttf-converter.spec +++ b/ttf-converter.spec @@ -1,7 +1,7 @@ # # spec file for package ttf-converter # -# 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 @@ -16,6 +16,9 @@ # +%if 0%{suse_version} < 1550 +%define primary_python python3 +%endif Name: ttf-converter Version: 1.0.7 Release: 0 @@ -23,10 +26,10 @@ Summary: Python script that converts fonts to TrueType format License: GPL-3.0-only URL: https://github.com/antlarr-suse/ttf-converter Source: ttf-converter-%{version}.tar.xz -BuildRequires: python3 +BuildRequires: python-rpm-macros +Requires: %{primary_python}-base Requires: fontforge Requires: ftdump -Requires: python3-base BuildArch: noarch %description @@ -50,7 +53,8 @@ instead. %install mkdir -p %{buildroot}%{_bindir} -cp ttf-converter %{buildroot}%{_bindir} +install ttf-converter %{buildroot}%{_bindir} +%python3_fix_shebang %files %license LICENSE