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

login
register
mail settings
Submitter Mads Kiilerich
Date April 15, 2015, 3:51 a.m.
Message ID <3a8c21bb8069ebb217a3.1429069907@localhost.localdomain>
Download mbox | patch
Permalink /patch/8673/
State Accepted
Delegated to: Pierre-Yves David
Headers show

Comments

Mads Kiilerich - April 15, 2015, 3:51 a.m.
# HG changeset patch
# User Mads Kiilerich <madski@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.

Patch

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