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
This commit is contained in:
@@ -219,7 +219,7 @@ for Strongswan runtime configuration from perl applications.
|
|||||||
--enable-aesni \
|
--enable-aesni \
|
||||||
%endif
|
%endif
|
||||||
%if %{with python3}
|
%if %{with python3}
|
||||||
--enable-python-eggs \
|
PYTHON=%{python3} --enable-python-eggs \
|
||||||
%endif
|
%endif
|
||||||
%if %{with perl}
|
%if %{with perl}
|
||||||
--enable-perl-cpan \
|
--enable-perl-cpan \
|
||||||
@@ -240,8 +240,9 @@ pushd src/libcharon/plugins/vici
|
|||||||
|
|
||||||
%if %{with python3}
|
%if %{with python3}
|
||||||
pushd python
|
pushd python
|
||||||
|
%make_build
|
||||||
sed -e "s,/var/run/charon.vici,%{_rundir}/strongswan/charon.vici," -i vici/session.py
|
sed -e "s,/var/run/charon.vici,%{_rundir}/strongswan/charon.vici," -i vici/session.py
|
||||||
%py3_build
|
#py3_build
|
||||||
popd
|
popd
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@@ -261,6 +262,9 @@ popd
|
|||||||
pushd src/libcharon/plugins/vici
|
pushd src/libcharon/plugins/vici
|
||||||
%if %{with python3}
|
%if %{with python3}
|
||||||
pushd python
|
pushd python
|
||||||
|
# TODO: --enable-python-eggs breaks our previous build. Do it now
|
||||||
|
# propose better way to upstream
|
||||||
|
%py3_build
|
||||||
%py3_install
|
%py3_install
|
||||||
popd
|
popd
|
||||||
%endif
|
%endif
|
||||||
|
|||||||
Reference in New Issue
Block a user