[arduino/f19] Add arduino-build-platform.patch to allow building on ARM (rhbz 991988).

mavit mavit at fedoraproject.org
Mon Dec 30 00:10:28 UTC 2013


commit cad4645fe6371a487b5bd31711e4476e4d8ddafb
Author: Peter Oliver <git at mavit.org.uk>
Date:   Sun Dec 29 23:59:55 2013 +0000

    Add arduino-build-platform.patch to allow building on ARM (rhbz 991988).

 arduino-build-platform.patch |   11 +++++++++++
 arduino.spec                 |    9 ++++++++-
 2 files changed, 19 insertions(+), 1 deletions(-)
---
diff --git a/arduino-build-platform.patch b/arduino-build-platform.patch
new file mode 100644
index 0000000..6cb6b59
--- /dev/null
+++ b/arduino-build-platform.patch
@@ -0,0 +1,11 @@
+--- build/build.xml~	2013-08-05 15:28:39.000000000 +0100
++++ build/build.xml	2013-08-05 16:01:32.000000000 +0100
+@@ -18,7 +18,7 @@
+   <condition property="platform" 
+ 	     value="linux32"><os family="unix" arch="i386" /></condition>
+   <condition property="platform" 
+-	     value="linux64"><os family="unix" arch="amd64" /></condition>
++	     value="linux64"><os family="unix" /></condition>
+ 
+   <!-- Libraries required for running arduino -->
+   <fileset dir=".." id="runtime.jars">
diff --git a/arduino.spec b/arduino.spec
index 8c5b3e1..de01275 100644
--- a/arduino.spec
+++ b/arduino.spec
@@ -1,7 +1,7 @@
 Name:		arduino
 Epoch:		1
 Version:	1.0.5
-Release:	1%{?dist}
+Release:	3%{?dist}
 Summary:	An IDE for Arduino-compatible electronics prototyping platforms
 Group:		Development/Tools
 License:	GPLv2+ and LGPLv2+ and CC-BY-SA
@@ -26,6 +26,9 @@ Patch4:		arduino-icons-etc.patch
 
 Patch6:		arduino-add-to-groups.patch
 
+# Required for Koji's ARM build hosts:
+Patch8:		arduino-build-platform.patch
+
 BuildRequires:	java-devel >= 1:1.6.0 jpackage-utils ant ant-apache-regexp desktop-file-utils ecj jna rxtx git
 Requires:	%{name}-core = %{epoch}:%{version}-%{release}, %{name}-doc = %{epoch}:%{version}-%{release}
 Requires:	java >= 1:1.6.0 xorg-x11-fonts-Type1 ecj jna rxtx
@@ -82,6 +85,7 @@ chmod a+rx build/linux/%{name}-add-groups
 %patch0
 %patch3 -p1
 %patch7 -p1
+%patch8 -p0
 
 echo -e "\n# By default, don't notify the user of a new upstream version." \
         "\n# https://bugzilla.redhat.com/show_bug.cgi?id=773519" \
@@ -196,6 +200,9 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Mon Dec 30 2013 Peter Oliver <rpm at mavit.org.uk> - 1:1.0.5-6
+- Add arduino-build-platform.patch to allow building on ARM (rhbz 991988).
+
 * Thu May 23 2013 Peter Oliver <rpm at mavit.org.uk> - 1:1.0.5-1
 - Update to 1.0.5.
 - Remove bug891556.patch.


More information about the scm-commits mailing list