SHA256
1
0
forked from pool/libguestfs

Accepting request 521910 from Virtualization

1

OBS-URL: https://build.opensuse.org/request/show/521910
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libguestfs?expand=0&rev=54
This commit is contained in:
Dominique Leuenberger 2017-09-09 18:25:57 +00:00 committed by Git OBS Bridge
commit 960adfaf96
2 changed files with 16 additions and 2 deletions

View File

@ -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

View File

@ -653,8 +653,16 @@ pushd python
sed -i -e "s:libraries=:library_dirs=['$RPM_BUILD_ROOT/%{_libdir}'], libraries=:" setup.py
make stamp-extra-files
# 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
%endif