[weka] fix build of 3.6.7
Miloš Jakubíček
mjakubicek at fedoraproject.org
Sun Aug 19 11:09:49 UTC 2012
commit 8b9315a3ee7a64d276ce1b6a1bc37cf4d82b2654
Author: Milos Jakubicek <xjakub at fi.muni.cz>
Date: Sun Aug 19 13:09:24 2012 +0200
fix build of 3.6.7
weka.spec | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/weka.spec b/weka.spec
index 04dd42a..dac8340 100644
--- a/weka.spec
+++ b/weka.spec
@@ -60,9 +60,9 @@ unzip %{name}-src.jar
%patch0
# remove prebuilt jars
find -name '*.jar' -delete -o -name '*.class' -delete
-# we won't run JUnit tests and 128m for making javadocs was not enough:(
-sed -i -e 's/name="lib" value="lib"/name="lib" value="src"/' -e 's/maxmemory="128m"/maxmemory="256m"/' build.xml
-
+# we won't run JUnit tests and 128m for making javadocs was not enough:( + fix build failure on missing Mac pieces
+sed -i -e 's/name="lib" value="lib"/name="lib" value="src"/' -e 's/maxmemory="128m"/maxmemory="256m"/' \
+ -e 's#<copy todir="${build}/classes/weka/gui" file="resources/MacArffOpenFilesHandler.class"/>##' build.xml
%build
export CLASSPATH=$(build-classpath java_cup java_cup-runtime jflex)
ant compile
@@ -107,7 +107,7 @@ desktop-file-install \
--dir=${RPM_BUILD_ROOT}%{_datadir}/applications %{SOURCE1}
# convert icon to png
convert %{name}.ico %{name}.png
-install -Dp %{name}.png ${RPM_BUILD_ROOT}%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
+install -Dp %{name}-0.png ${RPM_BUILD_ROOT}%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
%clean
rm -rf $RPM_BUILD_ROOT
More information about the scm-commits
mailing list