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
|
|
|
#
|
2016-07-26 12:55:43 +02:00
|
|
|
# Copyright (c) 2016 SUSE LINUX 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/
|
|
|
|
#
|
|
|
|
|
2008-09-12 18:03:23 +02:00
|
|
|
|
2016-07-26 12:55:43 +02:00
|
|
|
%define lname libgsl19
|
2015-03-01 14:57:39 +01:00
|
|
|
Name: gsl
|
2016-07-26 12:55:43 +02:00
|
|
|
Version: 2.1
|
2012-03-28 00:00:58 +02:00
|
|
|
Release: 0
|
2007-01-16 00:15:52 +01:00
|
|
|
Summary: GNU Scientific Library
|
2012-03-28 00:00:58 +02:00
|
|
|
License: GPL-3.0+
|
2014-07-27 08:25:40 +02:00
|
|
|
Group: Productivity/Scientific/Math
|
2015-03-01 14:57:39 +01:00
|
|
|
Url: http://www.gnu.org/software/gsl/
|
|
|
|
Source0: ftp://ftp.gnu.org/pub/gnu/gsl/gsl-%{version}.tar.gz
|
|
|
|
Source1: ftp://ftp.gnu.org/pub/gnu/gsl/gsl-%{version}.tar.gz.sig
|
|
|
|
Source2: %{name}.keyring
|
|
|
|
Patch0: gsl-1.6-initvars.diff
|
2007-11-09 00:58:44 +01:00
|
|
|
Patch5: gsl-wrap.diff
|
2012-03-29 11:40:42 +02:00
|
|
|
Patch6: gsl-qawc-test-x86-precision.diff
|
|
|
|
Patch7: gsl-disable-fma.patch
|
|
|
|
Patch8: gsl-fsf_address.patch
|
2016-07-26 12:55:43 +02:00
|
|
|
# PATCH-FIX-UPSTREAM gsl-disable-multifit-test.patch -- Disable multifit test, knows issue for 32-bit systems
|
|
|
|
Patch9: gsl-disable-multifit-test.patch
|
|
|
|
# PATCH-FIX-UPSTREAM gsl-rstat-test-powerpc.patch
|
|
|
|
Patch10: gsl-rstat-test-powerpc.patch
|
2015-03-01 14:57:39 +01:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: blas-devel
|
2014-07-27 08:25:40 +02:00
|
|
|
BuildRequires: libtool
|
2015-03-01 14:57:39 +01:00
|
|
|
BuildRequires: pkg-config
|
|
|
|
Requires(pre): %{install_info_prereq}
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2007-01-16 00:15:52 +01:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
2015-03-01 14:57:39 +01:00
|
|
|
%package -n %{lname}
|
2014-07-27 08:25:40 +02:00
|
|
|
Summary: GNU Scientific Library
|
|
|
|
License: GPL-3.0+
|
|
|
|
Group: System/Libraries
|
|
|
|
|
2015-03-01 14:57:39 +01:00
|
|
|
%description -n %{lname}
|
2014-07-27 08:25:40 +02:00
|
|
|
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.
|
|
|
|
|
2007-01-16 00:15:52 +01:00
|
|
|
The library covers the following areas:
|
|
|
|
|
2015-03-01 14:57:39 +01:00
|
|
|
Complex Numbers - Roots of Polynomials - Special Functions -
|
2011-10-02 10:10:39 +02:00
|
|
|
Vectors and Matrices - Permutations - Sorting - BLAS Support -
|
2015-03-01 14:57:39 +01:00
|
|
|
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 -
|
2011-10-02 10:10:39 +02:00
|
|
|
Least-Squares Fitting - Physical Constants - IEEE Floating-Point
|
2007-01-16 00:15:52 +01:00
|
|
|
|
2012-03-29 11:40:42 +02:00
|
|
|
%package devel
|
2007-01-16 00:15:52 +01:00
|
|
|
Summary: GNU Scientific Library - development files
|
2012-03-28 00:00:58 +02:00
|
|
|
License: GPL-2.0+
|
2007-01-16 00:15:52 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2015-03-01 14:57:39 +01:00
|
|
|
Requires: %{lname} = %{version}
|
|
|
|
Requires(pre): %{install_info_prereq}
|
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,
|
|
|
|
|
2015-03-01 14:57:39 +01:00
|
|
|
Complex Numbers - Roots of Polynomials - Special Functions -
|
2011-10-02 10:10:39 +02:00
|
|
|
Vectors and Matrices - Permutations - Sorting - BLAS Support -
|
2015-03-01 14:57:39 +01:00
|
|
|
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
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
Summary: GNU Scientific Library - development files
|
|
|
|
License: GPL-2.0+
|
|
|
|
Group: Documentation
|
|
|
|
Requires(pre): %{install_info_prereq}
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
This package contains 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 Approximation - Series Acceleration -
|
|
|
|
Discrete Hankel Transforms - Root-Finding - Minimization -
|
2011-10-02 10:10:39 +02:00
|
|
|
Least-Squares Fitting - Physical Constants - IEEE Floating-Point
|
2007-01-16 00:15:52 +01:00
|
|
|
|
|
|
|
%prep
|
2009-07-30 22:35:24 +02:00
|
|
|
%setup -q
|
2015-03-01 14:57:39 +01:00
|
|
|
%patch0 -p1
|
2007-11-09 00:58:44 +01:00
|
|
|
%patch5 -p1
|
2015-03-01 14:57:39 +01:00
|
|
|
%patch6
|
2012-03-28 00:00:58 +02:00
|
|
|
%patch7 -p1
|
2012-03-29 11:40:42 +02:00
|
|
|
%patch8
|
2016-07-26 12:55:43 +02:00
|
|
|
%ifarch %ix86
|
2015-06-12 20:27:10 +02:00
|
|
|
%patch9 -p1
|
2016-07-26 12:55:43 +02:00
|
|
|
%endif
|
|
|
|
%ifarch ppc ppc64 ppc64le
|
|
|
|
%patch10 -p1
|
|
|
|
%endif
|
2007-01-16 00:15:52 +01:00
|
|
|
|
|
|
|
%build
|
2011-10-02 10:10:39 +02:00
|
|
|
autoreconf -fi
|
2015-03-01 14:57:39 +01:00
|
|
|
RPM_OPT_FLAGS=`echo "%{optflags}" | sed 's/-fstack-protector//'`
|
2012-03-29 11:40:42 +02:00
|
|
|
export CFLAGS="%{optflags}"
|
2015-03-01 14:57:39 +01:00
|
|
|
%configure \
|
|
|
|
--disable-static \
|
|
|
|
--with-pic \
|
|
|
|
--enable-shared \
|
|
|
|
--with-gnu-ld
|
2012-03-28 00:00:58 +02:00
|
|
|
make %{?_smp_mflags}
|
2007-01-16 00:15:52 +01:00
|
|
|
|
2007-11-09 00:58:44 +01:00
|
|
|
%check
|
2015-03-01 14:57:39 +01:00
|
|
|
make check --jobs 1
|
2007-11-09 00:58:44 +01:00
|
|
|
|
2007-01-16 00:15:52 +01:00
|
|
|
%install
|
2015-03-01 14:57:39 +01:00
|
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
|
|
rm -f %{buildroot}%{_infodir}/dir
|
2007-01-16 00:15:52 +01:00
|
|
|
|
2015-03-01 14:57:39 +01:00
|
|
|
%post -n %{lname} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n %{lname} -p /sbin/ldconfig
|
2007-04-17 00:32:17 +02:00
|
|
|
|
2007-01-16 00:15:52 +01:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2012-03-29 11:40:42 +02:00
|
|
|
%{_bindir}/gsl-histogram
|
|
|
|
%{_bindir}/gsl-randist
|
2007-01-16 00:15:52 +01:00
|
|
|
%doc %{_mandir}/man1/gsl-histogram.1.gz
|
|
|
|
%doc %{_mandir}/man1/gsl-randist.1.gz
|
2015-03-01 14:57:39 +01:00
|
|
|
%doc COPYING
|
2007-01-16 00:15:52 +01:00
|
|
|
|
2015-03-01 14:57:39 +01:00
|
|
|
%files -n %{lname}
|
2014-07-27 08:25:40 +02:00
|
|
|
%defattr(-,root,root)
|
2015-03-01 14:57:39 +01:00
|
|
|
%doc COPYING
|
2016-07-26 12:55:43 +02:00
|
|
|
%{_libdir}/libgsl*.so.*
|
2014-07-27 08:25:40 +02:00
|
|
|
|
2007-01-16 00:15:52 +01:00
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2015-03-01 14:57:39 +01:00
|
|
|
%doc COPYING
|
2012-03-29 11:40:42 +02:00
|
|
|
%{_includedir}/gsl
|
2007-01-16 00:15:52 +01:00
|
|
|
%{_libdir}/libgsl*.so
|
|
|
|
%{_libdir}/pkgconfig/gsl.pc
|
2012-03-29 11:40:42 +02:00
|
|
|
%{_bindir}/gsl-config
|
|
|
|
%{_datadir}/aclocal/gsl.m4
|
2007-01-16 00:15:52 +01:00
|
|
|
%doc %{_mandir}/man1/gsl-config.1.gz
|
|
|
|
%doc %{_mandir}/man3/gsl.3.gz
|
|
|
|
|
2015-03-01 14:57:39 +01:00
|
|
|
%files doc
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc AUTHORS BUGS COPYING ChangeLog NEWS README THANKS TODO
|
|
|
|
%doc %{_infodir}/gsl-ref*
|
|
|
|
|
|
|
|
%post doc
|
2007-11-09 00:58:44 +01:00
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/gsl-ref.info.gz
|
|
|
|
|
2015-03-01 14:57:39 +01:00
|
|
|
%postun doc
|
2007-11-09 00:58:44 +01:00
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/gsl-ref.info.gz
|
|
|
|
|
2007-03-15 01:38:58 +01:00
|
|
|
%changelog
|