2007-01-16 00:15:52 +01:00
|
|
|
#
|
2011-07-18 10:09:54 +02:00
|
|
|
# spec file for package gsl
|
2007-01-16 00:15:52 +01:00
|
|
|
#
|
2011-07-18 10:10:05 +02:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:15:52 +01:00
|
|
|
#
|
2008-09-12 18:03:23 +02:00
|
|
|
# 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.
|
|
|
|
|
2007-01-16 00:15:52 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-09-12 18:03:23 +02:00
|
|
|
|
2007-01-16 00:15:52 +01:00
|
|
|
Name: gsl
|
2009-07-30 22:35:24 +02:00
|
|
|
#BuildRequires: blas latex2html
|
|
|
|
BuildRequires: blas
|
2010-12-08 14:54:42 +01:00
|
|
|
%if 0%{?suse_version}
|
|
|
|
BuildRequires: pkg-config
|
2011-10-16 12:47:01 +02:00
|
|
|
BuildRequires: libtool
|
2010-12-08 14:54:42 +01:00
|
|
|
%else
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
%endif
|
|
|
|
%if 0%{?fedora_version}
|
|
|
|
Requires: info
|
|
|
|
%endif
|
2011-07-18 10:09:54 +02:00
|
|
|
Version: 1.15
|
2010-12-08 14:55:10 +01:00
|
|
|
Release: 1
|
2011-12-06 18:16:27 +01:00
|
|
|
License: GPL-3.0+
|
2008-09-12 18:03:23 +02:00
|
|
|
# NOTE: The package has been update to 1.10+ after all issues with
|
|
|
|
# GNU GPLv3 have been resolved.
|
2007-01-16 00:15:52 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
#Provides:
|
2007-11-09 00:58:44 +01:00
|
|
|
AutoReqProv: on
|
2007-01-16 00:15:52 +01:00
|
|
|
Summary: GNU Scientific Library
|
|
|
|
Source: ftp://ftp.gnu.org/pub/gnu/gsl/gsl-%{version}.tar.bz2
|
|
|
|
Patch: gsl-1.6-initvars.diff
|
2007-11-09 00:58:44 +01:00
|
|
|
Patch5: gsl-wrap.diff
|
2009-07-30 22:35:24 +02:00
|
|
|
Patch6: qawc-test-x86-precision.diff
|
2007-11-09 00:58:44 +01:00
|
|
|
Url: http://www.gnu.org/software/gsl/
|
2007-01-16 00:15:52 +01:00
|
|
|
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:
|
|
|
|
|
2011-10-02 10:10:39 +02:00
|
|
|
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 Approximation - Series Acceleration -
|
|
|
|
Discrete Hankel Transforms - Root-Finding - Minimization -
|
|
|
|
Least-Squares Fitting - Physical Constants - IEEE Floating-Point
|
2007-01-16 00:15:52 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Mark Galassi <rosalia@lanl.gov>
|
|
|
|
Jim Davies <jimmyd@nis.lanl.gov>
|
|
|
|
James Theiler <jt@nis.lanl.gov>
|
|
|
|
Brian Gough <bjg@network-theory.co.uk>
|
|
|
|
Reid Priedhorsky <rp@lanl.gov>
|
|
|
|
Gerard Jungman <jungman@lanl.gov>
|
|
|
|
Michael Booth <booth@debian.org>
|
|
|
|
Fabrice Rossi <rossi@ufrmd.dauphine.fr>
|
|
|
|
|
|
|
|
%package devel
|
2011-12-06 18:16:27 +01:00
|
|
|
License: GPL-2.0+
|
2007-01-16 00:15:52 +01:00
|
|
|
Summary: GNU Scientific Library - development files
|
|
|
|
Group: Development/Libraries/C and C++
|
2007-11-09 00:58:44 +01:00
|
|
|
Requires: gsl = %{version} glibc-devel
|
2010-12-08 14:54:42 +01:00
|
|
|
%if 0%{?suse_version}
|
2007-11-09 00:58:44 +01:00
|
|
|
PreReq: %{install_info_prereq}
|
2010-12-08 14:54:42 +01:00
|
|
|
%endif
|
2007-01-16 00:15:52 +01:00
|
|
|
|
|
|
|
%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,
|
|
|
|
|
2011-10-02 10:10:39 +02:00
|
|
|
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 Approximation - Series Acceleration -
|
|
|
|
Discrete Hankel Transforms - Root-Finding - Minimization -
|
|
|
|
Least-Squares Fitting - Physical Constants - IEEE Floating-Point
|
2007-01-16 00:15:52 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Mark Galassi <rosalia@lanl.gov>
|
|
|
|
Jim Davies <jimmyd@nis.lanl.gov>
|
|
|
|
James Theiler <jt@nis.lanl.gov>
|
|
|
|
Brian Gough <bjg@network-theory.co.uk>
|
|
|
|
Reid Priedhorsky <rp@lanl.gov>
|
|
|
|
Gerard Jungman <jungman@lanl.gov>
|
|
|
|
Michael Booth <booth@debian.org>
|
|
|
|
Fabrice Rossi <rossi@ufrmd.dauphine.fr>
|
|
|
|
|
|
|
|
%prep
|
2009-07-30 22:35:24 +02:00
|
|
|
%setup -q
|
2007-01-16 00:15:52 +01:00
|
|
|
%patch -p1
|
2007-11-09 00:58:44 +01:00
|
|
|
%patch5 -p1
|
2011-10-02 10:10:39 +02:00
|
|
|
%patch6
|
2007-01-16 00:15:52 +01:00
|
|
|
|
|
|
|
%build
|
2011-10-02 10:10:39 +02:00
|
|
|
autoreconf -fi
|
2007-11-09 00:58:44 +01:00
|
|
|
RPM_OPT_FLAGS=`echo "$RPM_OPT_FLAGS" | sed 's/-fstack-protector//'`
|
2011-10-02 10:10:39 +02:00
|
|
|
CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" \
|
2010-12-08 14:54:42 +01:00
|
|
|
%configure --disable-static --with-pic --enable-shared --with-gnu-ld --infodir=%{_infodir}
|
2007-01-16 00:15:52 +01:00
|
|
|
make %{?jobs:-j%jobs}
|
2007-02-07 19:34:23 +01:00
|
|
|
# latex2html (dvips) is braindead in its rejection of '.' in a dir name
|
2009-07-30 22:35:24 +02:00
|
|
|
# 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}
|
2007-01-16 00:15:52 +01:00
|
|
|
|
2007-11-09 00:58:44 +01:00
|
|
|
%check
|
2011-10-02 10:10:39 +02:00
|
|
|
%if ! 0%{?qemu_user_space_build}
|
2009-07-30 22:35:24 +02:00
|
|
|
make check
|
2011-10-02 10:10:39 +02:00
|
|
|
%endif
|
2007-11-09 00:58:44 +01:00
|
|
|
|
2007-01-16 00:15:52 +01:00
|
|
|
%install
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
2009-01-19 01:52:50 +01:00
|
|
|
%{__rm} -f %{buildroot}%{_libdir}/*.la
|
2010-12-08 14:54:42 +01:00
|
|
|
%{__rm} -f %{buildroot}%{_infodir}/dir
|
2007-01-16 00:15:52 +01:00
|
|
|
|
2007-04-17 00:32:17 +02:00
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
2007-01-16 00:15:52 +01:00
|
|
|
%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
|
2007-11-09 00:58:44 +01:00
|
|
|
%doc AUTHORS BUGS COPYING ChangeLog NEWS README THANKS TODO
|
2007-01-16 00:15:52 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
/usr/include/gsl
|
|
|
|
%{_libdir}/libgsl*.so
|
|
|
|
%{_libdir}/pkgconfig/gsl.pc
|
|
|
|
/usr/bin/gsl-config
|
2009-07-30 22:35:24 +02:00
|
|
|
#%doc doc/gsl-ref/gsl-ref*.html
|
2007-01-16 00:15:52 +01:00
|
|
|
/usr/share/aclocal/gsl.m4
|
|
|
|
%doc %{_infodir}/gsl-ref*
|
|
|
|
%doc %{_mandir}/man1/gsl-config.1.gz
|
|
|
|
%doc %{_mandir}/man3/gsl.3.gz
|
|
|
|
|
2007-11-09 00:58:44 +01:00
|
|
|
%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
|
|
|
|
|
2007-01-16 00:15:52 +01:00
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
rm -rf $RPM_BUILD_DIR/gsl-%{version}
|
2008-09-12 18:03:23 +02:00
|
|
|
|
2007-03-15 01:38:58 +01:00
|
|
|
%changelog
|