|
|
@ -1,6 +1,6 @@
|
|
|
|
Name: libsvm
|
|
|
|
Name: libsvm
|
|
|
|
Version: 2.85
|
|
|
|
Version: 2.85
|
|
|
|
Release: 3%{?dist}
|
|
|
|
Release: 5%{?dist}
|
|
|
|
Summary: A Library for Support Vector Machines
|
|
|
|
Summary: A Library for Support Vector Machines
|
|
|
|
|
|
|
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
Group: Development/Libraries
|
|
|
@ -10,6 +10,9 @@ Source0: %{name}-%{version}.tar.gz
|
|
|
|
#Source0: http://www.csie.ntu.edu.tw/~cjlin/cgi-bin/libsvm.cgi?+http://www.csie.ntu.edu.tw/~cjlin/%{name}+tar.gz
|
|
|
|
#Source0: http://www.csie.ntu.edu.tw/~cjlin/cgi-bin/libsvm.cgi?+http://www.csie.ntu.edu.tw/~cjlin/%{name}+tar.gz
|
|
|
|
Source1: http://www.csie.ntu.edu.tw/~cjlin/libsvm/log
|
|
|
|
Source1: http://www.csie.ntu.edu.tw/~cjlin/libsvm/log
|
|
|
|
Source2: http://www.csie.ntu.edu.tw/~cjlin/papers/guide/guide.pdf
|
|
|
|
Source2: http://www.csie.ntu.edu.tw/~cjlin/papers/guide/guide.pdf
|
|
|
|
|
|
|
|
Source3: libsvm-svm-toy-gtk.desktop
|
|
|
|
|
|
|
|
Source4: libsvm-svm-toy-qt.desktop
|
|
|
|
|
|
|
|
Source5: LibSVM-svm-toy-48.png
|
|
|
|
Patch0: %{name}-%{version}.patch
|
|
|
|
Patch0: %{name}-%{version}.patch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
|
|
|
|
|
|
|
|
|
@ -42,9 +45,10 @@ Install this package if you want to develop programs with libsvm.
|
|
|
|
%package python
|
|
|
|
%package python
|
|
|
|
Summary: Python tools and interfaces for libsvm
|
|
|
|
Summary: Python tools and interfaces for libsvm
|
|
|
|
Group: Development/Libraries
|
|
|
|
Group: Development/Libraries
|
|
|
|
BuildRequires: python-devel >= 2.4 gawk gnuplot
|
|
|
|
BuildRequires: python-devel >= 2.4 gawk
|
|
|
|
#gnuplot is required by easy.py
|
|
|
|
#gnuplot is required by easy.py
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
Requires: gnuplot
|
|
|
|
|
|
|
|
|
|
|
|
%description python
|
|
|
|
%description python
|
|
|
|
Python tools and interfaces for libsvm.
|
|
|
|
Python tools and interfaces for libsvm.
|
|
|
@ -69,6 +73,7 @@ Summary: GTK version of svm-toy (libsvm demostration program)
|
|
|
|
Group: Development/Libraries
|
|
|
|
Group: Development/Libraries
|
|
|
|
BuildRequires: gtk2-devel
|
|
|
|
BuildRequires: gtk2-devel
|
|
|
|
BuildRequires: gtk2
|
|
|
|
BuildRequires: gtk2
|
|
|
|
|
|
|
|
BuildRequires: desktop-file-utils
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
|
|
%description svm-toy-gtk
|
|
|
|
%description svm-toy-gtk
|
|
|
@ -80,6 +85,7 @@ Summary: QT version of svm-toy (libsvm demostration program)
|
|
|
|
Group: Development/Libraries
|
|
|
|
Group: Development/Libraries
|
|
|
|
BuildRequires: qt-devel
|
|
|
|
BuildRequires: qt-devel
|
|
|
|
BuildRequires: qt
|
|
|
|
BuildRequires: qt
|
|
|
|
|
|
|
|
BuildRequires: desktop-file-utils
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
|
|
%description svm-toy-qt
|
|
|
|
%description svm-toy-qt
|
|
|
@ -89,8 +95,13 @@ display the derived separating hyperplane.
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%setup -q
|
|
|
|
%patch0 -p0 -b .bak
|
|
|
|
%patch0 -p0 -b .bak
|
|
|
|
cp ../../SOURCES/log ChangeLog
|
|
|
|
cp %{SOURCE1} ChangeLog
|
|
|
|
cp ../../SOURCES/guide.pdf .
|
|
|
|
cp %{SOURCE2} .
|
|
|
|
|
|
|
|
cp %{SOURCE3} .
|
|
|
|
|
|
|
|
cp %{SOURCE4} .
|
|
|
|
|
|
|
|
cp %{SOURCE5} libsvm-svm-toy-gtk-48.png
|
|
|
|
|
|
|
|
cp %{SOURCE5} libsvm-svm-toy-qt-48.png
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
@ -109,12 +120,35 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT LIBDIR=%{_libdir} PYTHON_VERSION="%{pyver}"
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT LIBDIR=%{_libdir} PYTHON_VERSION="%{pyver}"
|
|
|
|
#cd ${RPM_BUILD_ROOT}%{libdir_libsvm}; ln -sf %{name}.so.%{version} %{name}.so
|
|
|
|
#cd ${RPM_BUILD_ROOT}%{libdir_libsvm}; ln -sf %{name}.so.%{version} %{name}.so
|
|
|
|
rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/src
|
|
|
|
rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/src
|
|
|
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/48x48/apps/
|
|
|
|
|
|
|
|
cp libsvm-svm-toy-gtk-48.png $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/48x48/apps/
|
|
|
|
|
|
|
|
cp libsvm-svm-toy-qt-48.png $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/48x48/apps/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
desktop-file-install --delete-original --vendor=fedora \
|
|
|
|
|
|
|
|
--dir=${RPM_BUILD_ROOT}%{_datadir}/applications \
|
|
|
|
|
|
|
|
${RPM_BUILD_ROOT}/%{_datadir}/applications/libsvm-svm-toy-gtk.desktop \
|
|
|
|
|
|
|
|
${RPM_BUILD_ROOT}/%{_datadir}/applications/libsvm-svm-toy-qt.desktop \
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%post svm-toy-gtk
|
|
|
|
|
|
|
|
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 -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%postun svm-toy-gtk
|
|
|
|
|
|
|
|
touch --no-create %{_datadir}/icons/hicolor
|
|
|
|
|
|
|
|
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
|
|
|
|
|
|
|
|
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
@ -152,14 +186,23 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc svm-toy/gtk/README
|
|
|
|
%doc svm-toy/gtk/README
|
|
|
|
%{_bindir}/svm-toy-gtk
|
|
|
|
%{_bindir}/svm-toy-gtk
|
|
|
|
|
|
|
|
%{_datadir}/icons/hicolor/48x48/apps/libsvm-svm-toy-gtk-48.png
|
|
|
|
|
|
|
|
|
|
|
|
%files svm-toy-qt
|
|
|
|
%files svm-toy-qt
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc svm-toy/qt/README
|
|
|
|
%doc svm-toy/qt/README
|
|
|
|
%{_bindir}/svm-toy-qt
|
|
|
|
%{_bindir}/svm-toy-qt
|
|
|
|
|
|
|
|
%{_datadir}/icons/hicolor/48x48/apps/libsvm-svm-toy-qt-48.png
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Tue Feb 11 2008 Ding-Yi Chen <dchen@redhat.com> - 2.85-5
|
|
|
|
|
|
|
|
- [Bug 436392]: Fix by copy from right place.
|
|
|
|
|
|
|
|
- Add desktop files and icons for svm-toy-gtk and svm-toy-qt
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Feb 11 2008 Ding-Yi Chen <dchen@redhat.com> - 2.85-4
|
|
|
|
|
|
|
|
- Move gnuplot from BuildRequires to Requires
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Feb 07 2008 Ding-Yi Chen <dchen@redhat.com> - 2.85-3
|
|
|
|
* Thu Feb 07 2008 Ding-Yi Chen <dchen@redhat.com> - 2.85-3
|
|
|
|
- Fix linker name (libsvm.so)
|
|
|
|
- Fix linker name (libsvm.so)
|
|
|
|
- Linked to dynamic libraries
|
|
|
|
- Linked to dynamic libraries
|
|
|
|