[jpathwatch] fix build on non-x86 arches

Dan Horák sharkcz at fedoraproject.org
Wed Jul 20 11:06:33 UTC 2011


commit 3f06210171d7a1dba5c9702d5b8c05c7786d2474
Author: Dan Horák <dan at danny.cz>
Date:   Wed Jul 20 13:06:21 2011 +0200

    fix build on non-x86 arches

 jpathwatch.spec |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/jpathwatch.spec b/jpathwatch.spec
index 9600077..4146a26 100644
--- a/jpathwatch.spec
+++ b/jpathwatch.spec
@@ -3,7 +3,7 @@
 
 Name:             jpathwatch
 Version:          0.94
-Release:          2%{?dist}
+Release:          3%{?dist}
 Summary:          Java library for monitoring directories for changes
 License:          GPLv2
 Group:            Development/Libraries
@@ -15,8 +15,6 @@ Source0:          %{name}-%{version}.tar.gz
 
 Patch0:           %{name}-fsf-address.patch
 
-ExclusiveArch:    x86_64 %{ix86}
-
 BuildRequires:    java-devel
 BuildRequires:    jpackage-utils
 BuildRequires:    ant
@@ -59,10 +57,10 @@ This package contains the API documentation for %{name}.
 
 # native part
 cd %{name}-native/prj/linux/%{name}-native-linux
-%ifarch x86_64
-  make DEFAULTCONF=Release_x86-64bit %{?_smp_mflags}
+%ifarch x86_64 s390x sparc64 ppc64
+  make DEFAULTCONF=Release_x86-64bit %{?_smp_mflags} CXXFLAGS="%{optflags}"
 %else
-  make DEFAULTCONF=Release_x86-32bit %{?_smp_mflags}
+  make DEFAULTCONF=Release_x86-32bit %{?_smp_mflags} CXXFLAGS="%{optflags}"
 %endif
 
 # java part
@@ -91,6 +89,9 @@ cp -pr doc/* %{buildroot}%{_javadocdir}/%{name}
 %doc %{_javadocdir}/%{name}
 
 %changelog
+* Wed Jul 20 2011 Dan Horák <dan[at]danny.cz> - 0.94-3
+- fix build on non-x86 arches
+
 * Thu Jul 07 2011 Jaromir Capik <jcapik at redhat.com> - 0.94-2
 - Architecture dependent jar file moved to %{_jnidir}
 


More information about the scm-commits mailing list