Name: torch Version: 3.1 Release: 1%{?dist} Summary: Torch is a simple machine-learning library Group: Applications/Engineering License: BSD URL: http://www.torch.ch/ Source0: http://www.torch.ch/archives/Torch3src.tgz Source1: http://www.torch.ch/archives/Torch3doc.tgz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %description Torch is a simple machine-learning library, among its features you can find: * A lot of things in gradient machines, that is, machines which could be learned with a gradient descent. This includes multi-layered perceptrons, radial bas is functions, mixtures of experts, convolutional networks and even time-delay neural networks. In fact a lot of "modules" are available that you can plug as you want to get what you need. * Support vector machines, in classification and regression. As fast as the old stand-alone program SVMTorch II, but with the powerful environment of the library. * Ensemble models such as bagging or adaboost. * Non-parametric models such as K-nearest-neighbors, Parzen regression and Parzen density estimator. * Distributions stuff, like Kmeans, Gaussian mixture models, hidden Markov models, input-output hidden Markov models, and Bayes classifier. * Speech recognition tools (Embedded training and large vocabulary decoding). %package devel Summary: Development files for %{name} Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel This package contains development files for %{name}. %prep %setup -q -n Torch3 %build ln -s config/Makefile_options_Linux . # use default gcc flags sed -i -e "s/CFLAGS_OPT_DOUBLE = -Wall -O2 -ffast-math -mcpu=i686 -march=i686 -malign-double -DUSE_DOUBLE/CFLAGS_OPT_DOUBLE = -DUSE_DOUBLE %{optflags} -fPIC -DPIC/" \ -e "s/CFLAGS_OPT_FLOAT = -Wall -O2 -ffast-math -mcpu=i686 -march=i686 -malign-double/CFLAGS_OPT_FLOAT = %{optflags} -fPIC -DPIC/" Makefile_options_Linux # add all packages to be built sed -i "s/PACKAGES =/PACKAGES = convolutions datasets decoder distributions gradients kernels matrix nonparametrics speech/" Makefile_options_Linux # we DO want to see what's going on during the build find . -name Makefile -exec sed -i 's/@$(CC) $(CFLAGS_$(MODE)) $(INCS) -o $@ -c $ LICENSE.utf8 mv LICENSE.utf8 LICENSE rm examples/LICENSE # extract the docs tar xzvf %{SOURCE1} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %clean rm -rf $RPM_BUILD_ROOT %files devel %defattr(-,root,root,-) %{_includedir}/torch %{_libdir}/libtorch.so %doc examples docs %files %defattr(-,root,root,-) %doc LICENSE ChangeLog %{_libdir}/libtorch.so.1.0.0 %{_libdir}/libtorch.so.1 %changelog * Wed Jan 28 2009 Milos Jakubicek - 3.1-1 - Initial release.