From d7831d7554bb1507662de834a5bbd254fa8d8345 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Sat, 7 Jun 2014 23:22:54 -0500 Subject: [PATCH 01/20] - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild --- weka.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/weka.spec b/weka.spec index 1c7405d..72c85ec 100644 --- a/weka.spec +++ b/weka.spec @@ -7,7 +7,7 @@ Name: weka Version: 3.6.8 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Waikato Environment for Knowledge Analysis Group: Applications/Engineering @@ -143,6 +143,9 @@ fi %{_javadocdir}/%{name} %changelog +* Sun Jun 08 2014 Fedora Release Engineering - 3.6.8-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + * Sun Aug 04 2013 Fedora Release Engineering - 3.6.8-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild From c49869200972615d9ee1f06201e14d6d6f5d2cf8 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Fri, 19 Jun 2015 02:20:35 +0000 Subject: [PATCH 02/20] - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild --- weka.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/weka.spec b/weka.spec index 72c85ec..a78a445 100644 --- a/weka.spec +++ b/weka.spec @@ -7,7 +7,7 @@ Name: weka Version: 3.6.8 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Waikato Environment for Knowledge Analysis Group: Applications/Engineering @@ -143,6 +143,9 @@ fi %{_javadocdir}/%{name} %changelog +* Fri Jun 19 2015 Fedora Release Engineering - 3.6.8-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + * Sun Jun 08 2014 Fedora Release Engineering - 3.6.8-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild From ce7c102b9bb423295e38ef8df4aa823bc1177759 Mon Sep 17 00:00:00 2001 From: gil Date: Mon, 12 Oct 2015 21:04:24 +0200 Subject: [PATCH 03/20] switch to maven --- weka.spec | 177 ++++++++++++++++++++++++++++-------------------------- 1 file changed, 92 insertions(+), 85 deletions(-) diff --git a/weka.spec b/weka.spec index a78a445..9ec02f4 100644 --- a/weka.spec +++ b/weka.spec @@ -1,116 +1,124 @@ -%global _version 3-6-8 +%global _version %(echo %version | tr . -) # whether to run jUnit tests, caution: takes horribly long # currently disabled as the tests fail, filed in upstream's bugtracker: # https://sourceforge.net/tracker2/?func=detail&aid=2648813&group_id=5091&atid=105091 # %%global _with_tests 1 +%bcond_with _tests -Name: weka -Version: 3.6.8 -Release: 5%{?dist} -Summary: Waikato Environment for Knowledge Analysis +Name: weka +Version: 3.6.8 +Release: 6%{?dist} +Summary: Waikato Environment for Knowledge Analysis +License: GPLv2+ +URL: http://www.cs.waikato.ac.nz/ml/%{name}/ +Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{_version}.zip +Source1: weka.desktop -Group: Applications/Engineering -License: GPLv2+ -URL: http://www.cs.waikato.ac.nz/ml/%{name}/ -Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{_version}.zip -Source1: weka.desktop -Patch0: weka-3.6.2-build.xml.patch -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -BuildArch: noarch +BuildArch: noarch -BuildRequires: java-devel >= 1:1.6.0 -BuildRequires: jpackage-utils -BuildRequires: ant -BuildRequires: desktop-file-utils -BuildRequires: ImageMagick -BuildRequires: junit -BuildRequires: jflex -BuildRequires: java_cup >= 1:0.11a +BuildRequires: desktop-file-utils +BuildRequires: ImageMagick +BuildRequires: maven-local +BuildRequires: mvn(java_cup:java_cup) +BuildRequires: mvn(junit:junit) +BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:) -Requires: java >= 1:1.6.0 -Requires: jpackage-utils -Requires: libsvm-java -Requires: java_cup -Requires: hsqldb -Requires: postgresql-jdbc -Requires: mysql-connector-java -Requires: javasqlite +# Other dependencies used at runtime +Requires: java >= 1:1.6.0 +Requires: libsvm-java +Requires: hsqldb +Requires: postgresql-jdbc +Requires: mysql-connector-java +Requires: javasqlite %description Weka is a collection of machine learning algorithms for data mining tasks. -The algorithms can either be applied directly to a dataset or called from +The algorithms can either be applied directly to a data-set or called from your own Java code. Weka contains tools for data pre-processing, classification, regression, clustering, association rules, and visualization. It is also well-suited for developing new machine learning schemes. %package javadoc -Summary: Javadocs for %{name} -Group: Documentation -Requires: %{name} = %{version}-%{release} -Requires: jpackage-utils +Summary: Javadoc for %{name} %description javadoc This package contains the API documentation for %{name}. %prep %setup -q -n %{name}-%{_version} -# unzip the sources jar -unzip %{name}-src.jar -%patch0 + +# extract the sources jar +%jar -xf %{name}-src.jar + # 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:( + 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###' build.xml -%build -export CLASSPATH=$(build-classpath java_cup java_cup-runtime jflex) -ant compile +rm -r doc -%if %{?_with_tests:1}%{!?_with_tests:0} -%check -export CLASSPATH=/usr/share/java/junit.jar ant run_tests +%pom_xpath_set pom:project/pom:artifactId %{name} +%pom_xpath_set pom:project/pom:version %{version} + +# Use default maven setting +%pom_xpath_remove pom:project/pom:build/pom:directory +%pom_xpath_remove pom:project/pom:build/pom:outputDirectory +%pom_xpath_remove pom:project/pom:build/pom:testOutputDirectory +# Unneeded tasks +%pom_remove_plugin :maven-javadoc-plugin +%pom_remove_plugin :maven-source-plugin + +# Fix dependency +%pom_change_dep net.sf.squirrel-sql.thirdparty-non-maven:java-cup java_cup:java_cup + +# Fix non ASCII chars +for s in src/main/java/weka/gui/HierarchyPropertyParser.java;do + native2ascii -encoding UTF8 ${s} ${s} +done + +# fix incorrect-fsf-address +sed -i "s,59 Temple Place,51 Franklin Street,;s,Suite 330,Fifth Floor,;s,02111-1307,02110-1301," COPYING + +# Install jar in proper location +%mvn_file nz.ac.waikato.cms.%{name}:%{name} %{name} + +%mvn_alias nz.ac.waikato.cms.%{name}:%{name} :%{name}-dev :%{name}-stable + +%build + +%if %{without _tests} +opts="-f" %endif +%mvn_build $opts %install -rm -rf $RPM_BUILD_ROOT - -# jar -ant exejar -mkdir -p $RPM_BUILD_ROOT%{_javadir} -cp -p dist/%{name}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar - -# javadoc -ant docs -mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name} -cp -rp doc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name} +%mvn_install # wrapper script mkdir -p $RPM_BUILD_ROOT%{_bindir} cat > $RPM_BUILD_ROOT%{_bindir}/%{name} <<-EOF - #!/bin/bash - . /usr/share/java-utils/java-functions - MAIN_CLASS="weka.gui.GUIChooser" - set_classpath "weka.jar" - set_classpath "libsvm.jar" - set_classpath "java_cup.jar" - set_classpath "postgresql-jdbc" - set_classpath "hsqldb" - set_classpath "mysql-connector-java" - export CLASSPATH="\$CLASSPATH:%{_libdir}/javasqlite/sqlite.jar" - run "$@" +#!/bin/bash +. /usr/share/java-utils/java-functions +MAIN_CLASS="weka.gui.GUIChooser" +set_classpath "weka.jar" +set_classpath "libsvm.jar" +set_classpath "java_cup.jar" +set_classpath "postgresql-jdbc" +set_classpath "hsqldb" +set_classpath "mysql-connector-java" +export CLASSPATH="\$CLASSPATH:%{_libdir}/javasqlite/sqlite.jar" +run "$@" EOF chmod a+x $RPM_BUILD_ROOT%{_bindir}/%{name} # desktop file and icon desktop-file-install \ --dir=${RPM_BUILD_ROOT}%{_datadir}/applications %{SOURCE1} + # convert icon to png convert %{name}.ico %{name}.png install -Dp %{name}-0.png ${RPM_BUILD_ROOT}%{_datadir}/icons/hicolor/32x32/apps/%{name}.png - -%clean -rm -rf $RPM_BUILD_ROOT +install -Dp %{name}-1.png ${RPM_BUILD_ROOT}%{_datadir}/icons/hicolor/64x64/apps/%{name}.png +install -Dp %{name}-2.png ${RPM_BUILD_ROOT}%{_datadir}/icons/hicolor/128x128/apps/%{name}.png +install -Dp %{name}-3.png ${RPM_BUILD_ROOT}%{_datadir}/icons/hicolor/256x256/apps/%{name}.png %post touch --no-create %{_datadir}/icons/hicolor @@ -124,25 +132,24 @@ if [ -x %{_bindir}/gtk-update-icon-cache ] ; then %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : fi -%files -%defattr(-,root,root,-) -%{_javadir}/%{name}.jar +%files -f .mfiles %{_bindir}/%{name} %{_datadir}/applications/%{name}.desktop -%{_datadir}/icons/hicolor/32x32/apps/%{name}.png -%doc documentation.html -%doc documentation.css -%doc WekaManual.pdf -%doc COPYING -%doc README -%doc changelogs -%doc data +%{_datadir}/icons/hicolor/*x*/apps/%{name}.png +%doc documentation.html documentation.css +%doc README WekaManual.pdf changelogs data +%license COPYING -%files javadoc -%defattr(-,root,root,-) -%{_javadocdir}/%{name} +%files javadoc -f .mfiles-javadoc +%license COPYING %changelog +* Mon Oct 12 2015 gil cattaneo 3.6.8-6 +- switch to maven +- introduce license macro +- adapt to current guideline +- remove some rpmlint problems + * Fri Jun 19 2015 Fedora Release Engineering - 3.6.8-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild From 8658356298d962048f34a85c0d8dbec17bc96ef8 Mon Sep 17 00:00:00 2001 From: gil Date: Wed, 14 Oct 2015 07:32:09 +0200 Subject: [PATCH 04/20] update to 3.6.13 --- .gitignore | 1 + sources | 2 +- weka.appdata.xml | 19 ++++++++++++++ weka.spec | 67 ++++++++++++++++++++++++------------------------ 4 files changed, 54 insertions(+), 35 deletions(-) create mode 100644 weka.appdata.xml diff --git a/.gitignore b/.gitignore index 5dcd99e..05b9636 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ weka-3-6-2.zip /weka-3-6-7.zip /weka-3-6-8.zip +/weka-3-6-13.zip diff --git a/sources b/sources index 03a1ec3..5586b7c 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -8651d34e0e119750047b482aea35f359 weka-3-6-8.zip +b1ac61525628978d5df7e1836ce25cc6 weka-3-6-13.zip diff --git a/weka.appdata.xml b/weka.appdata.xml new file mode 100644 index 0000000..34905d9 --- /dev/null +++ b/weka.appdata.xml @@ -0,0 +1,19 @@ + + + weka.desktop + Weka + Waikato Environment for Knowledge Analysis + http://www.cs.waikato.ac.nz/ml/weka/ + http://jira.pentaho.com/browse/DATAMINING + CC0-1.0 + GPL-2.0+ + +

