Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package mpdecimal for openSUSE:Factory 
checked in at 2021-09-02 23:20:22
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/mpdecimal (Old)
 and      /work/SRC/openSUSE:Factory/.mpdecimal.new.1899 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "mpdecimal"

Thu Sep  2 23:20:22 2021 rev:2 rq:915769 version:2.5.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/mpdecimal/mpdecimal.changes      2021-09-01 
21:37:17.920885393 +0200
+++ /work/SRC/openSUSE:Factory/.mpdecimal.new.1899/mpdecimal.changes    
2021-09-02 23:20:43.416584061 +0200
@@ -1,0 +2,7 @@
+Thu Sep  2 13:07:52 UTC 2021 - Matej Cepl <mc...@suse.com>
+
+- Switch on _multibuild with the separate test step (to minimize
+  dependencies).
+- Add a basic baselibs.conf.
+
+-------------------------------------------------------------------

New:
----
  _multibuild
  baselibs.conf

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ mpdecimal.spec ++++++
--- /var/tmp/diff_new_pack.jhhrb5/_old  2021-09-02 23:20:43.952584729 +0200
+++ /var/tmp/diff_new_pack.jhhrb5/_new  2021-09-02 23:20:43.952584729 +0200
@@ -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 @@
 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 @@
 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 @@
 %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 @@
 %{_libdir}/libmpdec++.so
 %{_includedir}/mpdecimal.h
 %{_includedir}/decimal.hh
+%endif
 
 %changelog

++++++ _multibuild ++++++
<multibuild>
  <package>test</package>
</multibuild>
++++++ baselibs.conf ++++++
libmpdec++3
libmpdec3
mpdecimal-devel

Reply via email to