mirror of
https://gitlab.gnome.org/GNOME/libxslt
synced 2025-11-29 04:23:08 +03:00
fixing portability bug #113002 on HP-UX cleanup of --with-python like for
* xsltproc/xsltproc.c: fixing portability bug #113002 on HP-UX * configure.in libxslt.spec.in python/Makefile.am: cleanup of --with-python like for libxml2 Daniel
This commit is contained in:
@@ -61,25 +61,6 @@ rm -fr %{buildroot}
|
||||
|
||||
%makeinstall
|
||||
|
||||
#
|
||||
# this is a bit ugly but tries to generate the bindings for all versions
|
||||
# of python installed
|
||||
#
|
||||
for i in %{prefix}/include/python*
|
||||
do
|
||||
py_version=`echo $i | sed "s+%{prefix}/include/python++"`
|
||||
if test -x %{prefix}/bin/python$py_version
|
||||
then
|
||||
echo generating bindings for Python $py_version
|
||||
(cd python ; make clean ; \
|
||||
make PYTHON="%{prefix}/bin/python$py_version" \
|
||||
PYTHON_VERSION="$py_version"; \
|
||||
%makeinstall PYTHON="%{prefix}/bin/python$py_version" \
|
||||
PYTHON_VERSION="$py_version" \
|
||||
prefix=$RPM_BUILD_ROOT%{prefix})
|
||||
fi
|
||||
done
|
||||
|
||||
%clean
|
||||
rm -fr %{buildroot}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user