Compare commits

...

5 Commits

Author SHA1 Message Date
Fedora Release Engineering 314342fc4d - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-26 20:53:11 +00:00
Tom Stellard 994414c868 Add BuildRequires: make
https://fedoraproject.org/wiki/Changes/Remove_make_from_BuildRoot
2021-01-07 02:03:34 +00:00
Jeff Law e0e5bb3843 Force -ffat-lto-objects and re-enable LTO 2020-08-31 12:53:00 -06:00
Jaroslav Škarvada 37dd5029d6 Re-enabled tests 2020-08-06 12:12:22 +02:00
Jaroslav Škarvada 9ea3902a5e Temporaly disabled the tests
Test suite compilation fails on s390x, aarch64 and armv7hl,
problem reported upstream

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2020-08-05 11:17:28 +02:00
2 changed files with 37 additions and 7 deletions

View File

@ -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

View File

@ -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