+ Weka is a collection of machine learning algorithms for data mining tasks. + The algorithms can either be applied directly to a data-set or called from + your own Java code. Weka contains tools for data pre-processing, + classification, regression, clustering, association rules, and visualization. + It is also well-suited for developing new machine learning schemes. +

+
+
\ No newline at end of file diff --git a/weka.spec b/weka.spec index 9ec02f4..f34b2b0 100644 --- a/weka.spec +++ b/weka.spec @@ -7,30 +7,32 @@ %bcond_with _tests Name: weka -Version: 3.6.8 -Release: 6%{?dist} +Version: 3.6.13 +Release: 1%{?dist} Summary: Waikato Environment for Knowledge Analysis License: GPLv2+ URL: http://www.cs.waikato.ac.nz/ml/%{name}/ -Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{_version}.zip +Source0: http://downloads.sourceforge.net/weka/%{name}-%{_version}.zip Source1: weka.desktop - +Source2: weka.appdata.xml BuildArch: noarch BuildRequires: desktop-file-utils BuildRequires: ImageMagick +BuildRequires: libappstream-glib BuildRequires: maven-local BuildRequires: mvn(java_cup:java_cup) BuildRequires: mvn(junit:junit) BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:) -# Other dependencies used at runtime -Requires: java >= 1:1.6.0 -Requires: libsvm-java +# Other runtime dependencies Requires: hsqldb -Requires: postgresql-jdbc -Requires: mysql-connector-java +Requires: java >= 1:1.6.0 Requires: javasqlite +Requires: libsvm-java +Requires: mysql-connector-java +Requires: postgresql-jdbc + %description Weka is a collection of machine learning algorithms for data mining tasks. @@ -49,7 +51,7 @@ This package contains the API documentation for %{name}. %setup -q -n %{name}-%{_version} # extract the sources jar -%jar -xf %{name}-src.jar +%jar -xf %{name}-src.jar # remove prebuilt jars find -name '*.jar' -delete -o -name '*.class' -delete @@ -60,11 +62,14 @@ rm -r doc # Use default maven setting %pom_xpath_remove pom:project/pom:build/pom:directory -%pom_xpath_remove pom:project/pom:build/pom:outputDirectory -%pom_xpath_remove pom:project/pom:build/pom:testOutputDirectory +%pom_xpath_remove pom:outputDirectory +%pom_xpath_remove pom:testOutputDirectory + # Unneeded tasks -%pom_remove_plugin :maven-javadoc-plugin %pom_remove_plugin :maven-source-plugin +%pom_xpath_remove "pom:plugin[pom:artifactId='maven-javadoc-plugin']/pom:executions" +# Disable doclint problems +%pom_xpath_inject "pom:plugin[pom:artifactId='maven-javadoc-plugin']/pom:configuration" "-Xdoclint:none" # Fix dependency %pom_change_dep net.sf.squirrel-sql.thirdparty-non-maven:java-cup java_cup:java_cup @@ -79,7 +84,6 @@ sed -i "s,59 Temple Place,51 Franklin Street,;s,Suite 330,Fifth Floor,;s,02111-1 # Install jar in proper location %mvn_file nz.ac.waikato.cms.%{name}:%{name} %{name} - %mvn_alias nz.ac.waikato.cms.%{name}:%{name} :%{name}-dev :%{name}-stable %build @@ -93,32 +97,21 @@ opts="-f" %mvn_install # wrapper script -mkdir -p $RPM_BUILD_ROOT%{_bindir} -cat > $RPM_BUILD_ROOT%{_bindir}/%{name} <<-EOF -#!/bin/bash -. /usr/share/java-utils/java-functions -MAIN_CLASS="weka.gui.GUIChooser" -set_classpath "weka.jar" -set_classpath "libsvm.jar" -set_classpath "java_cup.jar" -set_classpath "postgresql-jdbc" -set_classpath "hsqldb" -set_classpath "mysql-connector-java" -export CLASSPATH="\$CLASSPATH:%{_libdir}/javasqlite/sqlite.jar" -run "$@" -EOF -chmod a+x $RPM_BUILD_ROOT%{_bindir}/%{name} +%jpackage_script weka.gui.GUIChooser "" "" %{name}:java_cup:libsvm:hsqldb:../../javasqlite/sqlite.jar:mysql-connector-java:postgresql-jdbc %{name} true # desktop file and icon desktop-file-install \ ---dir=${RPM_BUILD_ROOT}%{_datadir}/applications %{SOURCE1} +--dir=%{buildroot}%{_datadir}/applications %{SOURCE1} # convert icon to png convert %{name}.ico %{name}.png -install -Dp %{name}-0.png ${RPM_BUILD_ROOT}%{_datadir}/icons/hicolor/32x32/apps/%{name}.png -install -Dp %{name}-1.png ${RPM_BUILD_ROOT}%{_datadir}/icons/hicolor/64x64/apps/%{name}.png -install -Dp %{name}-2.png ${RPM_BUILD_ROOT}%{_datadir}/icons/hicolor/128x128/apps/%{name}.png -install -Dp %{name}-3.png ${RPM_BUILD_ROOT}%{_datadir}/icons/hicolor/256x256/apps/%{name}.png +install -Dp %{name}-0.png %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/%{name}.png +install -Dp %{name}-1.png %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/%{name}.png +install -Dp %{name}-2.png %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/%{name}.png +install -Dp %{name}-3.png %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/%{name}.png +# appdata +install -Dp %{SOURCE2} %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml +appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/appdata/%{name}.appdata.xml %post touch --no-create %{_datadir}/icons/hicolor @@ -136,6 +129,7 @@ fi %{_bindir}/%{name} %{_datadir}/applications/%{name}.desktop %{_datadir}/icons/hicolor/*x*/apps/%{name}.png +%{_datadir}/appdata/%{name}.appdata.xml %doc documentation.html documentation.css %doc README WekaManual.pdf changelogs data %license COPYING @@ -144,6 +138,11 @@ fi %license COPYING %changelog +* Wed Oct 14 2015 gil cattaneo 3.6.13-1 +- update to 3.6.13 +- add launcher script using %%jpackage_script +- include appdata + * Mon Oct 12 2015 gil cattaneo 3.6.8-6 - switch to maven - introduce license macro From b1a072d6e80ae85621025a543c5e665defb7173b Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 5 Feb 2016 02:58:29 +0000 Subject: [PATCH 05/20] - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild --- weka.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/weka.spec b/weka.spec index f34b2b0..c3f3b52 100644 --- a/weka.spec +++ b/weka.spec @@ -8,7 +8,7 @@ Name: weka Version: 3.6.13 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Waikato Environment for Knowledge Analysis License: GPLv2+ URL: http://www.cs.waikato.ac.nz/ml/%{name}/ @@ -138,6 +138,9 @@ fi %license COPYING %changelog +* Fri Feb 05 2016 Fedora Release Engineering - 3.6.13-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + * Wed Oct 14 2015 gil cattaneo 3.6.13-1 - update to 3.6.13 - add launcher script using %%jpackage_script From 311bc31f6db04c21c3375c052f158132eab8964f Mon Sep 17 00:00:00 2001 From: gil Date: Sat, 28 May 2016 11:21:25 +0200 Subject: [PATCH 06/20] update to 3.6.14 --- .gitignore | 1 + sources | 2 +- weka-3.6.2-build.xml.patch | 14 -------------- weka.spec | 25 ++++++++++++++++--------- 4 files changed, 18 insertions(+), 24 deletions(-) delete mode 100644 weka-3.6.2-build.xml.patch diff --git a/.gitignore b/.gitignore index 05b9636..db20f06 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ weka-3-6-2.zip /weka-3-6-7.zip /weka-3-6-8.zip /weka-3-6-13.zip +/weka-3-6-14.zip diff --git a/sources b/sources index 5586b7c..4cf756b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -b1ac61525628978d5df7e1836ce25cc6 weka-3-6-13.zip +c691eec1fb3a3adc309f2f0082cdee5b weka-3-6-14.zip diff --git a/weka-3.6.2-build.xml.patch b/weka-3.6.2-build.xml.patch deleted file mode 100644 index ecb1ba3..0000000 --- a/weka-3.6.2-build.xml.patch +++ /dev/null @@ -1,14 +0,0 @@ ---- build.xml.orig 2010-01-16 17:30:19.000000000 +0100 -+++ build.xml 2010-01-16 17:30:26.000000000 +0100 -@@ -90,11 +90,6 @@ -
- -- -- -- -- -- - - - diff --git a/weka.spec b/weka.spec index c3f3b52..fedee44 100644 --- a/weka.spec +++ b/weka.spec @@ -7,8 +7,8 @@ %bcond_with _tests Name: weka -Version: 3.6.13 -Release: 2%{?dist} +Version: 3.6.14 +Release: 1%{?dist} Summary: Waikato Environment for Knowledge Analysis License: GPLv2+ URL: http://www.cs.waikato.ac.nz/ml/%{name}/ @@ -55,7 +55,7 @@ This package contains the API documentation for %{name}. # remove prebuilt jars find -name '*.jar' -delete -o -name '*.class' -delete -rm -r doc +rm -r doc wekaexamples.zip %pom_xpath_set pom:project/pom:artifactId %{name} %pom_xpath_set pom:project/pom:version %{version} @@ -103,15 +103,19 @@ opts="-f" desktop-file-install \ --dir=%{buildroot}%{_datadir}/applications %{SOURCE1} -# convert icon to png +# install icons convert %{name}.ico %{name}.png -install -Dp %{name}-0.png %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/%{name}.png -install -Dp %{name}-1.png %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/%{name}.png -install -Dp %{name}-2.png %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/%{name}.png -install -Dp %{name}-3.png %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/%{name}.png +for p in 32x32 64x64 128x128 256x256; do + mkdir -p %{buildroot}%{_datadir}/icons/hicolor/${p}/apps + convert src/main/java/weka/gui/%{name}_icon_new.png -resize ${p} \ + %{buildroot}%{_datadir}/icons/hicolor/${p}/apps/%{name}.png +done +install -Dp src/main/java/weka/gui/%{name}_icon_new.png \ + %{buildroot}%{_datadir}/icons/hicolor/457x457/apps/%{name}.png + # appdata install -Dp %{SOURCE2} %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml -appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/appdata/%{name}.appdata.xml +appstream-util validate-relax --nonet %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml %post touch --no-create %{_datadir}/icons/hicolor @@ -138,6 +142,9 @@ fi %license COPYING %changelog +* Sat May 28 2016 gil cattaneo 3.6.14-1 +- update to 3.6.14 + * Fri Feb 05 2016 Fedora Release Engineering - 3.6.13-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild From e6e6f2f155e9253a382e79512047355a17ed533c Mon Sep 17 00:00:00 2001 From: gil Date: Thu, 21 Jul 2016 09:13:40 +0200 Subject: [PATCH 07/20] remove appdata --- weka.spec | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/weka.spec b/weka.spec index fedee44..7697e29 100644 --- a/weka.spec +++ b/weka.spec @@ -8,7 +8,7 @@ Name: weka Version: 3.6.14 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Waikato Environment for Knowledge Analysis License: GPLv2+ URL: http://www.cs.waikato.ac.nz/ml/%{name}/ @@ -97,7 +97,7 @@ opts="-f" %mvn_install # wrapper script -%jpackage_script weka.gui.GUIChooser "" "" %{name}:java_cup:libsvm:hsqldb:../../javasqlite/sqlite.jar:mysql-connector-java:postgresql-jdbc %{name} true +%jpackage_script weka.gui.GUIChooser "" "" %{name}:java_cup:libsvm:hsqldb:../../javasqlite/sqlite.jar:mysql-connector-java:postgresql %{name} true # desktop file and icon desktop-file-install \ @@ -113,9 +113,9 @@ done install -Dp src/main/java/weka/gui/%{name}_icon_new.png \ %{buildroot}%{_datadir}/icons/hicolor/457x457/apps/%{name}.png -# appdata -install -Dp %{SOURCE2} %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml -appstream-util validate-relax --nonet %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml +# appdata 6652 Segmentation fault (core dumped) +#install -Dp %%{SOURCE2} %%{buildroot}%%{_datadir}/appdata/%%{name}.appdata.xml +#appstream-util validate-relax --nonet %%{buildroot}%%{_datadir}/appdata/%%{name}.appdata.xml %post touch --no-create %{_datadir}/icons/hicolor @@ -133,7 +133,7 @@ fi %{_bindir}/%{name} %{_datadir}/applications/%{name}.desktop %{_datadir}/icons/hicolor/*x*/apps/%{name}.png -%{_datadir}/appdata/%{name}.appdata.xml +#%%{_datadir}/appdata/%%{name}.appdata.xml %doc documentation.html documentation.css %doc README WekaManual.pdf changelogs data %license COPYING @@ -142,6 +142,10 @@ fi %license COPYING %changelog +* Thu Jul 21 2016 gil cattaneo 3.6.14-2 +- remove appdata +- update launcher script with new postgresql-jdbc + * Sat May 28 2016 gil cattaneo 3.6.14-1 - update to 3.6.14 From 66df0683ef1773287bc4de48756f9a620849c7fd Mon Sep 17 00:00:00 2001 From: gil Date: Sun, 6 Nov 2016 10:30:20 +0100 Subject: [PATCH 08/20] Rebuilt for exculde ppc ppc64 arches --- weka.spec | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/weka.spec b/weka.spec index 7697e29..7e01e68 100644 --- a/weka.spec +++ b/weka.spec @@ -8,7 +8,7 @@ Name: weka Version: 3.6.14 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Waikato Environment for Knowledge Analysis License: GPLv2+ URL: http://www.cs.waikato.ac.nz/ml/%{name}/ @@ -33,6 +33,8 @@ Requires: libsvm-java Requires: mysql-connector-java Requires: postgresql-jdbc +# unavailable libsvm-java +ExcludeArch: ppc ppc64 %description Weka is a collection of machine learning algorithms for data mining tasks. @@ -142,6 +144,9 @@ fi %license COPYING %changelog +* Sun Nov 06 2016 gil cattaneo 3.6.14-3 +- Rebuilt for exculde ppc ppc64 arches + * Thu Jul 21 2016 gil cattaneo 3.6.14-2 - remove appdata - update launcher script with new postgresql-jdbc From 7e2195036e900b54a82be99f10d04e5a8a3a69fd Mon Sep 17 00:00:00 2001 From: gil Date: Sun, 6 Nov 2016 11:02:38 +0100 Subject: [PATCH 09/20] Rebuilt for exculde ppc ppc64 arches --- weka.spec | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/weka.spec b/weka.spec index 7e01e68..8300c29 100644 --- a/weka.spec +++ b/weka.spec @@ -15,7 +15,10 @@ URL: http://www.cs.waikato.ac.nz/ml/%{name}/ Source0: http://downloads.sourceforge.net/weka/%{name}-%{_version}.zip Source1: weka.desktop Source2: weka.appdata.xml + BuildArch: noarch +# libsvm-java is not available on ppc ppc64 +ExclusiveArch: %{arm} %{ix86} x86_64 noarch BuildRequires: desktop-file-utils BuildRequires: ImageMagick @@ -33,9 +36,6 @@ Requires: libsvm-java Requires: mysql-connector-java Requires: postgresql-jdbc -# unavailable libsvm-java -ExcludeArch: ppc ppc64 - %description Weka is a collection of machine learning algorithms for data mining tasks. The algorithms can either be applied directly to a data-set or called from From 9532626fac4855618be80e691a44f387a4ec6fc9 Mon Sep 17 00:00:00 2001 From: gil Date: Sun, 6 Nov 2016 13:24:04 +0100 Subject: [PATCH 10/20] Rebuilt for exculde ppc ppc64 arches --- weka.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/weka.spec b/weka.spec index 8300c29..8a48401 100644 --- a/weka.spec +++ b/weka.spec @@ -16,8 +16,9 @@ Source0: http://downloads.sourceforge.net/weka/%{name}-%{_version}.zip Source1: weka.desktop Source2: weka.appdata.xml -BuildArch: noarch + # libsvm-java is not available on ppc ppc64 +#BuildArch: noarch ExclusiveArch: %{arm} %{ix86} x86_64 noarch BuildRequires: desktop-file-utils From 81eae18e96df618aaed96db99151659dee6d4fcf Mon Sep 17 00:00:00 2001 From: gil Date: Sun, 6 Nov 2016 14:58:02 +0100 Subject: [PATCH 11/20] Rebuilt for exculde ppc ppc64 arches --- weka.spec | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/weka.spec b/weka.spec index 8a48401..c232304 100644 --- a/weka.spec +++ b/weka.spec @@ -16,10 +16,7 @@ Source0: http://downloads.sourceforge.net/weka/%{name}-%{_version}.zip Source1: weka.desktop Source2: weka.appdata.xml - -# libsvm-java is not available on ppc ppc64 -#BuildArch: noarch -ExclusiveArch: %{arm} %{ix86} x86_64 noarch +BuildArch: noarch BuildRequires: desktop-file-utils BuildRequires: ImageMagick From 69f0d15ddcb82e005aeca9bcdaa51040d9590db1 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 11 Feb 2017 17:19:41 +0000 Subject: [PATCH 12/20] - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild --- weka.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/weka.spec b/weka.spec index c232304..ceb94b2 100644 --- a/weka.spec +++ b/weka.spec @@ -8,7 +8,7 @@ Name: weka Version: 3.6.14 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Waikato Environment for Knowledge Analysis License: GPLv2+ URL: http://www.cs.waikato.ac.nz/ml/%{name}/ @@ -142,6 +142,9 @@ fi %license COPYING %changelog +* Sat Feb 11 2017 Fedora Release Engineering - 3.6.14-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + * Sun Nov 06 2016 gil cattaneo 3.6.14-3 - Rebuilt for exculde ppc ppc64 arches From d05123e7d4668630d7cd2a4a189e7ad470e7ae61 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 27 Jul 2017 21:33:38 +0000 Subject: [PATCH 13/20] - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild --- weka.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/weka.spec b/weka.spec index ceb94b2..2eebf17 100644 --- a/weka.spec +++ b/weka.spec @@ -8,7 +8,7 @@ Name: weka Version: 3.6.14 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Waikato Environment for Knowledge Analysis License: GPLv2+ URL: http://www.cs.waikato.ac.nz/ml/%{name}/ @@ -142,6 +142,9 @@ fi %license COPYING %changelog +* Thu Jul 27 2017 Fedora Release Engineering - 3.6.14-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + * Sat Feb 11 2017 Fedora Release Engineering - 3.6.14-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild From 455459f0e77917b3cc861130408abc26a496203e Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Thu, 18 Jan 2018 22:48:30 +0100 Subject: [PATCH 14/20] Remove obsolete scriptlets Signed-off-by: Igor Gnatenko --- weka.spec | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/weka.spec b/weka.spec index 2eebf17..c928ebd 100644 --- a/weka.spec +++ b/weka.spec @@ -8,7 +8,7 @@ Name: weka Version: 3.6.14 -Release: 5%{?dist} +Release: 6%{?dist} Summary: Waikato Environment for Knowledge Analysis License: GPLv2+ URL: http://www.cs.waikato.ac.nz/ml/%{name}/ @@ -117,18 +117,6 @@ install -Dp src/main/java/weka/gui/%{name}_icon_new.png \ #install -Dp %%{SOURCE2} %%{buildroot}%%{_datadir}/appdata/%%{name}.appdata.xml #appstream-util validate-relax --nonet %%{buildroot}%%{_datadir}/appdata/%%{name}.appdata.xml -%post -touch --no-create %{_datadir}/icons/hicolor -if [ -x %{_bindir}/gtk-update-icon-cache ] ; then - %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : -fi - -%postun -touch --no-create %{_datadir}/icons/hicolor -if [ -x %{_bindir}/gtk-update-icon-cache ] ; then - %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : -fi - %files -f .mfiles %{_bindir}/%{name} %{_datadir}/applications/%{name}.desktop @@ -142,6 +130,9 @@ fi %license COPYING %changelog +* Thu Jan 18 2018 Igor Gnatenko - 3.6.14-6 +- Remove obsolete scriptlets + * Thu Jul 27 2017 Fedora Release Engineering - 3.6.14-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild From 20b9f9339e880cfb24d299a1729fac909fd83201 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 9 Feb 2018 20:51:29 +0000 Subject: [PATCH 15/20] - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- weka.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/weka.spec b/weka.spec index c928ebd..08e0c84 100644 --- a/weka.spec +++ b/weka.spec @@ -8,7 +8,7 @@ Name: weka Version: 3.6.14 -Release: 6%{?dist} +Release: 7%{?dist} Summary: Waikato Environment for Knowledge Analysis License: GPLv2+ URL: http://www.cs.waikato.ac.nz/ml/%{name}/ @@ -130,6 +130,9 @@ install -Dp src/main/java/weka/gui/%{name}_icon_new.png \ %license COPYING %changelog +* Fri Feb 09 2018 Fedora Release Engineering - 3.6.14-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + * Thu Jan 18 2018 Igor Gnatenko - 3.6.14-6 - Remove obsolete scriptlets From 7fb1506b790aa8c9faff6f55f9be2e044f4d63bc Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 14 Jul 2018 08:47:27 +0000 Subject: [PATCH 16/20] - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- weka.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/weka.spec b/weka.spec index 08e0c84..fc5c0c6 100644 --- a/weka.spec +++ b/weka.spec @@ -8,7 +8,7 @@ Name: weka Version: 3.6.14 -Release: 7%{?dist} +Release: 8%{?dist} Summary: Waikato Environment for Knowledge Analysis License: GPLv2+ URL: http://www.cs.waikato.ac.nz/ml/%{name}/ @@ -130,6 +130,9 @@ install -Dp src/main/java/weka/gui/%{name}_icon_new.png \ %license COPYING %changelog +* Sat Jul 14 2018 Fedora Release Engineering - 3.6.14-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + * Fri Feb 09 2018 Fedora Release Engineering - 3.6.14-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild From 61dd82d4ca67eab898e7a541a00186c94fe7d83b Mon Sep 17 00:00:00 2001 From: Severin Gehwolf Date: Fri, 31 Aug 2018 14:19:10 +0200 Subject: [PATCH 17/20] Add explicit requirement for javapackages-tools --- weka.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/weka.spec b/weka.spec index fc5c0c6..f478505 100644 --- a/weka.spec +++ b/weka.spec @@ -8,7 +8,7 @@ Name: weka Version: 3.6.14 -Release: 8%{?dist} +Release: 9%{?dist} Summary: Waikato Environment for Knowledge Analysis License: GPLv2+ URL: http://www.cs.waikato.ac.nz/ml/%{name}/ @@ -33,6 +33,9 @@ Requires: javasqlite Requires: libsvm-java Requires: mysql-connector-java Requires: postgresql-jdbc +# Explicit requires for javapackages-tools since weka script +# uses /usr/share/java-utils/java-functions +Requires: javapackages-tools %description Weka is a collection of machine learning algorithms for data mining tasks. @@ -130,6 +133,10 @@ install -Dp src/main/java/weka/gui/%{name}_icon_new.png \ %license COPYING %changelog +* Fri Aug 31 2018 Severin Gehwolf - 3.6.14-9 +- Add explicit javapackages-tools requirement for weka script. + See RHBZ#1600426. + * Sat Jul 14 2018 Fedora Release Engineering - 3.6.14-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild From d9374c0441a801ebe110ee9c7014e7bc1ef399be Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sun, 3 Feb 2019 11:38:15 +0000 Subject: [PATCH 18/20] - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- weka.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/weka.spec b/weka.spec index f478505..8a17b37 100644 --- a/weka.spec +++ b/weka.spec @@ -8,7 +8,7 @@ Name: weka Version: 3.6.14 -Release: 9%{?dist} +Release: 10%{?dist} Summary: Waikato Environment for Knowledge Analysis License: GPLv2+ URL: http://www.cs.waikato.ac.nz/ml/%{name}/ @@ -133,6 +133,9 @@ install -Dp src/main/java/weka/gui/%{name}_icon_new.png \ %license COPYING %changelog +* Sun Feb 03 2019 Fedora Release Engineering - 3.6.14-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + * Fri Aug 31 2018 Severin Gehwolf - 3.6.14-9 - Add explicit javapackages-tools requirement for weka script. See RHBZ#1600426. From 50c52ff767617479ad7b9d9a22a1cf80ac706b2a Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 27 Jul 2019 03:23:22 +0000 Subject: [PATCH 19/20] - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- weka.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/weka.spec b/weka.spec index 8a17b37..660f823 100644 --- a/weka.spec +++ b/weka.spec @@ -8,7 +8,7 @@ Name: weka Version: 3.6.14 -Release: 10%{?dist} +Release: 11%{?dist} Summary: Waikato Environment for Knowledge Analysis License: GPLv2+ URL: http://www.cs.waikato.ac.nz/ml/%{name}/ @@ -133,6 +133,9 @@ install -Dp src/main/java/weka/gui/%{name}_icon_new.png \ %license COPYING %changelog +* Sat Jul 27 2019 Fedora Release Engineering - 3.6.14-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + * Sun Feb 03 2019 Fedora Release Engineering - 3.6.14-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild From 629e5f3c72aa8d5d882c994e3bec932bf0f974f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Wed, 11 Sep 2019 12:52:41 +0200 Subject: [PATCH 20/20] Orphaned for 6+ weeks --- .gitignore | 5 - dead.package | 1 + sources | 1 - weka.appdata.xml | 19 ---- weka.desktop | 13 --- weka.spec | 245 ----------------------------------------------- 6 files changed, 1 insertion(+), 283 deletions(-) delete mode 100644 .gitignore create mode 100644 dead.package delete mode 100644 sources delete mode 100644 weka.appdata.xml delete mode 100644 weka.desktop delete mode 100644 weka.spec diff --git a/.gitignore b/.gitignore deleted file mode 100644 index db20f06..0000000 --- a/.gitignore +++ /dev/null @@ -1,5 +0,0 @@ -weka-3-6-2.zip -/weka-3-6-7.zip -/weka-3-6-8.zip -/weka-3-6-13.zip -/weka-3-6-14.zip diff --git a/dead.package b/dead.package new file mode 100644 index 0000000..5204a84 --- /dev/null +++ b/dead.package @@ -0,0 +1 @@ +Orphaned for 6+ weeks diff --git a/sources b/sources deleted file mode 100644 index 4cf756b..0000000 --- a/sources +++ /dev/null @@ -1 +0,0 @@ -c691eec1fb3a3adc309f2f0082cdee5b weka-3-6-14.zip diff --git a/weka.appdata.xml b/weka.appdata.xml deleted file mode 100644 index 34905d9..0000000 --- a/weka.appdata.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - weka.desktop - Weka - Waikato Environment for Knowledge Analysis - http://www.cs.waikato.ac.nz/ml/weka/ - http://jira.pentaho.com/browse/DATAMINING - CC0-1.0 - GPL-2.0+ - -

