fann.spec 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. ##
  2. ## fann.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2006 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ## Copyright (c) 2000-2006 Ralf S. Engelschall <http://engelschall.com/>
  5. ##
  6. ## Permission to use, copy, modify, and distribute this software for
  7. ## any purpose with or without fee is hereby granted, provided that
  8. ## the above copyright notice and this permission notice appear in all
  9. ## copies.
  10. ##
  11. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  12. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  13. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  14. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  15. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  16. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  17. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  18. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  19. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  20. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  21. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  22. ## SUCH DAMAGE.
  23. ##
  24. # package information
  25. Name: fann
  26. Summary: Fast Artificial Neural Network Library
  27. URL: http://fann.sourceforge.net/
  28. Vendor: S. Nissen, E. Nemerson
  29. Packager: OpenPKG
  30. Distribution: OpenPKG
  31. Class: EVAL
  32. Group: Algorithm
  33. License: GPL
  34. Version: 2.0.0
  35. Release: 20060107
  36. # list of sources
  37. Source0: http://osdn.dl.sourceforge.net/sourceforge/fann/fann-%{version}.tar.bz2
  38. # build information
  39. Prefix: %{l_prefix}
  40. BuildRoot: %{l_buildroot}
  41. BuildPreReq: OpenPKG, openpkg >= 20040130
  42. PreReq: OpenPKG, openpkg >= 20040130
  43. AutoReq: no
  44. AutoReqProv: no
  45. %description
  46. Fann is a C library implementing multilayer feedforward networks
  47. with support for both fully connected and sparse connected networks.
  48. Fann offers support for execution in fixed point arithmetic to allow
  49. for fast execution on systems with no floating point processor. To
  50. overcome the problems of integer overflow, the library calculates
  51. a position of the decimal point after training and guarantees that
  52. integer overflow can not occur with this decimal point.
  53. The library is designed to be fast, versatile and easy to use.
  54. Several benchmarks have been executed to test the performance of the
  55. library. The results show that the Fann library is significantly
  56. faster than other libraries on systems without a floating point
  57. processor, while the performance was comparable to other highly
  58. optimized libraries on systems with a floating point processor.
  59. %track
  60. prog fann = {
  61. version = %{version}
  62. url = http://prdownloads.sourceforge.net/fann/
  63. regex = fann-(__VER__)\.tar\.bz2
  64. }
  65. %prep
  66. %setup -q
  67. %build
  68. CC="%{l_cc}" \
  69. CFLAGS="%{l_cflags -O}" \
  70. ./configure \
  71. --prefix=%{l_prefix} \
  72. --includedir=%{l_prefix}/include/fann \
  73. --disable-shared
  74. %{l_make} %{l_mflags -O}
  75. %install
  76. rm -rf $RPM_BUILD_ROOT
  77. %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
  78. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
  79. %{l_files_std} \
  80. '%not %dir %{l_prefix}/lib/pkgconfig'
  81. %files -f files
  82. %clean
  83. rm -rf $RPM_BUILD_ROOT