Accepting request 403452 from devel:libraries:c_c++

1

OBS-URL: https://build.opensuse.org/request/show/403452
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gsl?expand=0&rev=34
This commit is contained in:
Dominique Leuenberger 2016-07-26 10:55:43 +00:00 committed by Git OBS Bridge
parent c17287f785
commit 6edef63f9c
9 changed files with 137 additions and 89 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:73bc2f51b90d2a780e6d266d43e487b3dbd78945dd0b04b14ca5980fe28d2f53
size 3534080

Binary file not shown.

3
gsl-2.1.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:59ad06837397617f698975c494fe7b2b698739a59e2fcf830b776428938a0c66
size 3827265

BIN
gsl-2.1.tar.gz.sig Normal file

Binary file not shown.

View File

@ -0,0 +1,67 @@
Index: gsl-2.1/multifit/Makefile.am
===================================================================
--- gsl-2.1.orig/multifit/Makefile.am
+++ gsl-2.1/multifit/Makefile.am
@@ -13,61 +13,7 @@ lmpar.c \
lmset.c \
lmiterate.c \
lmmisc.c \
-qrsolv.c \
-test_bard.c \
-test_beale.c \
-test_biggs.c \
-test_box.c \
-test_boxbod.c \
-test_brown1.c \
-test_brown2.c \
-test_brown3.c \
-test_eckerle.c \
-test_enso.c \
-test_estimator.c \
-test_exp1.c \
-test_filip.c \
-test_gaussian.c \
-test_hahn1.c \
-test_helical.c \
-test_jennrich.c \
-test_kirby2.c \
-test_kowalik.c \
-test_lin1.c \
-test_lin2.c \
-test_lin3.c \
-test_linear.c \
-test_longley.c \
-test_meyer.c \
-test_meyerscal.c \
-test_nelson.c \
-test_nonlinear.c \
-test_osborne.c \
-test_penalty1.c \
-test_penalty2.c \
-test_pontius.c \
-test_powell1.c \
-test_powell2.c \
-test_powell3.c \
-test_rat42.c \
-test_rat43.c \
-test_reg.c \
-test_rosenbrock.c \
-test_rosenbrocke.c \
-test_roth.c \
-test_shaw.c \
-test_thurber.c \
-test_vardim.c \
-test_watson.c \
-test_wnlin.c \
-test_wood.c
-
-check_PROGRAMS = test #demo
-
-TESTS = $(check_PROGRAMS)
-
-test_SOURCES = test.c
-test_LDADD = libgslmultifit.la ../linalg/libgsllinalg.la ../permutation/libgslpermutation.la ../blas/libgslblas.la ../cblas/libgslcblas.la ../matrix/libgslmatrix.la ../sort/libgslsort.la ../statistics/libgslstatistics.la ../vector/libgslvector.la ../block/libgslblock.la ../complex/libgslcomplex.la ../ieee-utils/libgslieeeutils.la ../err/libgslerr.la ../test/libgsltest.la ../utils/libutils.la ../sys/libgslsys.la ../rng/libgslrng.la ../specfunc/libgslspecfunc.la
+qrsolv.c
#demo_SOURCES = demo.c
#demo_LDADD = libgslmultifit.la ../linalg/libgsllinalg.la ../permutation/libgslpermutation.la ../blas/libgslblas.la ../cblas/libgslcblas.la ../matrix/libgslmatrix.la ../vector/libgslvector.la ../block/libgslblock.la ../randist/libgslrandist.la ../rng/libgslrng.la ../complex/libgslcomplex.la ../ieee-utils/libgslieeeutils.la ../err/libgslerr.la ../test/libgsltest.la ../utils/libutils.la ../sys/libgslsys.la

View File

