Compare commits
5 Commits
723f1aa8c1
...
314342fc4d
Author | SHA1 | Date |
---|---|---|
Fedora Release Engineering | 314342fc4d | |
Tom Stellard | 994414c868 | |
Jeff Law | e0e5bb3843 | |
Jaroslav Škarvada | 37dd5029d6 | |
Jaroslav Škarvada | 9ea3902a5e |
|
@ -0,0 +1,18 @@
|
|||
diff -ur mpdecimal-2.5.0/libmpdec++/decimal.hh mpdecimal-2.5.0/libmpdec++/decimal.hh
|
||||
--- mpdecimal-2.5.0/libmpdec++/decimal.hh 2020-06-27 21:41:49.000000000 +0200
|
||||
+++ mpdecimal-2.5.0/libmpdec++/decimal.hh 2020-08-05 13:39:26.570886524 +0200
|
||||
@@ -47,9 +47,13 @@
|
||||
#include "mpdecimal.h"
|
||||
|
||||
|
||||
+#undef iscanonical /* math.h */
|
||||
#undef isfinite /* math.h */
|
||||
+#undef isinf /* math.h */
|
||||
#undef isnan /* math.h */
|
||||
+#undef isnormal /* math.h */
|
||||
#undef issubnormal /* math.h */
|
||||
+#undef iszero /* math.h */
|
||||
#undef isspecial /* ctype.h */
|
||||
|
||||
#ifdef _MSC_VER
|
||||
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
Name: mpdecimal
|
||||
Version: 2.5.0
|
||||
Release: 1%{?dist}
|
||||
Release: 4%{?dist}
|
||||
Summary: Library for general decimal arithmetic
|
||||
License: BSD
|
||||
|
||||
|
@ -11,10 +11,14 @@ URL: http://www.bytereef.org/mpdecimal/index.html
|
|||
Source0: http://www.bytereef.org/software/mpdecimal/releases/mpdecimal-%{version}.tar.gz
|
||||
Source1: http://speleotrove.com/decimal/dectest.zip
|
||||
|
||||
BuildRequires: make
|
||||
BuildRequires: gcc
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: unzip
|
||||
|
||||
# Patch provided by upstream
|
||||
Patch0: mpdecimal-2.5.0-tests-fix.patch
|
||||
|
||||
%description
|
||||
The package contains a library limpdec implementing General Decimal Arithmetic
|
||||
Specification. The specification, written by Mike Cowlishaw from IBM, defines
|
||||
|
@ -43,15 +47,14 @@ Provides: bundled(js-underscore) = 1.4.4
|
|||
The package contains documentation for the mpdecimal library.
|
||||
|
||||
%prep
|
||||
%autosetup
|
||||
%autosetup -p1
|
||||
unzip -d tests/testdata %{SOURCE1}
|
||||
|
||||
%build
|
||||
# configure tests try to compile code containing ASMs to a .o file
|
||||
# In an LTO world, that always works as compilation does not happen until
|
||||
# link time. As a result we get the wrong results from configure.
|
||||
# Disable LTO.
|
||||
%define _lto_cflags %{nil}
|
||||
# Force -ffat-lto-objects so that configure tests are assembled which
|
||||
# is required for ASM configure tests. -ffat-lto-objects is the default
|
||||
# for F33, but will not be the default in F34
|
||||
#define _lto_cflags -flto=auto -ffat-lto-objects
|
||||
|
||||
%configure
|
||||
make %{?_smp_mflags}
|
||||
|
@ -90,6 +93,15 @@ fi
|
|||
%ldconfig_scriptlets
|
||||
|
||||
%changelog
|
||||
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.0-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
* Mon Aug 31 2020 Jeff Law <law@redhat.com> - 2.5.0-3
|
||||
- Force -ffat-lto-objects and re-enable LTO
|
||||
|
||||
* Thu Aug 6 2020 Jaroslav Škarvada <jskarvad@redhat.com> - 2.5.0-2
|
||||
- Re-enabled tests
|
||||
|
||||
* Wed Aug 5 2020 Jaroslav Škarvada <jskarvad@redhat.com> - 2.5.0-1
|
||||
- New version
|
||||
Resolves: rhbz#1851761
|
||||
|
|
Loading…
Reference in New Issue