[mule] another attempt to hack around java-service-wrapper

Andy Grimm arg at fedoraproject.org
Wed Aug 15 13:52:48 UTC 2012


commit 6078d39dd1309d1a201941781da9cae52ba5591d
Author: Andy Grimm <agrimm at gmail.com>
Date:   Wed Aug 15 09:52:43 2012 -0400

    another attempt to hack around java-service-wrapper

 mule.spec |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/mule.spec b/mule.spec
index 757576a..b1a4609 100644
--- a/mule.spec
+++ b/mule.spec
@@ -421,7 +421,9 @@ This package contains the API documentation for %{name}.
 %patch11 -p1
 
 # Fix java-service-wrapper link to match arch
-sed -i -e "s#lib64/java-service-wrapper#%{_lib}/java-service-wrapper#" modules/management/pom.xml
+if [ \! -d /usr/lib64/java-service-wrapper ]; then
+  sed -i -e "s#lib64/java-service-wrapper#lib/java-service-wrapper#" modules/management/pom.xml
+fi
 
 # Remove requirement for YourKit
 find modules/management/src/main/java/org/mule/module/management -name "YourKitProfiler*" -exec rm {} \;


More information about the scm-commits mailing list