[leveldbjni] introduce license macro
gil
gil at fedoraproject.org
Wed Feb 11 04:10:29 UTC 2015
commit f22905fe4684ff70571b2d3a0bc711f2826c765d
Author: gil <puntogil at libero.it>
Date: Wed Feb 11 05:10:12 2015 +0100
introduce license macro
leveldbjni.spec | 14 ++++++++++----
1 files changed, 10 insertions(+), 4 deletions(-)
---
diff --git a/leveldbjni.spec b/leveldbjni.spec
index 3348cb3..3db7398 100644
--- a/leveldbjni.spec
+++ b/leveldbjni.spec
@@ -1,5 +1,11 @@
%global debug_package %{nil}
+%if %{__isa_bits} == 64
+%global bits 64
+%else
+%global bits 32
+%endif
+
Name: leveldbjni
Version: 1.8
Release: 7%{?dist}
@@ -74,7 +80,7 @@ This package contains javadoc for %{name}.
%pom_xpath_remove "pom:project/pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-bundle-plugin']/pom:configuration/pom:instructions/pom:Bundle-NativeCode" %{name}-all
-%if %{__isa_bits} == 64
+%if %{bits} == 64
%pom_remove_dep org.fusesource.%{name}:%{name}-linux32 %{name}-all
%pom_xpath_inject "pom:project/pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-bundle-plugin']/pom:configuration/pom:instructions" "
@@ -97,13 +103,13 @@ cp -f /usr/lib/rpm/config.{sub,guess} leveldbjni/src/main/native-package/autotoo
%build
-%if %{__isa_bits} == 64
+%ifarch ppc64
export MAVEN_OPTS='-Xms1024m -Xmx2048m -XX:MaxPermSize=384m'
%endif
%mvn_file :%{name}-all %{name}-all
-%mvn_file :%{name}-linux%{__isa_bits} %{name}-linux
+%mvn_file :%{name}-linux%{bits} %{name}-linux
export JAVA_HOME=%{_jvmdir}/java LEVELDB_HOME=%{_prefix} SNAPPY_HOME=%{_prefix}
-%mvn_build -- -Plinux%{__isa_bits},all -Dleveldb=%{_prefix} -Dsnappy=%{_prefix}
+%mvn_build -- -Plinux%{bits},all -Dleveldb=%{_prefix} -Dsnappy=%{_prefix}
%install
%mvn_install
More information about the scm-commits
mailing list