forked from pool/arprec
Accepting request 402911 from home:Dmitry_R:branches:science
OBS-URL: https://build.opensuse.org/request/show/402911 OBS-URL: https://build.opensuse.org/package/show/science/arprec?expand=0&rev=4
This commit is contained in:
12
arprec-gcc6.patch
Normal file
12
arprec-gcc6.patch
Normal file
@@ -0,0 +1,12 @@
|
||||
Index: arprec-2.2.17/src/write.cpp
|
||||
===================================================================
|
||||
--- arprec-2.2.17.orig/src/write.cpp
|
||||
+++ arprec-2.2.17/src/write.cpp
|
||||
@@ -196,6 +196,6 @@ bool mp_real::write(ostream &s, int prec
|
||||
|
||||
string str = to_string(precision, width, expn_width,
|
||||
fmt, showpos, uppercase, fill);
|
||||
- return (s << str) != 0;
|
||||
+ return static_cast<bool>(s << str) != 0;
|
||||
}
|
||||
|
@@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Jun 17 11:02:27 UTC 2016 - dmitry_r@opensuse.org
|
||||
|
||||
- Fix build with GCC6 [boo#985135]
|
||||
* arprec-gcc6.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Nov 5 10:34:00 UTC 2014 - dmitry_r@opensuse.org
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package arprec
|
||||
#
|
||||
# Copyright (c) 2012 SUSE LINUX Products 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
|
||||
@@ -15,6 +15,7 @@
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%define libname libarpec0
|
||||
|
||||
Name: arprec
|
||||
@@ -26,6 +27,8 @@ Group: Development/Libraries/C and C++
|
||||
Url: http://crd-legacy.lbl.gov/~dhbailey/mpdist/
|
||||
Source0: http://crd.lbl.gov/~dhbailey/mpdist/arprec-%{version}.tar.gz
|
||||
Source1: http://crd.lbl.gov/~dhbailey/mpdist/BSD-LBNL-License.doc
|
||||
# PATCH-FIX-UPSTREAM -- Fix build with GCC6
|
||||
Patch1: arprec-gcc6.patch
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: gcc-fortran
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
@@ -71,6 +74,7 @@ developing applications that use %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch1 -p1
|
||||
cp %{SOURCE1} .
|
||||
|
||||
%build
|
||||
|
Reference in New Issue
Block a user