Compare commits
36 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
629e5f3c72 | ||
|
|
50c52ff767 | ||
|
|
d9374c0441 | ||
|
|
61dd82d4ca | ||
|
|
7fb1506b79 | ||
|
|
20b9f9339e | ||
| 455459f0e7 | |||
|
|
d05123e7d4 | ||
|
|
69f0d15ddc | ||
|
|
81eae18e96 | ||
|
|
9532626fac | ||
|
|
7e2195036e | ||
|
|
66df0683ef | ||
|
|
e6e6f2f155 | ||
|
|
311bc31f6d | ||
|
|
b1a072d6e8 | ||
|
|
8658356298 | ||
|
|
ce7c102b9b | ||
|
|
c498692009 | ||
|
|
d7831d7554 | ||
|
|
0e30260e4a | ||
|
|
8aaa8b7a0f | ||
|
|
b233225776 | ||
|
|
8b9315a3ee | ||
|
|
51a85cf08a | ||
|
|
4e62f99442 | ||
|
|
7ddf2ea7a5 | ||
|
|
fe5f10963a | ||
|
|
35dd541a20 | ||
|
|
3cb97dcf2a | ||
|
|
0d95206ddf | ||
|
|
aacbac425d | ||
|
|
43342cfe54 | ||
|
|
db806e8e49 | ||
|
|
7af263a74f | ||
|
|
89b5513f6d |
7 changed files with 1 additions and 181 deletions
|
|
@ -1 +0,0 @@
|
|||
weka-3-6-0.zip
|
||||
21
Makefile
21
Makefile
|
|
@ -1,21 +0,0 @@
|
|||
# Makefile for source rpm: weka
|
||||
# $Id$
|
||||
NAME := weka
|
||||
SPECFILE = $(firstword $(wildcard *.spec))
|
||||
|
||||
define find-makefile-common
|
||||
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
||||
|
||||
ifeq ($(MAKEFILE_COMMON),)
|
||||
# attept a checkout
|
||||
define checkout-makefile-common
|
||||
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
|
||||
endif
|
||||
|
||||
include $(MAKEFILE_COMMON)
|
||||
1
dead.package
Normal file
1
dead.package
Normal file
|
|
@ -0,0 +1 @@
|
|||
Orphaned for 6+ weeks
|
||||
|
|
@ -1 +0,0 @@
|
|||
weka-3_6_0-3_fc10:HEAD:weka-3.6.0-3.fc10.src.rpm:1235909856
|
||||
1
sources
1
sources
|
|
@ -1 +0,0 @@
|
|||
a782afc9b2a84ed34db4e631545955f5 weka-3-6-0.zip
|
||||
13
weka.desktop
13
weka.desktop
|
|
@ -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;
|
||||
144
weka.spec
144
weka.spec
|
|
@ -1,144 +0,0 @@
|
|||
%global _version 3-6-0
|
||||
|
||||
# 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
|
||||
|
||||
Name: weka
|
||||
Version: 3.6.0
|
||||
Release: 3%{?dist}
|
||||
Summary: Waikato Environment for Knowledge Analysis
|
||||
|
||||
Group: Applications/Engineering
|
||||
License: GPLv2+
|
||||
URL: http://www.cs.waikato.ac.nz/ml/%{name}/
|
||||
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{_version}.zip
|
||||
# wrapper script:
|
||||
Source1: weka.desktop
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: java-devel >= 1:1.6.0
|
||||
BuildRequires: jpackage-utils
|
||||
BuildRequires: ant
|
||||
BuildRequires: desktop-file-utils
|
||||
BuildRequires: ImageMagick
|
||||
BuildRequires: junit
|
||||
|
||||
Requires: java >= 1:1.6.0
|
||||
Requires: jpackage-utils
|
||||
|
||||
%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
|
||||
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
|
||||
|
||||
%description javadoc
|
||||
This package contains the API documentation for %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{_version}
|
||||
# unzip the sources jar
|
||||
unzip %{name}-src.jar
|
||||
# remove prebuilt jars
|
||||
find -name '*.jar' -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
|
||||
|
||||
%build
|
||||
ant compile
|
||||
|
||||
%if %{?_with_tests:1}%{!?_with_tests:0}
|
||||
%check
|
||||
CLASSPATH=/usr/share/java/junit.jar ant run_tests
|
||||
%endif
|
||||
|
||||
%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}
|
||||
|
||||
# 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"
|
||||
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}.png ${RPM_BUILD_ROOT}%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%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
|
||||
%defattr(-,root,root,-)
|
||||
%{_javadir}/%{name}.jar
|
||||
%{_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
|
||||
|
||||
%files javadoc
|
||||
%defattr(-,root,root,-)
|
||||
%{_javadocdir}/%{name}
|
||||
|
||||
%changelog
|
||||
* Sat Feb 28 2009 Milos Jakubicek <xjakub@fi.muni.cz> - 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 <xjakub@fi.muni.cz> - 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 <xjakub@fi.muni.cz> - 3.6.0-1
|
||||
- Initial release.
|
||||
Loading…
Add table
Add a link
Reference in a new issue