changeset 8867:ff817723280a

contrib/buildrpm: Support python 2.4 and 2.6
author Mads Kiilerich <mads@kiilerich.com>
date Sat, 20 Jun 2009 16:06:54 +0200
parents 87c30fb7e8df
children 8c97115547cc
files contrib/buildrpm contrib/mercurial.spec
diffstat 2 files changed, 8 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/buildrpm	Sat Jun 20 20:57:13 2009 +0200
+++ b/contrib/buildrpm	Sat Jun 20 16:06:54 2009 +0200
@@ -1,11 +1,13 @@
 #!/bin/sh
 #
 # Build a Mercurial RPM in place.
-# Known to work on:
-# - Fedora 9
-# - Fedora 10
 #
 # Bryan O'Sullivan <bos@serpentine.com>
+#
+# Tested on
+# - Fedora 10
+# - Fedora 11
+# - Centos 5.3 (with Fedora EPEL repo for asciidoc)
 
 if hg --version > /dev/null 2>&1; then :
 else
--- a/contrib/mercurial.spec	Sat Jun 20 20:57:13 2009 +0200
+++ b/contrib/mercurial.spec	Sat Jun 20 16:06:54 2009 +0200
@@ -71,6 +71,8 @@
 %{_bindir}/hg-viz
 %{_bindir}/git-rev-tree
 %{_bindir}/mercurial-convert-repo
-%{_libdir}/python%{pythonver}/site-packages/%{name}-*-py2.5.egg-info
+%if "%{?pythonver}" != "2.4"
+%{_libdir}/python%{pythonver}/site-packages/%{name}-*-py%{pythonver}.egg-info
+%endif
 %{pythonlib}
 %{hgext}