gsl.spec 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. ##
  2. ## gsl.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2004 The OpenPKG Project <http://www.openpkg.org/>
  4. ## Copyright (c) 2000-2004 Ralf S. Engelschall <rse@engelschall.com>
  5. ## Copyright (c) 2000-2004 Cable & Wireless <http://www.cw.com/>
  6. ##
  7. ## Permission to use, copy, modify, and distribute this software for
  8. ## any purpose with or without fee is hereby granted, provided that
  9. ## the above copyright notice and this permission notice appear in all
  10. ## copies.
  11. ##
  12. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  13. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  14. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  15. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  16. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  17. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  18. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  19. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  20. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  21. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  22. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  23. ## SUCH DAMAGE.
  24. ##
  25. # package information
  26. Name: gsl
  27. Summary: GNU Scientific Library
  28. URL: http://sources.redhat.com/gsl/
  29. Vendor: Mark Galassi et al.
  30. Packager: The OpenPKG Project
  31. Distribution: OpenPKG
  32. Class: EVAL
  33. Group: Algorithm
  34. License: GPL
  35. Version: 1.4
  36. Release: 20040406
  37. # list of sources
  38. Source0: ftp://ftp.gnu.org/pub/gnu/gsl/gsl-%{version}.tar.gz
  39. # build information
  40. Prefix: %{l_prefix}
  41. BuildRoot: %{l_buildroot}
  42. BuildPreReq: OpenPKG, openpkg >= 20040130
  43. PreReq: OpenPKG, openpkg >= 20040130
  44. AutoReq: no
  45. AutoReqProv: no
  46. %description
  47. The GNU Scientific Library (GSL) is a numerical library for C and
  48. C++ programmers. The library provides a wide range of mathematical
  49. routines such as random number generators, special functions and
  50. least-squares fitting. There are over 1000 functions in total.
  51. The complete range of subject areas covered by the library
  52. includes, Complex Numbers, Roots of Polynomials, Special Functions,
  53. Vectors and Matrices, Permutations, Sorting, BLAS Support, Linear
  54. Algebra, Eigensystems, Fast Fourier Transforms, Quadrature, Random
  55. Numbers, Quasi-Random Sequences, Random Distributions, Statistics,
  56. Histograms, N-Tuples, Monte Carlo Integration, Simulated Annealing,
  57. Differential Equations, Interpolation, Numerical Differentiation,
  58. Chebyshev Approximation, Series Acceleration, Discrete Hankel
  59. Transforms, Root-Finding, Minimization, Least-Squares Fitting,
  60. Physical Constants, IEEE Floating-Point.
  61. %track
  62. prog gsl = {
  63. version = %{version}
  64. url = ftp://ftp.gnu.org/gnu/gsl/
  65. regex = gsl-(__VER__)\.tar\.gz
  66. }
  67. %prep
  68. %setup -q
  69. %build
  70. CC="%{l_cc}" \
  71. CFLAGS="%{l_cflags -O}" \
  72. ./configure \
  73. --prefix=%{l_prefix} \
  74. --disable-shared
  75. %{l_make} %{l_mflags -O}
  76. %install
  77. rm -rf $RPM_BUILD_ROOT
  78. %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
  79. strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
  80. rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir
  81. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
  82. %{l_files_std} \
  83. '%not %dir %{l_prefix}/share/aclocal' \
  84. '%not %dir %{l_prefix}/lib/pkgconfig'
  85. %files -f files
  86. %clean
  87. rm -rf $RPM_BUILD_ROOT