# # spec file for package gsl (Version 1.12) # # Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Name: gsl #BuildRequires: blas latex2html BuildRequires: blas Version: 1.12 Release: 1 License: GPL v3 or later # NOTE: The package has been update to 1.10+ after all issues with # GNU GPLv3 have been resolved. Group: Development/Libraries/C and C++ #Provides: AutoReqProv: on Summary: GNU Scientific Library Source: ftp://ftp.gnu.org/pub/gnu/gsl/gsl-%{version}.tar.bz2 Patch: gsl-1.6-initvars.diff Patch5: gsl-wrap.diff Patch6: qawc-test-x86-precision.diff Url: http://www.gnu.org/software/gsl/ Prefix: /usr BuildRoot: %{_tmppath}/%{name}-%{version}-build %description The GNU Scientific Library (GSL) is a collection of routines for numerical computing. The routines are written from scratch by the GSL team in ANSI C and present a modern Applications Programming Interface (API) for C programmers, while allowing wrappers to be written for very high level languages. The library covers the following areas: Complex Numbers Roots of Polynomials Special Functions Vectors and Matrices Permutations Sorting BLAS Support Linear Algebra Eigensystems Fast Fourier Transforms Quadrature Random Numbers Quasi-Random Sequences Random Distributions Statistics Histograms N-Tuples Monte Carlo Integration Simulated Annealing Differential Equations Interpolation Numerical Differentiation Chebyshev Series Acceleration Approximation Discrete Hankel Root-Finding Minimization Transforms Least-Squares Fitting Physical Constants IEEE Floating-Point Authors: -------- Mark Galassi Jim Davies James Theiler Brian Gough Reid Priedhorsky Gerard Jungman Michael Booth Fabrice Rossi %package devel License: GPL v2 or later Summary: GNU Scientific Library - development files Group: Development/Libraries/C and C++ Requires: gsl = %{version} glibc-devel PreReq: %{install_info_prereq} %description devel This package contains the headers, static libraries and some documentation for GSL. The GNU Scientific Library (GSL) is a collection of routines for numerical computing. The routines are written from scratch by the GSL team in ANSI C, and present a modern Applications Programming Interface (API) for C programmers, while allowing wrappers to be written for very high level languages. The library covers the following areas, Complex Numbers Roots of Polynomials Special Functions Vectors and Matrices Permutations Sorting BLAS Support Linear Algebra Eigensystems Fast Fourier Transforms Quadrature Random Numbers Quasi-Random Sequences Random Distributions Statistics Histograms N-Tuples Monte Carlo Integration Simulated Annealing Differential Equations Interpolation Numerical Differentiation Chebyshev Series Acceleration Approximation Discrete Hankel Root-Finding Minimization Transforms Least-Squares Fitting Physical Constants IEEE Floating-Point Authors: -------- Mark Galassi Jim Davies James Theiler Brian Gough Reid Priedhorsky Gerard Jungman Michael Booth Fabrice Rossi %prep %setup -q %patch -p1 %patch5 -p1 %patch6 -p1 autoreconf -fi %build RPM_OPT_FLAGS=`echo "$RPM_OPT_FLAGS" | sed 's/-fstack-protector//'` %ifarch i386 i486 i586 i686 x86_64 # We could add -msse2 -mpfmath=sse here ... CFLAGS="$RPM_OPT_FLAGS -O3 -finline-limit=720 --param max-inline-insns-auto=160 -funroll-loops -fno-strict-aliasing -funit-at-a-time -ftree-vectorize -momit-leaf-frame-pointer" \ %configure --disable-static --with-pic --enable-shared --with-gnu-ld %else CFLAGS="$RPM_OPT_FLAGS -O3 -finline-limit=720 --param max-inline-insns-auto=160 -funroll-loops -fno-strict-aliasing -funit-at-a-time -ftree-vectorize" \ %configure --disable-static --with-pic --enable-shared --with-gnu-ld %endif make %{?jobs:-j%jobs} # latex2html (dvips) is braindead in its rejection of '.' in a dir name # the following fails right now, disable it: #cd .. #mv %{name}-%{version} %{name} #cd %{name}/doc #texi2html -l2h -menu -split_chapter -glossary gsl-ref.texi #cd ../.. #mv %{name} %{name}-%{version} %check make check %install make install DESTDIR=$RPM_BUILD_ROOT %{__rm} -f %{buildroot}%{_libdir}/*.la %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root) %{_libdir}/libgsl*.so.* /usr/bin/gsl-histogram /usr/bin/gsl-randist %doc %{_mandir}/man1/gsl-histogram.1.gz %doc %{_mandir}/man1/gsl-randist.1.gz %doc AUTHORS BUGS COPYING ChangeLog NEWS README THANKS TODO %files devel %defattr(-,root,root) /usr/include/gsl %{_libdir}/libgsl*.so %{_libdir}/pkgconfig/gsl.pc /usr/bin/gsl-config #%doc doc/gsl-ref/gsl-ref*.html /usr/share/aclocal/gsl.m4 %doc %{_infodir}/gsl-ref* %doc %{_mandir}/man1/gsl-config.1.gz %doc %{_mandir}/man3/gsl.3.gz %post devel %install_info --info-dir=%{_infodir} %{_infodir}/gsl-ref.info.gz %postun devel %install_info_delete --info-dir=%{_infodir} %{_infodir}/gsl-ref.info.gz %clean rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_DIR/gsl-%{version} %changelog