]> git.pld-linux.org Git - packages/rpm.git/commitdiff
Make %{__python} expand to /usr/bin/python2 auto/th/rpm-5.4.15-28
authorJacek Konieczny <jajcus@jajcus.net>
Sat, 28 Nov 2015 12:46:47 +0000 (13:46 +0100)
committerJacek Konieczny <jajcus@jajcus.net>
Sat, 28 Nov 2015 13:06:56 +0000 (14:06 +0100)
This will make switching the to Python 3 in future (if we decide to)
much easier.

Release: 28

python2_explicit.patch [new file with mode: 0644]
rpm.spec

diff --git a/python2_explicit.patch b/python2_explicit.patch
new file mode 100644 (file)
index 0000000..acc6e2e
--- /dev/null
@@ -0,0 +1,11 @@
+--- rpm-5.4.15/configure.ac~   2015-11-28 13:11:46.816903917 +0100
++++ rpm-5.4.15/configure.ac    2015-11-28 13:14:39.887776863 +0100
+@@ -604,7 +604,7 @@
+ AC_PATH_PROG(__PERL, perl, %{_bindir}/perl, $MYPATH)
+ AC_PATH_PROG(__PGP, pgp, %{_bindir}/pgp, $MYPATH)
+ AC_PATH_PROG(__PHP, php, %{_bindir}/php, $MYPATH)
+-AC_PATH_PROG(__PYTHON, python, %{_bindir}/python, $MYPATH)
++AC_PATH_PROG(__PYTHON, python2, %{_bindir}/python2, $MYPATH)
+ AC_PATH_PROG(__RM, rm, /bin/rm, $MYPATH)
+ AC_PATH_PROG(__RMDIR, rmdir, /bin/rmdir, $MYPATH)
+ AC_PATH_PROG(__RSH, rsh, %{_bindir}/rsh, $MYPATH)
index 6944aa37190d2cb3a4d46145f885a388837924eb..bb744a2ed69d65efde688393af1e3471b322b858 100644 (file)
--- a/rpm.spec
+++ b/rpm.spec
@@ -51,7 +51,7 @@ Summary(ru.UTF-8):    Менеджер пакетов от RPM
 Summary(uk.UTF-8):     Менеджер пакетів від RPM
 Name:          rpm
 Version:       5.4.15
-Release:       27
+Release:       28
 License:       LGPL v2.1
 Group:         Base
 # http://rpm5.org/files/rpm/rpm-5.4/rpm-5.4.15-0.20140824.src.rpm
@@ -179,6 +179,7 @@ Patch89:    disable-header-verification.patch
 Patch90:       %{name}-cppcompat.patch
 Patch91:       py-disable-fetch.patch
 Patch92:       fast_python_deps.patch
+Patch93:       python2_explicit.patch
 
 # Patches imported from Mandriva
 
@@ -1016,6 +1017,7 @@ cd -
 
 %patch83 -p1
 %patch92 -p1
+%patch93 -p1
 
 %patch1050 -p1
 
This page took 0.116263 seconds and 4 git commands to generate.