rpm/rpm-5.2.1-python-2.7.patch

30 lines
1.2 KiB
Diff
Raw Permalink Normal View History

--- rpm-5.2.1.orig/configure.ac 2013-03-06 14:32:08.278105752 +0100
+++ rpm-5.2.1/configure.ac 2013-03-06 14:40:34.757178027 +0100
@@ -994,14 +994,14 @@
AC_ARG_WITH(python, AS_HELP_STRING([--with-python], [build with RPM Python language bindings]), [
if test ".$withval" != .no; then
case "$withval" in
- 2.x|2.3|2.4|2.5|2.6)
+ 2.x|2.3|2.4|2.5|2.6|2.7)
python_version=$withval
;;
yes)
- python_version="2.6 2.5 2.4 2.3 2.x"
+ python_version="2.7 2.6 2.5 2.4 2.3 2.x"
;;
*)
- AC_MSG_WARN([--with-python only supports values "2.x", "2.3", "2.4", "2.5", or "2.6" ignoring...])
+ AC_MSG_WARN([--with-python only supports values "2.x", "2.3", "2.4", "2.5", "2.6" or "2.7" ignoring...])
python_version=""
;;
esac
@@ -1289,7 +1289,7 @@
dnl # Python embedding
RPM_CHECK_LIB(
[Python embedding], [pythonembed],
- [python2.6 python2.5], [Py_Initialize], [Python.h],
+ [python2.7 python2.6 python2.5], [Py_Initialize], [Python.h],
[no,external:none], [],
[
], [])