[PATCH 1 of 2 rhel5] rpms: for packages with their own python, put it in /opt/python-hg

Mads Kiilerich mads at kiilerich.com
Wed Apr 15 03:51:47 UTC 2015


# HG changeset patch
# User Mads Kiilerich <madski at unity3d.com>
# Date 1429069443 14400
#      Tue Apr 14 23:44:03 2015 -0400
# Node ID 3a8c21bb8069ebb217a3e324d68b6a4a56eeb978
# Parent  52ff737c63d2b2cb41185549aa9c35bc47317032
rpms: for packages with their own python, put it in /opt/python-hg

This is more compliant with the FHS and Fedora packaging guidelines.

diff --git a/contrib/mercurial.spec b/contrib/mercurial.spec
--- a/contrib/mercurial.spec
+++ b/contrib/mercurial.spec
@@ -9,7 +9,7 @@
 %global docutilsname docutils-0.12
 %global docutilsmd5 4622263b62c5c771c03502afa3157768
 %global pythonhg python-hg
-%global hgpyprefix /usr/%{pythonhg}
+%global hgpyprefix /opt/%{pythonhg}
 # byte compilation will fail on some some Python /test/ files
 %global _python_bytecompile_errors_terminate_build 0
 


More information about the Mercurial-devel mailing list