Patchwork [1,of,2,DROP-PYTHON-2.4] rpm.spec: bump python dependency to 2.6

login
register
mail settings
Submitter Pierre-Yves David
Date May 9, 2015, 6:54 a.m.
Message ID <16b07284fef670b26815.1431154494@marginatus.alto.octopoid.net>
Download mbox | patch
Permalink /patch/8993/
State Accepted
Delegated to: Matt Mackall
Headers show

Comments

Pierre-Yves David - May 9, 2015, 6:54 a.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@fb.com>
# Date 1431152913 25200
#      Fri May 08 23:28:33 2015 -0700
# Node ID 16b07284fef670b26815b6533b742b21f40fedb1
# Parent  17ba4ccd20b48511b3d06ab47fb1b2faf31410d7
rpm.spec: bump python dependency to 2.6

We are about to drop 2.4 requirement in Mercurial's setup.py, we bump rpm
dependency first for the sake of smaller changeset. Clean up of the spec file
can come after the dependency is actually dropped.

Patch

diff --git a/contrib/mercurial.spec b/contrib/mercurial.spec
--- a/contrib/mercurial.spec
+++ b/contrib/mercurial.spec
@@ -35,12 +35,12 @@  BuildRoot: %{_tmppath}/%{name}-%{version
 
 BuildRequires: make, gcc, gettext
 %if "%{?withpython}"
 BuildRequires: readline-devel, openssl-devel, ncurses-devel, zlib-devel, bzip2-devel
 %else
-BuildRequires: python >= 2.4, python-devel, python-docutils >= 0.5
-Requires: python >= 2.4
+BuildRequires: python >= 2.6, python-devel, python-docutils >= 0.5
+Requires: python >= 2.6
 %endif
 # The hgk extension uses the wish tcl interpreter, but we don't enforce it
 #Requires: tk
 
 %description