Ana Guerrero 2023-10-08 10:15:55 +00:00 committed by Git OBS Bridge
commit 831075f30f
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Oct 5 12:35:57 UTC 2023 - Daniel Garcia <daniel.garcia@suse.com>
- Remove dependency on /usr/bin/python3, making scripts to depends on
the real python3 binary, not the link. bsc#1212476
-------------------------------------------------------------------
Wed Sep 27 10:54:17 UTC 2023 - Pedro Monreal <pmonreal@suse.com>

View File

@ -72,6 +72,7 @@ BuildRequires: libxslt
BuildRequires: mozilla-nss-tools
BuildRequires: openssl
BuildRequires: perl
BuildRequires: python-rpm-macros
BuildRequires: python3-coverage
BuildRequires: python3-devel >= 3.6
BuildRequires: python3-flake8
@ -176,6 +177,12 @@ for f in %{buildroot}%{_datarootdir}/crypto-policies/DEFAULT/* ; do
ln -sf %{_datarootdir}/crypto-policies/DEFAULT/$(basename $f) %{buildroot}%{_sysconfdir}/crypto-policies/back-ends/$(basename $f .txt).config
done
# Fix shebang in scripts
for f in %{buildroot}%{_datadir}/crypto-policies/python/*
do
[ -f $f ] && sed -i "1s@#!.*python.*@#!$(realpath %__python3)@" $f
done
%py3_compile %{buildroot}%{_datadir}/crypto-policies/python
# Install README.SUSE to %%doc