[libsvm/el6: 3/5] Fix RHEL6 build

Ding-Yi Chen dchen at fedoraproject.org
Tue Jan 20 07:20:46 UTC 2015


commit 836f0d3042ea44a88eb9a766b1923a92b60bafd9
Author: Ding-Yi Chen <dingyichen at gmail.com>
Date:   Tue Jan 20 17:06:56 2015 +1000

    Fix RHEL6 build

 libsvm.spec |   18 ++++++++++--------
 1 files changed, 10 insertions(+), 8 deletions(-)
---
diff --git a/libsvm.spec b/libsvm.spec
index 54c67fd..0407039 100644
--- a/libsvm.spec
+++ b/libsvm.spec
@@ -37,11 +37,11 @@ BuildRequires:  grep
 %define moc_path %{_bindir}/moc-qt4
 %endif
 
-# RHEL6 does not have add_maven_depmap
-%if 0%{?rhel} != 0 && 0%{?rhel} <=6
-%define no_add_maven_depmap TRUE
+# RHEL6 does not have enable_add_maven_depmap
+%if 0%{?rhel} != 0 && 0%{?rhel} <= 6
+%define enable_add_maven_depmap FALSE
 %else
-%define no_add_maven_depmap FALSE
+%define enable_add_maven_depmap TRUE
 %endif
 
 
@@ -54,7 +54,7 @@ BuildRequires:  grep
 %endif
 %else
 %define no_java NO_JAVA
-%define no_add_maven_depmap no_add_maven_depmap
+%define enable_add_maven_depmap FALSE
 Obsoletes: libsvm-java < 2.88-1
 %endif
 
@@ -214,13 +214,15 @@ ln -s %{_javadir}/%{maven_group_id}/%{name}.jar %{buildroot}/%{_javadir}/%{name}
 ## Install the Java POM
 mkdir -p %{buildroot}%{_mavenpomdir}
 cp -p %{name}.pom %{buildroot}%{_mavenpomdir}/%{pom_file_name}
-%endif
 
-# RHEL6 does not support add_maven_depmap
-%if "%{no_add_maven_depmap}" == "FALSE"
+# RHEL6 does not support enable_add_maven_depmap
+%if "%{enable_add_maven_depmap}" == "TRUE"
 %add_maven_depmap %{pom_file_name} %{maven_group_id}/%{name}.jar
 %endif
 
+%endif
+
+
 
 %post -p /sbin/ldconfig
 


More information about the scm-commits mailing list