[libsvm/f13/master] Update libsvm.spec
Ding-Yi Chen
dchen at fedoraproject.org
Mon Nov 8 02:29:20 UTC 2010
commit 082636dfd3c78018a6261412c972f2b82c6b59bc
Author: Ding-Yi Chen <dingyichen at gmail.com>
Date: Mon Nov 8 12:31:29 2010 +1000
Update libsvm.spec
libsvm.spec | 315 +++++++++++++++++++++++++++++------------------------------
1 files changed, 157 insertions(+), 158 deletions(-)
---
diff --git a/libsvm.spec b/libsvm.spec
index 3beca2d..7f4cc8d 100644
--- a/libsvm.spec
+++ b/libsvm.spec
@@ -42,31 +42,31 @@ Obsoletes: libsvm-java < 2.88-1
%description
LIBSVM is an integrated software for support vector classification,
- (C-SVC, nu-SVC ), regression (epsilon-SVR, nu-SVR) and distribution
- estimation (one-class SVM ). It supports multi-class classification.
+(C-SVC, nu-SVC ), regression (epsilon-SVR, nu-SVR) and distribution
+estimation (one-class SVM ). It supports multi-class classification.
- %package devel
- Summary: Header file, object file, and source files of libsvm in C, C++ and Java
- Group: Development/Libraries
- BuildRequires: glibc-devel gawk
- Requires: %{name} = %{version}-%{release}
+%package devel
+Summary: Header file, object file, and source files of libsvm in C, C++ and Java
+Group: Development/Libraries
+BuildRequires: glibc-devel gawk
+Requires: %{name} = %{version}-%{release}
- %description devel
- Header file, object file of libsvm in C, C++ and Java.
- Install this package if you want to develop programs with libsvm.
+%description devel
+Header file, object file of libsvm in C, C++ and Java.
+Install this package if you want to develop programs with libsvm.
- %package python
- Summary: Python tools and interfaces for libsvm
- Group: Development/Libraries
- BuildRequires: python-devel >= 2.4 gawk
+%package python
+Summary: Python tools and interfaces for libsvm
+Group: Development/Libraries
+BuildRequires: python-devel >= 2.4 gawk
#gnuplot is required by easy.py
- Requires: %{name} = %{version}-%{release}
+Requires: %{name} = %{version}-%{release}
Requires: gnuplot
%description python
Python 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 Python.
%ifnarch ppc ppc64
@@ -82,174 +82,174 @@ Requires: %{name} = %{version}-%{release}
%description java
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.
%endif
- %package svm-toy-gtk
+%package svm-toy-gtk
Summary: GTK version of svm-toy (libsvm demonstration program)
- Group: Development/Libraries
- BuildRequires: gtk2-devel
- BuildRequires: desktop-file-utils
- Requires: gtk2
- Requires: %{name} = %{version}-%{release}
+Group: Development/Libraries
+BuildRequires: gtk2-devel
+BuildRequires: desktop-file-utils
+Requires: gtk2
+Requires: %{name} = %{version}-%{release}
- %description svm-toy-gtk
- svm-toy is a libsvm demonstration program which has a gtk-GUI to
- display the derived separating hyperplane.
+%description svm-toy-gtk
+svm-toy is a libsvm demonstration program which has a gtk-GUI to
+display the derived separating hyperplane.
- %package svm-toy-qt
+%package svm-toy-qt
Summary: QT version of svm-toy (libsvm demonstration program)
- Group: Development/Libraries
- BuildRequires: desktop-file-utils
- BuildRequires: pkgconfig
-
- BuildRequires: qt4-devel
- Requires: qt4
- Requires: %{name} = %{version}-%{release}
-
- %description svm-toy-qt
- svm-toy is a libsvm demonstration program which has a qt-GUI to
- display the derived separating hyperplane.
-
- %prep
- %setup -q
- %patch0 -p0 -b .packageMain
- %patch1 -p0 -b .pythonDir
- %patch2 -p0 -b .javaDir
- %patch3 -p0 -b .svm-toy
- %patch4 -p0 -b .toolsDir
- cp %{SOURCE1} ChangeLog
- cp %{SOURCE2} .
- cp %{SOURCE3} .
- cp %{SOURCE4} .
- cp %{SOURCE5} %{name}-svm-toy-gtk-48.png
- cp %{SOURCE5} %{name}-svm-toy-qt-48.png
-
-
-
- %build
- %{__sed} -i 's/\r//' FAQ.html
- %{__sed} -i 's/\r//' ChangeLog
- make all RPM_CFLAGS="$RPM_OPT_FLAGS" PYTHON_VERSION="%{pyver}" JAVAC="%{javac}" JAR="%{jar}" LIBDIR="%{_libdir}" MOC_PATH="%{moc_path}" NO_JAVA="%{no_java}"
- mv python/README python/README-Python
- mv tools/README tools/README-Tools
- cp README java/README-Java
- cp README svm-toy/gtk
- cp README svm-toy/qt
-
-
- %install
- rm -rf $RPM_BUILD_ROOT
- make install DESTDIR=$RPM_BUILD_ROOT LIBDIR=%{_libdir} PYTHON_VERSION="%{pyver}" LIBSVM_VER="%{version}" NO_JAVA="%{no_java}" JAVA_TARGET_DIR="${RPM_BUILD_ROOT}/%{_javadir}"
- ln -sf %{name}.so.1 ${RPM_BUILD_ROOT}%{_libdir}/%{name}.so
- rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/src
- mkdir -p $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/48x48/apps/
- cp %{name}-svm-toy-gtk-48.png $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/48x48/apps/
- cp %{name}-svm-toy-qt-48.png $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/48x48/apps/
- mkdir -p $RPM_BUILD_ROOT/%{_datadir}/applications
- cp %{name}-svm-toy-gtk.desktop $RPM_BUILD_ROOT/%{_datadir}/applications
- cp %{name}-svm-toy-qt.desktop $RPM_BUILD_ROOT/%{_datadir}/applications
+Group: Development/Libraries
+BuildRequires: desktop-file-utils
+BuildRequires: pkgconfig
+
+BuildRequires: qt4-devel
+Requires: qt4
+Requires: %{name} = %{version}-%{release}
+
+%description svm-toy-qt
+svm-toy is a libsvm demonstration program which has a qt-GUI to
+display the derived separating hyperplane.
+
+%prep
+%setup -q
+%patch0 -p0 -b .packageMain
+%patch1 -p0 -b .pythonDir
+%patch2 -p0 -b .javaDir
+%patch3 -p0 -b .svm-toy
+%patch4 -p0 -b .toolsDir
+cp %{SOURCE1} ChangeLog
+cp %{SOURCE2} .
+cp %{SOURCE3} .
+cp %{SOURCE4} .
+cp %{SOURCE5} %{name}-svm-toy-gtk-48.png
+cp %{SOURCE5} %{name}-svm-toy-qt-48.png
+
+
+
+%build
+%{__sed} -i 's/\r//' FAQ.html
+%{__sed} -i 's/\r//' ChangeLog
+make all RPM_CFLAGS="$RPM_OPT_FLAGS" PYTHON_VERSION="%{pyver}" JAVAC="%{javac}" JAR="%{jar}" LIBDIR="%{_libdir}" MOC_PATH="%{moc_path}" NO_JAVA="%{no_java}"
+mv python/README python/README-Python
+mv tools/README tools/README-Tools
+cp README java/README-Java
+cp README svm-toy/gtk
+cp README svm-toy/qt
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT LIBDIR=%{_libdir} PYTHON_VERSION="%{pyver}" LIBSVM_VER="%{version}" NO_JAVA="%{no_java}" JAVA_TARGET_DIR="${RPM_BUILD_ROOT}/%{_javadir}"
+ln -sf %{name}.so.1 ${RPM_BUILD_ROOT}%{_libdir}/%{name}.so
+rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/src
+mkdir -p $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/48x48/apps/
+cp %{name}-svm-toy-gtk-48.png $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/48x48/apps/
+cp %{name}-svm-toy-qt-48.png $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/48x48/apps/
+mkdir -p $RPM_BUILD_ROOT/%{_datadir}/applications
+cp %{name}-svm-toy-gtk.desktop $RPM_BUILD_ROOT/%{_datadir}/applications
+cp %{name}-svm-toy-qt.desktop $RPM_BUILD_ROOT/%{_datadir}/applications
# [Bug 521194] Python: 'import libsvm' doesn't work
- echo -e "# This file is not in the original libsvm tarball, but added for convenience of import libsvm.\n\
+echo -e "# This file is not in the original libsvm tarball, but added for convenience of import libsvm.\n\
# This file is released under BSD license, just like the rest of the package.\n"\
- > $RPM_BUILD_ROOT/%{libsvm_python_dir}/__init__.py
+ > $RPM_BUILD_ROOT/%{libsvm_python_dir}/__init__.py
- desktop-file-install --delete-original --vendor=fedora \
- --dir=${RPM_BUILD_ROOT}%{_datadir}/applications \
- ${RPM_BUILD_ROOT}/%{_datadir}/applications/%{name}-svm-toy-gtk.desktop \
- ${RPM_BUILD_ROOT}/%{_datadir}/applications/%{name}-svm-toy-qt.desktop \
+desktop-file-install --delete-original --vendor=fedora \
+ --dir=${RPM_BUILD_ROOT}%{_datadir}/applications \
+ ${RPM_BUILD_ROOT}/%{_datadir}/applications/%{name}-svm-toy-gtk.desktop \
+ ${RPM_BUILD_ROOT}/%{_datadir}/applications/%{name}-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
+%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
+%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
- rm -rf $RPM_BUILD_ROOT
+%clean
+rm -rf $RPM_BUILD_ROOT
- %files
+%files
%defattr(-,root,root,-)
- %doc COPYRIGHT FAQ.html ChangeLog guide.pdf
- %{_bindir}/svm-predict
- %{_bindir}/svm-scale
- %{_bindir}/svm-train
- %dir %{_datadir}/%{name}
- %{_datadir}/%{name}/examples
- %{_libdir}/%{name}.so.2
+%doc COPYRIGHT FAQ.html ChangeLog guide.pdf
+%{_bindir}/svm-predict
+%{_bindir}/svm-scale
+%{_bindir}/svm-train
+%dir %{_datadir}/%{name}
+%{_datadir}/%{name}/examples
+%{_libdir}/%{name}.so.2
- %files devel
+%files devel
%defattr(-,root,root,-)
- %doc README
- %{_includedir}/%{name}/
- %{_libdir}/%{name}.so
+%doc README
+%{_includedir}/%{name}/
+%{_libdir}/%{name}.so
- %files python
+%files python
%defattr(-,root,root,-)
- %doc python/README-Python tools/README-Tools
- %{libsvm_python_dir}
+%doc python/README-Python tools/README-Tools
+%{libsvm_python_dir}
- %ifnarch ppc ppc64
- %files java
+%ifnarch ppc ppc64
+%files java
%defattr(-,root,root,-)
- %doc java/README-Java java/test_applet.html
- %{_javadir}/%{name}.jar
+%doc java/README-Java java/test_applet.html
+%{_javadir}/%{name}.jar
#%{_datadir}/javadoc/%{name}-%{version}
- %endif
+%endif
- %files svm-toy-gtk
+%files svm-toy-gtk
%defattr(-,root,root,-)
- %doc svm-toy/gtk/README
- %{_bindir}/svm-toy-gtk
- %{_datadir}/icons/hicolor/48x48/apps/%{name}-svm-toy-gtk-48.png
- %{_datadir}/applications/fedora-%{name}-svm-toy-gtk.desktop
+%doc svm-toy/gtk/README
+%{_bindir}/svm-toy-gtk
+%{_datadir}/icons/hicolor/48x48/apps/%{name}-svm-toy-gtk-48.png
+%{_datadir}/applications/fedora-%{name}-svm-toy-gtk.desktop
- %files svm-toy-qt
+%files svm-toy-qt
%defattr(-,root,root,-)
- %doc svm-toy/qt/README
- %{_bindir}/svm-toy-qt
- %{_datadir}/icons/hicolor/48x48/apps/%{name}-svm-toy-qt-48.png
- %{_datadir}/applications/fedora-%{name}-svm-toy-qt.desktop
-
-
- %changelog
- * Mon Nov 08 2010 Ding-Yi Chen <dchen at redhat.com> - 3.0-1
- - Fixed the spelling errors of svm-toy-gtk and svm-toy-qt
- - Upstream update:
- * Move model structure to svm.h
-* Two functions for freeing a model (content or the whole model)
- * QD from Qfloat to double (better precision because SSE on 64-bit machines less accurate than i387 on 32-bit
- * exit status for checkdata.py
- * old python interface (swig) is removed
-
- * Wed Jul 21 2010 David Malcolm <dmalcolm at redhat.com> - 2.91-2
- - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
-
- * Wed Apr 07 2010 Ding-Yi Chen <dchen at redhat.com> - 2.91-1
- - Fixed Bug 564887 - FTBFS libsvm-2.90-3.fc13
- - Upstream update:
- * completely new python interface using ctype
- * new way to set the print_string function
- * Java: able to load model from a BufferedReader directly
- * fix grid.py so -log2c can be run under python 2.6 or after
+%doc svm-toy/qt/README
+%{_bindir}/svm-toy-qt
+%{_datadir}/icons/hicolor/48x48/apps/%{name}-svm-toy-qt-48.png
+%{_datadir}/applications/fedora-%{name}-svm-toy-qt.desktop
+
+
+%changelog
+* Mon Nov 08 2010 Ding-Yi Chen <dchen at redhat.com> - 3.0-1
+- Fixed the spelling errors of svm-toy-gtk and svm-toy-qt
+- Upstream update:
+ * Move model structure to svm.h
+ * Two functions for freeing a model (content or the whole model)
+ * QD from Qfloat to double (better precision because SSE on 64-bit machines less accurate than i387 on 32-bit
+ * exit status for checkdata.py
+ * old python interface (swig) is removed
+
+* Wed Jul 21 2010 David Malcolm <dmalcolm at redhat.com> - 2.91-2
+- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
+
+* Wed Apr 07 2010 Ding-Yi Chen <dchen at redhat.com> - 2.91-1
+- Fixed Bug 564887 - FTBFS libsvm-2.90-3.fc13
+- Upstream update:
+ * completely new python interface using ctype
+ * new way to set the print_string function
+ * Java: able to load model from a BufferedReader directly
+ * fix grid.py so -log2c can be run under python 2.6 or after
* Thu Nov 05 2009 Ding-Yi Chen <dchen at redhat.com> - 2.90-2
- Obsoletes libsvm-java for ppc and ppc64.
@@ -270,12 +270,12 @@ Summary: QT version of svm-toy (libsvm demonstration program)
* Wed Sep 16 2009 Ding-Yi Chen <dchen at redhat.com> - 2.89-3
- Fix the building for EL-5
- Note that libsvm-java on ppc and ppc64 for EL-5 is excluded,
+ Note that libsvm-java on ppc and ppc64 for EL-5 is excluded,
as java-1.6.0-openjdk-devel for them do not exist yet.
- Change the Java buildrequires from java-sdk to java-1.6.0-openjdk-devel
- Fix [Bug 521194] Python: 'import libsvm' doesn't work.
By adding __init__.py to libsvm_python_dir
-
+
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.89-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
@@ -283,7 +283,7 @@ Summary: QT version of svm-toy (libsvm demonstration program)
- Upstream Update to 2.89:
+ reduce input/loading time of svm-train/svm-predict by half
+ pointer function so users can specify their own outputs
- + remove info_flush()
+ + remove info_flush()
+ a extern variable libsvm_version
+ svm-train -q option (disable outputs)
+ svm-scale: warning if more nonzero produced
@@ -292,7 +292,7 @@ Summary: QT version of svm-toy (libsvm demonstration program)
* Mon Nov 10 2008 Ding-Yi Chen <dchen at redhat.com> - 2.88-2
- Fix java BuildRequire and Build
-- javadoc have been removed because ppc and ppc64 do not have a
+- javadoc have been removed because ppc and ppc64 do not have a
suitable package to build javadoc in F-8, nor does javadoc
provide much useful information.
@@ -322,7 +322,7 @@ Summary: QT version of svm-toy (libsvm demonstration program)
* Thu Apr 29 2008 Ding-Yi Chen <dchen at redhat.com> - 2.86-13
- Fix svm-toy-qt clear button does not clear.
(from Hsiang-Fu Yu in National Taiwan University)
-
+
* Thu Apr 3 2008 Ding-Yi Chen <dchen at redhat.com> - 2.86-12
- Correct changelog date
@@ -337,10 +337,10 @@ Summary: QT version of svm-toy (libsvm demonstration program)
- Upstream update to 2.86
- svm-scale for java
- version number in svm.h and svm.m4
- - rename svmtrain.exe to svm-train.exe
+ - rename svmtrain.exe to svm-train.exe
- python: while 1 --> while True, Popen -> call
- show best parameters on the contour of grid.py
-- LIBSVM_VER_MAJOR and LIBSVM_VER_MINOR are defined in libsvm.spec instead in
+- LIBSVM_VER_MAJOR and LIBSVM_VER_MINOR are defined in libsvm.spec instead in
* Tue Mar 11 2008 Ding-Yi Chen <dchen at redhat.com> - 2.85-6
- Fix build error.
@@ -379,7 +379,7 @@ Summary: QT version of svm-toy (libsvm demonstration program)
- Add gnuplot dependency for libsvm-python, as tools/easy.py needs it.
* Mon Dec 03 2007 Ding-Yi Chen <dchen at redhat.com> - 2.84-7
-- [Bug 254091] Review Request: libsvm - A Library for Support Vector Machines (Comment #12)
+- [Bug 254091] Review Request: libsvm - A Library for Support Vector Machines (Comment #12)
* Thu Sep 26 2007 Ding-Yi Chen <dchen at redhat.com> - 2.84-6
- Add defattr to each subpackage
@@ -407,4 +407,3 @@ Summary: QT version of svm-toy (libsvm demonstration program)
* Fri Aug 17 2007 Ding-Yi Chen <dchen at redhat.com> - 2.84-0
- initial packaging
-
More information about the scm-commits
mailing list