|
|
@ -9,11 +9,9 @@
|
|
|
|
%global maven_group_id tw.edu.ntu.csie
|
|
|
|
%global maven_group_id tw.edu.ntu.csie
|
|
|
|
%global pom_file_version 3.17
|
|
|
|
%global pom_file_version 3.17
|
|
|
|
%global pom_file_name JPP.%{maven_group_id}-%{name}.pom
|
|
|
|
%global pom_file_name JPP.%{maven_group_id}-%{name}.pom
|
|
|
|
# el_version is RHEL major version, but empty in Fedora
|
|
|
|
|
|
|
|
%global el_version %(/usr/lib/rpm/redhat/dist.sh --el)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# EL <= 6 does not have enable_maven
|
|
|
|
# EL <= 6 does not have enable_maven
|
|
|
|
%if 0%{?el_version} != 0 && 0%{?el_version} <= 6
|
|
|
|
%if 0%{?rhel} != 0 && 0%{?rhel} <= 6
|
|
|
|
%global java_dependency java
|
|
|
|
%global java_dependency java
|
|
|
|
%ifarch ppc64
|
|
|
|
%ifarch ppc64
|
|
|
|
%bcond_with java
|
|
|
|
%bcond_with java
|
|
|
@ -29,7 +27,7 @@
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
# EL <= 7 python 3 is not available by default
|
|
|
|
# EL <= 7 python 3 is not available by default
|
|
|
|
%if 0%{?el_version} != 0 && 0%{?el_version} <= 7
|
|
|
|
%if 0%{?rhel} != 0 && 0%{?rhel} <= 7
|
|
|
|
%global python2_package_name libsvm-python
|
|
|
|
%global python2_package_name libsvm-python
|
|
|
|
%bcond_with python3
|
|
|
|
%bcond_with python3
|
|
|
|
%else
|
|
|
|
%else
|
|
|
@ -40,7 +38,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
Name: libsvm
|
|
|
|
Name: libsvm
|
|
|
|
Version: 3.23
|
|
|
|
Version: 3.23
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Release: 2%{?dist}
|
|
|
|
Summary: A Library for Support Vector Machines
|
|
|
|
Summary: A Library for Support Vector Machines
|
|
|
|
|
|
|
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
Group: Development/Libraries
|
|
|
@ -124,6 +122,16 @@ Requires: %{name} = %{version}-%{release}
|
|
|
|
Java tools and interfaces for libsvm.
|
|
|
|
Java tools and interfaces for libsvm.
|
|
|
|
Install this package if you want to develop
|
|
|
|
Install this package if you want to develop
|
|
|
|
programs with libsvm in Java.
|
|
|
|
programs with libsvm in Java.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package javadoc
|
|
|
|
|
|
|
|
Summary: Javadoc for libsvm
|
|
|
|
|
|
|
|
BuildRequires: java-devel >= 1.7.0
|
|
|
|
|
|
|
|
BuildRequires: jpackage-utils
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
Requires: %{name}-java = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
|
|
|
|
Javadoc for libsvm
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%package svm-toy-qt
|
|
|
|
%package svm-toy-qt
|
|
|
@ -133,7 +141,7 @@ BuildRequires: desktop-file-utils
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: qt5-qtbase-devel
|
|
|
|
BuildRequires: qt5-qtbase-devel
|
|
|
|
Requires: qt5
|
|
|
|
Requires: qt5-qtbase
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
|
|
%description svm-toy-qt
|
|
|
|
%description svm-toy-qt
|
|
|
@ -178,7 +186,7 @@ sed -i -e "s|(double)event->y()/YLEN, current_value|(double)event->y()/YLEN,(sig
|
|
|
|
%{__sed} -i 's/\r//' ChangeLog
|
|
|
|
%{__sed} -i 's/\r//' ChangeLog
|
|
|
|
make all RPM_CFLAGS="$RPM_OPT_FLAGS" LIBDIR="%{_libdir}" CPP_STD="%{cpp_std}"
|
|
|
|
make all RPM_CFLAGS="$RPM_OPT_FLAGS" LIBDIR="%{_libdir}" CPP_STD="%{cpp_std}"
|
|
|
|
%if %{with java}
|
|
|
|
%if %{with java}
|
|
|
|
make -C java
|
|
|
|
make -C java all javadoc
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
mv python/README python/README-Python
|
|
|
|
mv python/README python/README-Python
|
|
|
|
mv tools/README tools/README-Tools
|
|
|
|
mv tools/README tools/README-Tools
|
|
|
@ -192,9 +200,6 @@ cp README svm-toy/qt
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
make install DESTDIR=%{buildroot} LIBDIR=%{_libdir} LIBSVM_VER="%{version}" CPP_STD="%{cpp_std}"
|
|
|
|
make install DESTDIR=%{buildroot} LIBDIR=%{_libdir} LIBSVM_VER="%{version}" CPP_STD="%{cpp_std}"
|
|
|
|
%if %{with java}
|
|
|
|
|
|
|
|
make -C java install JAVA_TARGET_DIR="%{buildroot}/%{_javadir}"
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}/%{_datadir}/icons/hicolor/48x48/apps/
|
|
|
|
mkdir -p %{buildroot}/%{_datadir}/icons/hicolor/48x48/apps/
|
|
|
|
cp %{name}-svm-toy-qt-48.png %{buildroot}/%{_datadir}/icons/hicolor/48x48/apps/
|
|
|
|
cp %{name}-svm-toy-qt-48.png %{buildroot}/%{_datadir}/icons/hicolor/48x48/apps/
|
|
|
|
mkdir -p %{buildroot}/%{_datadir}/applications
|
|
|
|
mkdir -p %{buildroot}/%{_datadir}/applications
|
|
|
@ -245,6 +250,12 @@ cd -
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
# Java
|
|
|
|
# Java
|
|
|
|
|
|
|
|
%if %{with java}
|
|
|
|
|
|
|
|
make -C java install JAVA_TARGET_DIR="%{buildroot}/%{_javadir}"
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}/%{_javadocdir}/%{name}
|
|
|
|
|
|
|
|
cp -p -R java/docs/* %{buildroot}/%{_javadocdir}/%{name}
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with maven}
|
|
|
|
%if %{with maven}
|
|
|
|
%mvn_install
|
|
|
|
%mvn_install
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
@ -301,6 +312,8 @@ desktop-file-install --delete-original \
|
|
|
|
%if %{with maven}
|
|
|
|
%if %{with maven}
|
|
|
|
%{_javadir}/%{maven_group_id}/%{name}.jar
|
|
|
|
%{_javadir}/%{maven_group_id}/%{name}.jar
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%files javadoc
|
|
|
|
|
|
|
|
%{_javadocdir}/%{name}
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%files svm-toy-qt
|
|
|
|
%files svm-toy-qt
|
|
|
@ -310,6 +323,11 @@ desktop-file-install --delete-original \
|
|
|
|
%{_datadir}/applications/*%{name}-svm-toy-qt.desktop
|
|
|
|
%{_datadir}/applications/*%{name}-svm-toy-qt.desktop
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Thu Jul 26 2018 Ding-Yi Chen <dchen@redhat.com> - 3.23-2
|
|
|
|
|
|
|
|
- Add -javadoc subpackage
|
|
|
|
|
|
|
|
- Use macro rhel instead of el_version
|
|
|
|
|
|
|
|
- qt5 in EL should be qt5-qtbase
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jul 19 2018 Ding-Yi Chen <dchen@redhat.com> - 3.23-1
|
|
|
|
* Thu Jul 19 2018 Ding-Yi Chen <dchen@redhat.com> - 3.23-1
|
|
|
|
- Upstream update to 3.23
|
|
|
|
- Upstream update to 3.23
|
|
|
|
+ add more digits of predicted file, model file, scaled data and data
|
|
|
|
+ add more digits of predicted file, model file, scaled data and data
|
|
|
|