@ -0,0 +1,14 @@
diff -up gsl-2.1/test/results.c.than gsl-2.1/test/results.c
--- gsl-2.1/test/results.c.than 2016-03-10 18:08:17.013928401 -0500
+++ gsl-2.1/test/results.c 2016-03-10 18:42:45.717980023 -0500
@@ -131,6 +131,10 @@ gsl_test_rel (double result, double expe
{
status = -1;
}
+ else if (fabs(result-expected) < relative_error)
+ {
+ status = 0;
+ }
else if (expected != 0 )
{
status = (fabs(result-expected)/fabs(expected) > relative_error) ;

View File

@ -1,81 +0,0 @@
From 9cc12d0377dd634b1b97954d076b715f982853b7 Mon Sep 17 00:00:00 2001
From: Patrick Alken <alken@colorado.edu>
Date: Fri, 04 Apr 2014 19:36:16 +0000
Subject: bug fix in sorting of complex numbers (bug #39055)
---
diff --git a/poly/test.c b/poly/test.c
index 9c147f6..d090802 100644
--- a/poly/test.c
+++ b/poly/test.c
@@ -25,11 +25,21 @@
#include <gsl/gsl_poly.h>
#include <gsl/gsl_heapsort.h>
+/* sort by Re(z) then by Im(z) */
static int
cmp_cplx(const double *a, const double *b)
{
- double t = (a[0] * a[0] + a[1] * a[1]) - (b[0] * b[0] + b[1] * b[1]);
- return t < 0.0 ? -1 : t > 0.0 ? 1 : 0;
+ double r = a[0] - b[0];
+
+ if (r == 0.0)
+ {
+ double t = a[1] - b[1];
+ return t < 0.0 ? -1 : t > 0.0 ? 1 : 0;
+ }
+ else if (r < 0.0)
+ return -1;
+ else
+ return 1;
}
int
@@ -534,25 +544,26 @@ main (void)
Problem reported by Munagala Ramanath (bug #39055)
*/
- double a[16] = { 32, -48, -8, 28, -8, 16, -16, 12, -16, 6, 10, -17, 10, 2, -4, 1 };
+ double a[16] = { 32, -48, -8, 28, -8, 16, -16, 12,
+ -16, 6, 10, -17, 10, 2, -4, 1 };
double z[16*2];
- double expected[16*20] = {
- 1.0000000000000000, 0.00000000000000000,
- 1.0000000000000000, 0.00000000000000000,
- -1.0000000000000000, 0.00000000000000000,
- -0.65893856175240950, 0.83459757287426684,
- -0.65893856175240950, -0.83459757287426684,
- -0.070891117403341281, -1.1359249087587791,
- -0.070891117403341281, 1.1359249087587791,
- 1.1142366961812986, -0.48083981203389980,
- 1.1142366961812986, 0.48083981203389980,
- -1.3066982484920768, 0.00000000000000000,
- 0.57284747839410854, 1.1987808988289705,
- 0.57284747839410854, -1.1987808988289705,
- -1.6078107423472359, 0.00000000000000000,
- 2.0000000000000000, 0.00000000000000000,
- 2.0000000000000000, 0.00000000000000000 };
+ double expected[16*2] = {
+ -1.6078107423472359, 0.00000000000000000,
+ -1.3066982484920768, 0.00000000000000000,
+ -1.0000000000000000, 0.00000000000000000,
+ -0.65893856175240950, -0.83459757287426684,
+ -0.65893856175240950, 0.83459757287426684,
+ -0.070891117403341281, -1.1359249087587791,
+ -0.070891117403341281, 1.1359249087587791,
+ 0.57284747839410854, -1.1987808988289705,
+ 0.57284747839410854, 1.1987808988289705,
+ 1.0000000000000000, 0.00000000000000000,
+ 1.0000000000000000, 0.00000000000000000,
+ 1.1142366961812986, -0.48083981203389980,
+ 1.1142366961812986, 0.48083981203389980,
+ 2.0000000000000000, 0.00000000000000000,
+ 2.0000000000000000, 0.00000000000000000 };
int i;
--
cgit v0.9.0.2

View File

@ -1,3 +1,43 @@
-------------------------------------------------------------------
Sat Jun 18 20:39:30 UTC 2016 - dmitry_r@opensuse.org
- Update to version 2.1
* added gsl_multifit_linear_rcond() to compute reciprocal
condition number of least squares matrix
* added gsl_multilarge module for large linear least squares
systems
New in version 2.0
* added L-curve analysis routines for linear Tikhonov regression
* add running statistics module
* added bilinear and bicubic interpolation
* added function gsl_multifit_robust_residuals to compute robust
fit residuals
* added Steffen monotonic interpolation method
* added new nonlinear least squares solver 'lmniel' suitable for
systems with large numbers of data
* nonlinear least squares solver now tracks the number of function
Jacobian evaluations, see example program for details
* the 'fdf' field of gsl_multifit_function_fdf is now deprecated
and does not need to be specified for nonlinear least squares
problems
* added extensive test suite to nonlinear least squares module,
resulting in a few minor bug fixes; the routine
gsl_multifit_fdfsolver_driver has been rewritten (with API change)
to handle the various error codes of the lmsder iterate
routine, resulting in a high level caller which is highly robust
for a wide class of problems
* added support for sparse matrices, including a GMRES
iterative linear solver
* added routines gsl_linalg_givens and gsl_linalg_givens_gv
for Givens rotations
* added Tikhonov (ridge) regularization to least squares module
(linear and nonlinear)
* Drop obsolete gsl-sorting-complex-numbers.patch
- Disable multifit test for 32-bit systems
* gsl-disable-multifit-test.patch
- Fix build on PowerPC systems
* gsl-rstat-test-powerpc.patch
-------------------------------------------------------------------
Mon Jun 8 07:25:20 UTC 2015 - dimstar@opensuse.org

View File

@ -1,7 +1,7 @@
#
# spec file for package gsl
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -16,9 +16,9 @@
#
%define lname libgsl0
%define lname libgsl19
Name: gsl
Version: 1.16
Version: 2.1
Release: 0
Summary: GNU Scientific Library
License: GPL-3.0+
@ -32,7 +32,10 @@ Patch5: gsl-wrap.diff
Patch6: gsl-qawc-test-x86-precision.diff
Patch7: gsl-disable-fma.patch
Patch8: gsl-fsf_address.patch
Patch9: gsl-sorting-complex-numbers.patch
# 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
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: blas-devel
@ -135,7 +138,12 @@ Least-Squares Fitting - Physical Constants - IEEE Floating-Point
%patch6
%patch7 -p1
%patch8
%ifarch %ix86
%patch9 -p1
%endif
%ifarch ppc ppc64 ppc64le
%patch10 -p1
%endif
%build
autoreconf -fi
@ -171,7 +179,7 @@ rm -f %{buildroot}%{_infodir}/dir
%files -n %{lname}
%defattr(-,root,root)
%doc COPYING
%{_libdir}/libgsl*.so.0*
%{_libdir}/libgsl*.so.*
%files devel
%defattr(-,root,root)