From f751d41f2357d5ac514c17dbb7bd0f3f9fe147c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Men=C5=A1=C3=ADk?= Date: Thu, 11 Nov 2021 15:05:10 +0100 Subject: [PATCH] Add quirks needed for python install --enable-python-eggs is required to provide correct version. But otherwise does different thing than is required for python bindings package. Rebuild python after installation of main package, because it changed destination directory used later by install. Related: rhbz#1419441 --- strongswan.spec | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/strongswan.spec b/strongswan.spec index 5eda071..d0fb6ae 100644 --- a/strongswan.spec +++ b/strongswan.spec @@ -219,7 +219,7 @@ for Strongswan runtime configuration from perl applications. --enable-aesni \ %endif %if %{with python3} - --enable-python-eggs \ + PYTHON=%{python3} --enable-python-eggs \ %endif %if %{with perl} --enable-perl-cpan \ @@ -240,8 +240,9 @@ pushd src/libcharon/plugins/vici %if %{with python3} pushd python + %make_build sed -e "s,/var/run/charon.vici,%{_rundir}/strongswan/charon.vici," -i vici/session.py - %py3_build + #py3_build popd %endif @@ -261,6 +262,9 @@ popd pushd src/libcharon/plugins/vici %if %{with python3} pushd python + # TODO: --enable-python-eggs breaks our previous build. Do it now + # propose better way to upstream + %py3_build %py3_install popd %endif