From 65c73175b7929b80fb0e858a28342e453905f3b7 Mon Sep 17 00:00:00 2001 From: mcepl <> Date: Sep 02 2021 21:31:02 +0000 Subject: Update mpdecimal to version 2.5.1 / rev 2 via SR 915769 https://build.opensuse.org/request/show/915769 by user mcepl + dimstar_suse - Switch on _multibuild with the separate test step (to minimize dependencies). - Add a basic baselibs.conf. --- diff --git a/.files b/.files index a6eff51..e6d7db7 100644 Binary files a/.files and b/.files differ diff --git a/.rev b/.rev index fd91b80..3d09d3c 100644 --- a/.rev +++ b/.rev @@ -7,4 +7,15 @@ Required for new builds of Python. 915292 + + 6d245e174a11b633f16c7ff86a341d40 + 2.5.1 + + dimstar_suse + - Switch on _multibuild with the separate test step (to minimize + dependencies). +- Add a basic baselibs.conf. + + 915769 + diff --git a/_multibuild b/_multibuild new file mode 100644 index 0000000..83bd4e9 --- /dev/null +++ b/_multibuild @@ -0,0 +1,3 @@ + + test + diff --git a/baselibs.conf b/baselibs.conf new file mode 100644 index 0000000..f45ecaa --- /dev/null +++ b/baselibs.conf @@ -0,0 +1,3 @@ +libmpdec++3 +libmpdec3 +mpdecimal-devel diff --git a/mpdecimal.changes b/mpdecimal.changes index 25fa32a..c215902 100644 --- a/mpdecimal.changes +++ b/mpdecimal.changes @@ -1,4 +1,11 @@ ------------------------------------------------------------------- +Thu Sep 2 13:07:52 UTC 2021 - Matej Cepl + +- Switch on _multibuild with the separate test step (to minimize + dependencies). +- Add a basic baselibs.conf. + +------------------------------------------------------------------- Tue Aug 10 00:04:52 UTC 2021 - Stefan Krah - Initial package diff --git a/mpdecimal.spec b/mpdecimal.spec index d131317..ac8ec35 100644 --- a/mpdecimal.spec +++ b/mpdecimal.spec @@ -1,5 +1,5 @@ # -# spec file for package mpdecimal +# spec file # # Copyright (c) 2021 SUSE LLC # @@ -16,7 +16,15 @@ # -Name: mpdecimal +%global flavor @BUILD_FLAVOR@%{nil} +%if "%{flavor}" == "test" +%define psuffix -test +%bcond_without test +%else +%define psuffix %{nil} +%bcond_with test +%endif +Name: mpdecimal%{psuffix} Version: 2.5.1 Release: 0 Summary: C/C++ libraries for arbitrary precision decimal floating point arithmetic @@ -25,11 +33,14 @@ Group: Development/Libraries/C and C++ URL: https://www.bytereef.org/mpdecimal/index.html Source0: https://www.bytereef.org/software/mpdecimal/releases/mpdecimal-%{version}.tar.gz Source1: http://speleotrove.com/decimal/dectest.zip +Source99: baselibs.conf BuildRequires: fdupes BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: make +%if %{with test} BuildRequires: unzip +%endif %description libmpdec is a C implementation of the General Decimal Arithmetic @@ -78,8 +89,11 @@ The package contains documentation and development headers for libmpdec and libmpdec++. %prep -%autosetup +%autosetup -p1 -n mpdecimal-%{version} + +%if %{with test} unzip -d tests/testdata %{SOURCE1} +%endif %build # NOTE: without -ffat-lto-objects the inline assembly tests in ./configure @@ -89,14 +103,19 @@ export CXXFLAGS="$CFLAGS" %configure --docdir="%{_defaultdocdir}/%{name}" %make_build -%check -%make_build check - %install +%if !%{with test} %make_install rm -f "%{buildroot}/%{_libdir}"/*.a %fdupes -s %{buildroot}/%{_docdir}/%{name} +%endif + +%check +%if %{with test} +%make_build check +%endif +%if !%{with test} %post -n libmpdec3 -p /sbin/ldconfig %post -n libmpdec++3 -p /sbin/ldconfig %postun -n libmpdec3 -p /sbin/ldconfig @@ -118,5 +137,6 @@ rm -f "%{buildroot}/%{_libdir}"/*.a %{_libdir}/libmpdec++.so %{_includedir}/mpdecimal.h %{_includedir}/decimal.hh +%endif %changelog