1
0

Accepting request 1115821 from home:dgarcia:branches:security:tls

- Remove dependency on /usr/bin/python3, making scripts to depends on
  the real python3 binary, not the link. bsc#1212476

OBS-URL: https://build.opensuse.org/request/show/1115821
OBS-URL: https://build.opensuse.org/package/show/security:tls/crypto-policies?expand=0&rev=25
This commit is contained in:
Pedro Monreal Gonzalez 2023-10-06 10:59:08 +00:00 committed by Git OBS Bridge
parent b59bbd02a8
commit cfa2543a59
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