Accepting request 521908 from home:cbosdonnat:branches:Virtualization
- Tweak configuration before building for python3 or PyString_* symbols will still be missing OBS-URL: https://build.opensuse.org/request/show/521908 OBS-URL: https://build.opensuse.org/package/show/Virtualization/libguestfs?expand=0&rev=403
This commit is contained in:
parent
e7da7e37ad
commit
f90b15aef3
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Sep 4 19:15:25 UTC 2017 - cbosdonnat@suse.com
|
||||||
|
|
||||||
|
- Tweak configuration before building for python3 or PyString_*
|
||||||
|
symbols will still be missing
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Aug 31 15:25:06 UTC 2017 - cbosdonnat@suse.com
|
Thu Aug 31 15:25:06 UTC 2017 - cbosdonnat@suse.com
|
||||||
|
|
||||||
|
@ -653,8 +653,16 @@ pushd python
|
|||||||
sed -i -e "s:libraries=:library_dirs=['$RPM_BUILD_ROOT/%{_libdir}'], libraries=:" setup.py
|
sed -i -e "s:libraries=:library_dirs=['$RPM_BUILD_ROOT/%{_libdir}'], libraries=:" setup.py
|
||||||
make stamp-extra-files
|
make stamp-extra-files
|
||||||
# Build needs libguestfs library to be installed
|
# Build needs libguestfs library to be installed
|
||||||
%python_build
|
|
||||||
%python_install
|
# HACKY! Change config.h for python2
|
||||||
|
echo '#define HAVE_PYSTRING_ASSTRING 1' >> config.h
|
||||||
|
%python2_build
|
||||||
|
%python2_install
|
||||||
|
|
||||||
|
# HACKY! Change config.h for python3
|
||||||
|
sed 's/\(#define HAVE_PYSTRING_ASSTRING 1\)/\/* \1 *\//' -i config.h
|
||||||
|
%python3_build
|
||||||
|
%python3_install
|
||||||
popd
|
popd
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user