- Weka is a collection of machine learning algorithms for data mining tasks. - The algorithms can either be applied directly to a data-set or called from - your own Java code. Weka contains tools for data pre-processing, - classification, regression, clustering, association rules, and visualization. - It is also well-suited for developing new machine learning schemes. -

-
-
\ No newline at end of file diff --git a/weka.desktop b/weka.desktop deleted file mode 100644 index da157e1..0000000 --- a/weka.desktop +++ /dev/null @@ -1,13 +0,0 @@ -[Desktop Entry] -Name=Weka -GenericName=Waikato Environment for Knowledge Analysis -GenericName[de]=Waikato - System für Wissensanalyse -GenericName[cs]=Waikato - systém pro analýzu znalostí -Comment=Start Weka -Comment[de]=Weka starten -Comment[cs]=Spustit Weku -Exec=weka -Terminal=false -Type=Application -Icon=weka -Categories=Education;Science;ArtificialIntelligence; diff --git a/weka.spec b/weka.spec deleted file mode 100644 index 660f823..0000000 --- a/weka.spec +++ /dev/null @@ -1,245 +0,0 @@ -%global _version %(echo %version | tr . -) - -# whether to run jUnit tests, caution: takes horribly long -# currently disabled as the tests fail, filed in upstream's bugtracker: -# https://sourceforge.net/tracker2/?func=detail&aid=2648813&group_id=5091&atid=105091 -# %%global _with_tests 1 -%bcond_with _tests - -Name: weka -Version: 3.6.14 -Release: 11%{?dist} -Summary: Waikato Environment for Knowledge Analysis -License: GPLv2+ -URL: http://www.cs.waikato.ac.nz/ml/%{name}/ -Source0: http://downloads.sourceforge.net/weka/%{name}-%{_version}.zip -Source1: weka.desktop -Source2: weka.appdata.xml - -BuildArch: noarch - -BuildRequires: desktop-file-utils -BuildRequires: ImageMagick -BuildRequires: libappstream-glib -BuildRequires: maven-local -BuildRequires: mvn(java_cup:java_cup) -BuildRequires: mvn(junit:junit) -BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:) - -# Other runtime dependencies -Requires: hsqldb -Requires: java >= 1:1.6.0 -Requires: javasqlite -Requires: libsvm-java -Requires: mysql-connector-java -Requires: postgresql-jdbc -# Explicit requires for javapackages-tools since weka script -# uses /usr/share/java-utils/java-functions -Requires: javapackages-tools - -%description -Weka is a collection of machine learning algorithms for data mining tasks. -The algorithms can either be applied directly to a data-set or called from -your own Java code. Weka contains tools for data pre-processing, -classification, regression, clustering, association rules, and visualization. -It is also well-suited for developing new machine learning schemes. - -%package javadoc -Summary: Javadoc for %{name} - -%description javadoc -This package contains the API documentation for %{name}. - -%prep -%setup -q -n %{name}-%{_version} - -# extract the sources jar -%jar -xf %{name}-src.jar - -# remove prebuilt jars -find -name '*.jar' -delete -o -name '*.class' -delete -rm -r doc wekaexamples.zip - -%pom_xpath_set pom:project/pom:artifactId %{name} -%pom_xpath_set pom:project/pom:version %{version} - -# Use default maven setting -%pom_xpath_remove pom:project/pom:build/pom:directory -%pom_xpath_remove pom:outputDirectory -%pom_xpath_remove pom:testOutputDirectory - -# Unneeded tasks -%pom_remove_plugin :maven-source-plugin -%pom_xpath_remove "pom:plugin[pom:artifactId='maven-javadoc-plugin']/pom:executions" -# Disable doclint problems -%pom_xpath_inject "pom:plugin[pom:artifactId='maven-javadoc-plugin']/pom:configuration" "-Xdoclint:none" - -# Fix dependency -%pom_change_dep net.sf.squirrel-sql.thirdparty-non-maven:java-cup java_cup:java_cup - -# Fix non ASCII chars -for s in src/main/java/weka/gui/HierarchyPropertyParser.java;do - native2ascii -encoding UTF8 ${s} ${s} -done - -# fix incorrect-fsf-address -sed -i "s,59 Temple Place,51 Franklin Street,;s,Suite 330,Fifth Floor,;s,02111-1307,02110-1301," COPYING - -# Install jar in proper location -%mvn_file nz.ac.waikato.cms.%{name}:%{name} %{name} -%mvn_alias nz.ac.waikato.cms.%{name}:%{name} :%{name}-dev :%{name}-stable - -%build - -%if %{without _tests} -opts="-f" -%endif -%mvn_build $opts - -%install -%mvn_install - -# wrapper script -%jpackage_script weka.gui.GUIChooser "" "" %{name}:java_cup:libsvm:hsqldb:../../javasqlite/sqlite.jar:mysql-connector-java:postgresql %{name} true - -# desktop file and icon -desktop-file-install \ ---dir=%{buildroot}%{_datadir}/applications %{SOURCE1} - -# install icons -convert %{name}.ico %{name}.png -for p in 32x32 64x64 128x128 256x256; do - mkdir -p %{buildroot}%{_datadir}/icons/hicolor/${p}/apps - convert src/main/java/weka/gui/%{name}_icon_new.png -resize ${p} \ - %{buildroot}%{_datadir}/icons/hicolor/${p}/apps/%{name}.png -done -install -Dp src/main/java/weka/gui/%{name}_icon_new.png \ - %{buildroot}%{_datadir}/icons/hicolor/457x457/apps/%{name}.png - -# appdata 6652 Segmentation fault (core dumped) -#install -Dp %%{SOURCE2} %%{buildroot}%%{_datadir}/appdata/%%{name}.appdata.xml -#appstream-util validate-relax --nonet %%{buildroot}%%{_datadir}/appdata/%%{name}.appdata.xml - -%files -f .mfiles -%{_bindir}/%{name} -%{_datadir}/applications/%{name}.desktop -%{_datadir}/icons/hicolor/*x*/apps/%{name}.png -#%%{_datadir}/appdata/%%{name}.appdata.xml -%doc documentation.html documentation.css -%doc README WekaManual.pdf changelogs data -%license COPYING - -%files javadoc -f .mfiles-javadoc -%license COPYING - -%changelog -* Sat Jul 27 2019 Fedora Release Engineering - 3.6.14-11 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - -* Sun Feb 03 2019 Fedora Release Engineering - 3.6.14-10 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - -* Fri Aug 31 2018 Severin Gehwolf - 3.6.14-9 -- Add explicit javapackages-tools requirement for weka script. - See RHBZ#1600426. - -* Sat Jul 14 2018 Fedora Release Engineering - 3.6.14-8 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - -* Fri Feb 09 2018 Fedora Release Engineering - 3.6.14-7 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - -* Thu Jan 18 2018 Igor Gnatenko - 3.6.14-6 -- Remove obsolete scriptlets - -* Thu Jul 27 2017 Fedora Release Engineering - 3.6.14-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild - -* Sat Feb 11 2017 Fedora Release Engineering - 3.6.14-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild - -* Sun Nov 06 2016 gil cattaneo 3.6.14-3 -- Rebuilt for exculde ppc ppc64 arches - -* Thu Jul 21 2016 gil cattaneo 3.6.14-2 -- remove appdata -- update launcher script with new postgresql-jdbc - -* Sat May 28 2016 gil cattaneo 3.6.14-1 -- update to 3.6.14 - -* Fri Feb 05 2016 Fedora Release Engineering - 3.6.13-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild - -* Wed Oct 14 2015 gil cattaneo 3.6.13-1 -- update to 3.6.13 -- add launcher script using %%jpackage_script -- include appdata - -* Mon Oct 12 2015 gil cattaneo 3.6.8-6 -- switch to maven -- introduce license macro -- adapt to current guideline -- remove some rpmlint problems - -* Fri Jun 19 2015 Fedora Release Engineering - 3.6.8-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild - -* Sun Jun 08 2014 Fedora Release Engineering - 3.6.8-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild - -* Sun Aug 04 2013 Fedora Release Engineering - 3.6.8-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild - -* Fri Feb 15 2013 Fedora Release Engineering - 3.6.8-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild - -* Sun Aug 19 2012 Miloš Jakubíček - 3.6.8-1 -- Update to 3.6.8 - -* Sun Jul 22 2012 Fedora Release Engineering - 3.6.7-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild - -* Tue Jul 10 2012 Miloš Jakubíček - 3.6.7-1 -- Update to 3.6.7 - -* Sat Jan 14 2012 Fedora Release Engineering - 3.6.2-6 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild - -* Mon Feb 07 2011 Fedora Release Engineering - 3.6.2-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild - -* Mon May 03 2010 Miloš Jakubíček - 3.6.2-4 -- Fix typo causing $CLASSPATH in %%{_bindir}/weka to be expanded during the build - -* Fri Apr 30 2010 Miloš Jakubíček - 3.6.2-3 -- java_cup, hsqldb, postgresql-jdbc, mysql-connector-java, sqlite added to CLASSPATH and required - (resolve BZ#587596) - -* Wed Mar 03 2010 Miloš Jakubíček - 3.6.2-2 -- Added Requires: libsvm-java (BZ#523684) - -* Sat Jan 16 2010 Milos Jakubicek - 3.6.2-1 -- Update to 3.6.2 -- Fix libsvm usage (resolves BZ#523684) -- Fix removing jars -- Added BR: jflex, java_cup >= 1:0.11a - -* Mon Jul 27 2009 Fedora Release Engineering - 3.6.0-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild - -* Sat Feb 28 2009 Milos Jakubicek - 3.6.0-3 -- Fixed desktop file name -- Added optional running junit tests into %%check, added BR:junit -- Fixed changelog entry - -* Wed Feb 25 2009 Milos Jakubicek - 3.6.0-2 -- Running gtk-update-icon-cache -- Converting icon to png, added BR:ImageMagick, changed icon path - in desktop file "weka" only -- java/java-devel R: and BR: made versioned to >= 1:1.6.0 -- removed vendor tag in desktop-file-install according to the guidelines - for new packages. - -* Wed Jan 14 2009 Milos Jakubicek - 3.6.0-1 -- Initial release.