Accepting request 287834 from devel:libraries:c_c++
1 OBS-URL: https://build.opensuse.org/request/show/287834 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gsl?expand=0&rev=32
This commit is contained in:
parent
b690d4aaf4
commit
4d249a3537
BIN
gsl-1.16.tar.gz.sig
Normal file
BIN
gsl-1.16.tar.gz.sig
Normal file
Binary file not shown.
@ -1,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Feb 25 20:04:58 UTC 2015 - mpluskal@suse.com
|
||||||
|
|
||||||
|
- Cleanup spec file with spec-cleaner
|
||||||
|
- Add gpg keys
|
||||||
|
- Update dependencies
|
||||||
|
- Split documentation to separate package
|
||||||
|
- Run only one job for checks
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Jul 19 14:23:59 UTC 2014 - jengelh@inai.de
|
Sat Jul 19 14:23:59 UTC 2014 - jengelh@inai.de
|
||||||
|
|
||||||
|
30
gsl.keyring
Normal file
30
gsl.keyring
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||||
|
Version: GnuPG v2
|
||||||
|
|
||||||
|
mQENBFGmV38BCADRYBJRUS5FRv7LSlSY296SULeUmcNPp9enRBhN/0obENtGVJcP
|
||||||
|
rspSylN4aQnCh7io3ESWDuKaz/1frqcpLdcPAqtN7qI+u522+DiBHAWnr0AdVLXP
|
||||||
|
xllmHCqdzpgWwadGsAZ0H/u31XlkERhDNUnIFnw5HhsF2mJWX/yytusERcQbz/Ue
|
||||||
|
MJMkwHW9n0htFCYkirV38nOmDJ843JmfMmregq2+E6MsDLXBc8L0kIPUIRzvm3sV
|
||||||
|
I4WrI/SCKzl9262kOFeZXyTQ/5pFQUnnkBrbP39UlXIztSt9d1P3INAjv+e1ZZ7C
|
||||||
|
0igHwndj+upJFROdfKO/UXYTMFgQ3zc6qbJ/ABEBAAG0IlBhdHJpY2sgQWxrZW4g
|
||||||
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Whsc0TnIbnXvhKTklxVOfuUKZQw+SnGQkMK
|
||||||
|
apM30i5grtUKn5GJYFzX2GVhmCtIG7adtkvHiGXccWc9p6MFK4TRuRZ6Ut73i4l4
|
||||||
|
CpZ0eHbJMNtbHTI+9VNzgvYcUWqzDPFNOyQ1275g+cMYTCaLE2W/MHLNzUjZe5hf
|
||||||
|
3DFQjqea4ANCLyOh5IZNg5/v0KokCzz3Sruv4DQXxxWSF/jobifvFutjKqYDB4/c
|
||||||
|
8hqk0PFuiiZFESCwD7Okg9ydxG1DFhK7zyk2JRGHbmNG
|
||||||
|
=sAxL
|
||||||
|
-----END PGP PUBLIC KEY BLOCK-----
|
119
gsl.spec
119
gsl.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package gsl
|
# spec file for package gsl
|
||||||
#
|
#
|
||||||
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -16,33 +16,29 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
Name: gsl
|
|
||||||
%define lname libgsl0
|
%define lname libgsl0
|
||||||
|
Name: gsl
|
||||||
Version: 1.16
|
Version: 1.16
|
||||||
Release: 0
|
Release: 0
|
||||||
# NOTE: The package has been update to 1.10+ after all issues with
|
|
||||||
# GNU GPLv3 have been resolved.
|
|
||||||
Summary: GNU Scientific Library
|
Summary: GNU Scientific Library
|
||||||
License: GPL-3.0+
|
License: GPL-3.0+
|
||||||
Group: Productivity/Scientific/Math
|
Group: Productivity/Scientific/Math
|
||||||
|
Url: http://www.gnu.org/software/gsl/
|
||||||
Source: ftp://ftp.gnu.org/pub/gnu/gsl/gsl-%{version}.tar.gz
|
Source0: ftp://ftp.gnu.org/pub/gnu/gsl/gsl-%{version}.tar.gz
|
||||||
Patch: gsl-1.6-initvars.diff
|
Source1: ftp://ftp.gnu.org/pub/gnu/gsl/gsl-%{version}.tar.gz.sig
|
||||||
|
Source2: %{name}.keyring
|
||||||
|
Patch0: gsl-1.6-initvars.diff
|
||||||
Patch5: gsl-wrap.diff
|
Patch5: gsl-wrap.diff
|
||||||
Patch6: gsl-qawc-test-x86-precision.diff
|
Patch6: gsl-qawc-test-x86-precision.diff
|
||||||
Patch7: gsl-disable-fma.patch
|
Patch7: gsl-disable-fma.patch
|
||||||
Patch8: gsl-fsf_address.patch
|
Patch8: gsl-fsf_address.patch
|
||||||
Url: http://www.gnu.org/software/gsl/
|
BuildRequires: autoconf
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRequires: automake
|
||||||
#BuildRequires: blas latex2html
|
BuildRequires: blas-devel
|
||||||
BuildRequires: blas
|
|
||||||
%if 0%{?suse_version}
|
|
||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
%endif
|
BuildRequires: pkg-config
|
||||||
BuildRequires: pkgconfig
|
Requires(pre): %{install_info_prereq}
|
||||||
%if 0%{?fedora_version}
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
Requires: info
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The GNU Scientific Library (GSL) is a collection of routines for
|
The GNU Scientific Library (GSL) is a collection of routines for
|
||||||
@ -51,12 +47,12 @@ team in ANSI C and present a modern Applications Programming Interface
|
|||||||
(API) for C programmers, while allowing wrappers to be written for very
|
(API) for C programmers, while allowing wrappers to be written for very
|
||||||
high level languages.
|
high level languages.
|
||||||
|
|
||||||
%package -n %lname
|
%package -n %{lname}
|
||||||
Summary: GNU Scientific Library
|
Summary: GNU Scientific Library
|
||||||
License: GPL-3.0+
|
License: GPL-3.0+
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
|
|
||||||
%description -n %lname
|
%description -n %{lname}
|
||||||
The GNU Scientific Library (GSL) is a collection of routines for
|
The GNU Scientific Library (GSL) is a collection of routines for
|
||||||
numerical computing. The routines are written from scratch by the GSL
|
numerical computing. The routines are written from scratch by the GSL
|
||||||
team in ANSI C and present a modern Applications Programming Interface
|
team in ANSI C and present a modern Applications Programming Interface
|
||||||
@ -79,11 +75,8 @@ Least-Squares Fitting - Physical Constants - IEEE Floating-Point
|
|||||||
Summary: GNU Scientific Library - development files
|
Summary: GNU Scientific Library - development files
|
||||||
License: GPL-2.0+
|
License: GPL-2.0+
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: %lname = %{version}
|
Requires: %{lname} = %{version}
|
||||||
Requires: glibc-devel
|
Requires(pre): %{install_info_prereq}
|
||||||
%if 0%{?suse_version}
|
|
||||||
PreReq: %{install_info_prereq}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
This package contains the headers, static libraries and some
|
This package contains the headers, static libraries and some
|
||||||
@ -107,9 +100,36 @@ Numerical Differentiation - Chebyshev Approximation - Series Acceleration -
|
|||||||
Discrete Hankel Transforms - Root-Finding - Minimization -
|
Discrete Hankel Transforms - Root-Finding - Minimization -
|
||||||
Least-Squares Fitting - Physical Constants - IEEE Floating-Point
|
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 -
|
||||||
|
Least-Squares Fitting - Physical Constants - IEEE Floating-Point
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch -p1
|
%patch0 -p1
|
||||||
%patch5 -p1
|
%patch5 -p1
|
||||||
%patch6
|
%patch6
|
||||||
%patch7 -p1
|
%patch7 -p1
|
||||||
@ -117,32 +137,26 @@ Least-Squares Fitting - Physical Constants - IEEE Floating-Point
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
autoreconf -fi
|
autoreconf -fi
|
||||||
RPM_OPT_FLAGS=`echo "$RPM_OPT_FLAGS" | sed 's/-fstack-protector//'`
|
RPM_OPT_FLAGS=`echo "%{optflags}" | sed 's/-fstack-protector//'`
|
||||||
#export CFLAGS="%%{optflags} -fno-strict-aliasing"
|
|
||||||
export CFLAGS="%{optflags}"
|
export CFLAGS="%{optflags}"
|
||||||
%configure --disable-static --with-pic --enable-shared --with-gnu-ld
|
%configure \
|
||||||
|
--disable-static \
|
||||||
|
--with-pic \
|
||||||
|
--enable-shared \
|
||||||
|
--with-gnu-ld
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
# 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
|
%check
|
||||||
%if ! 0%{?qemu_user_space_build}
|
make check --jobs 1
|
||||||
make %{?_smp_mflags} check || true
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%makeinstall
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
||||||
%{__rm} -f %{buildroot}%{_libdir}/*.la
|
find %{buildroot} -type f -name "*.la" -delete -print
|
||||||
%{__rm} -f %{buildroot}%{_infodir}/dir
|
rm -f %{buildroot}%{_infodir}/dir
|
||||||
|
|
||||||
%post -n %lname -p /sbin/ldconfig
|
%post -n %{lname} -p /sbin/ldconfig
|
||||||
%postun -n %lname -p /sbin/ldconfig
|
|
||||||
|
%postun -n %{lname} -p /sbin/ldconfig
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
@ -150,28 +164,33 @@ make %{?_smp_mflags} check || true
|
|||||||
%{_bindir}/gsl-randist
|
%{_bindir}/gsl-randist
|
||||||
%doc %{_mandir}/man1/gsl-histogram.1.gz
|
%doc %{_mandir}/man1/gsl-histogram.1.gz
|
||||||
%doc %{_mandir}/man1/gsl-randist.1.gz
|
%doc %{_mandir}/man1/gsl-randist.1.gz
|
||||||
%doc AUTHORS BUGS COPYING ChangeLog NEWS README THANKS TODO
|
%doc COPYING
|
||||||
|
|
||||||
%files -n %lname
|
%files -n %{lname}
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
%doc COPYING
|
||||||
%{_libdir}/libgsl*.so.0*
|
%{_libdir}/libgsl*.so.0*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
%doc COPYING
|
||||||
%{_includedir}/gsl
|
%{_includedir}/gsl
|
||||||
%{_libdir}/libgsl*.so
|
%{_libdir}/libgsl*.so
|
||||||
%{_libdir}/pkgconfig/gsl.pc
|
%{_libdir}/pkgconfig/gsl.pc
|
||||||
%{_bindir}/gsl-config
|
%{_bindir}/gsl-config
|
||||||
#%%doc doc/gsl-ref/gsl-ref*.html
|
|
||||||
%{_datadir}/aclocal/gsl.m4
|
%{_datadir}/aclocal/gsl.m4
|
||||||
%doc %{_infodir}/gsl-ref*
|
|
||||||
%doc %{_mandir}/man1/gsl-config.1.gz
|
%doc %{_mandir}/man1/gsl-config.1.gz
|
||||||
%doc %{_mandir}/man3/gsl.3.gz
|
%doc %{_mandir}/man3/gsl.3.gz
|
||||||
|
|
||||||
%post devel
|
%files doc
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%doc AUTHORS BUGS COPYING ChangeLog NEWS README THANKS TODO
|
||||||
|
%doc %{_infodir}/gsl-ref*
|
||||||
|
|
||||||
|
%post doc
|
||||||
%install_info --info-dir=%{_infodir} %{_infodir}/gsl-ref.info.gz
|
%install_info --info-dir=%{_infodir} %{_infodir}/gsl-ref.info.gz
|
||||||
|
|
||||||
%postun devel
|
%postun doc
|
||||||
%install_info_delete --info-dir=%{_infodir} %{_infodir}/gsl-ref.info.gz
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/gsl-ref.info.gz
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user