libtorch-vl.spec 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. %define name libtorch
  2. %define archive Torch3
  3. %define version 3.1
  4. %define release 1%{?_dist_release}
  5. %define major 3
  6. %define minor 0.0
  7. Summary: Machine-learning library
  8. Summary(ja): 機械学習ライブラリ
  9. Name: %{name}
  10. Version: %{version}
  11. Release: %{release}
  12. Source0: %{archive}src.tgz
  13. Patch0: torch3_3.1-0.diff
  14. License: BSD
  15. Group: System Environment/Libraries
  16. URL: http://www.torch.ch/
  17. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  18. Vendor: Project Vine
  19. Distribution: Vine Linux
  20. %description
  21. * A lot of things in gradient machines, that is, machines which could be learned
  22. with a gradient descent. This includes multi-layered perceptrons, radial basis
  23. functions, mixtures of experts, convolutional networks and even time-delay
  24. neural networks. In fact a lot of "modules" are available that you can plug as
  25. you want to get what you need.
  26. * Support vector machines, in classification and regression. As fast as the old
  27. stand-alone program SVMTorch II, but with the powerful environment of the
  28. library.
  29. * Ensemble models such as bagging or adaboost.
  30. * Non-parametric models such as K-nearest-neighbors, Parzen regression and
  31. Parzen density estimator.
  32. * Distributions stuff, like Kmeans, Gaussian mixture models, hidden Markov
  33. models, input-output hidden Markov models, and Bayes classifier.
  34. * Speech recognition tools (Embedded training and large vocabulary decoding).
  35. %package devel
  36. Summary: Development files for Torch: Machine-learning library
  37. Group: Development/Libraries
  38. Requires: libtorch
  39. %description devel
  40. Development files for Torch: Machine-learning library.
  41. %prep
  42. %setup -q -n %{archive}
  43. %patch0 -p1
  44. %build
  45. %__make depend
  46. %__make
  47. %install
  48. rm -rf ${RPM_BUILD_ROOT}
  49. %__install -D -m 0644 lib/%{name}.a ${RPM_BUILD_ROOT}%{_libdir}/libtorch.a
  50. %__install -m 0644 lib/%{name}.so.%{major}.%{minor} ${RPM_BUILD_ROOT}%{_libdir}
  51. %__install -d ${RPM_BUILD_ROOT}%{_includedir}/torch
  52. %__install -m 0644 */*.h ${RPM_BUILD_ROOT}%{_includedir}/torch
  53. cd ${RPM_BUILD_ROOT}%{_libdir}
  54. %__ln_s %{name}.so.%{major}.%{minor} %{name}.so.%{major}
  55. %__ln_s %{name}.so.%{major}.%{minor} %{name}.so
  56. %clean
  57. rm -rf ${RPM_BUILD_ROOT}
  58. %files
  59. %defattr(-,root,root)
  60. %doc ChangeLog LICENSE
  61. %{_libdir}/%{name}.so.*
  62. %files devel
  63. %defattr(-,root,root)
  64. %{_libdir}/%{name}.a
  65. %{_libdir}/%{name}.so
  66. %{_includedir}/torch/*.h
  67. %changelog
  68. * Mon Sep 29 2008 Shu KONNO <owa@bg.wakwak.com> 3.1-1vl5
  69. - applied new versioning policy, spec in utf-8
  70. - use macros for library and include path
  71. * Sat Jun 16 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.1-0vl2
  72. - rebuilt with new toolchain
  73. * Sat Mar 11 2006 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 3.1-0vl1
  74. - add Summary(ja)
  75. * Thu Mar 9 2006 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 3.1-0vl0.5
  76. - change package name from torch to libtorch
  77. - add Patch0 (from Debian stable)
  78. - add devel package
  79. * Tue Dec 27 2005 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 3.1-0vl0.4
  80. - integrate devel package into main package
  81. * Sat Dec 24 2005 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 3.1-0vl0.3
  82. - add version dependencies to -devel package
  83. * Sat Dec 24 2005 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 3.1-0vl0.2
  84. - add -devel package
  85. * Sat Dec 24 2005 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 3.1-0vl0.1
  86. - initial build for Vine Linux