From d24a706aa2e340e5ce13ba28cc523ad0f70e442d7988c440455b5e36fe0a7bf5 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Wed, 14 Dec 2022 09:30:58 +0000 Subject: [PATCH 1/2] - Update to version 1.3.0. * New function: mpc_agm * New rounding modes "away from zero", indicated by the letter "A" and corresponding to MPFR_RNDA on the designated real or imaginary part. * New experimental ball arithmetic. * New experimental function: mpc_eta_fund * Bug fixes: - mpc_asin for asin(z) with small |Re(z)| and tiny |Im(z)| - mpc_pow_fr: sign of zero part of result when the base has up to sign the same real and imaginary part, and the exponent is an even positive integer - mpc_fma: the returned int value was incorrect in some cases (indicating whether the rounded real/imaginary parts were smaller/equal/greater than the exact values), but the computed complex value was correct. OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/mpc?expand=0&rev=46 --- mpc-1.2.1.tar.gz | 3 --- mpc-1.2.1.tar.gz.sig | 7 ------- mpc-1.3.0.tar.gz | 3 +++ mpc-1.3.0.tar.gz.sig | 7 +++++++ mpc.changes | 19 +++++++++++++++++++ mpc.spec | 10 ++++++---- 6 files changed, 35 insertions(+), 14 deletions(-) delete mode 100644 mpc-1.2.1.tar.gz delete mode 100644 mpc-1.2.1.tar.gz.sig create mode 100644 mpc-1.3.0.tar.gz create mode 100644 mpc-1.3.0.tar.gz.sig diff --git a/mpc-1.2.1.tar.gz b/mpc-1.2.1.tar.gz deleted file mode 100644 index 2221273..0000000 --- a/mpc-1.2.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:17503d2c395dfcf106b622dc142683c1199431d095367c6aacba6eec30340459 -size 838731 diff --git a/mpc-1.2.1.tar.gz.sig b/mpc-1.2.1.tar.gz.sig deleted file mode 100644 index dc79961..0000000 --- a/mpc-1.2.1.tar.gz.sig +++ /dev/null @@ -1,7 +0,0 @@ ------BEGIN PGP SIGNATURE----- - -iIwEABEIADQWIQStF6Ie+K7Y8cwC29n31cm/dlxh4wUCX5KefRYcYW5kcmVhcy5l -bmdlQGlucmlhLmZyAAoJEPfVyb92XGHjqAEA/RQXzaWvYWOI5LuQpMnNfg/vjwL2 -tCCcHlQXRHyCqxzaAP47BhDZajH2AGG4yeMPYQEc1yPPcjS+1kgA/Z5c5gIjiA== -=Tns3 ------END PGP SIGNATURE----- diff --git a/mpc-1.3.0.tar.gz b/mpc-1.3.0.tar.gz new file mode 100644 index 0000000..84f9f24 --- /dev/null +++ b/mpc-1.3.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0e3b12181d37207230f5a7a7ddcfc22abfc5fc9c05825e1a65401a489a432a2a +size 773441 diff --git a/mpc-1.3.0.tar.gz.sig b/mpc-1.3.0.tar.gz.sig new file mode 100644 index 0000000..33ea750 --- /dev/null +++ b/mpc-1.3.0.tar.gz.sig @@ -0,0 +1,7 @@ +-----BEGIN PGP SIGNATURE----- + +iIwEABEIADQWIQStF6Ie+K7Y8cwC29n31cm/dlxh4wUCY5NESxYcYW5kcmVhcy5l +bmdlQGlucmlhLmZyAAoJEPfVyb92XGHjlmAA/igLVZ+PPjCbrEl+HPSVWFTUsoiL +SKT14TYZr3B4+QbfAQCJxlx3R74vhYp68a296WlPGdrzkftiTSvdmDNwBroAXA== +=xdoJ +-----END PGP SIGNATURE----- diff --git a/mpc.changes b/mpc.changes index 7b9310c..94e2e2b 100644 --- a/mpc.changes +++ b/mpc.changes @@ -1,3 +1,22 @@ +------------------------------------------------------------------- +Wed Dec 14 09:25:18 UTC 2022 - Richard Biener + +- Update to version 1.3.0. + * New function: mpc_agm + * New rounding modes "away from zero", indicated by the letter "A" + and corresponding to MPFR_RNDA on the designated real or imaginary part. + * New experimental ball arithmetic. + * New experimental function: mpc_eta_fund + * Bug fixes: + - mpc_asin for asin(z) with small |Re(z)| and tiny |Im(z)| + - mpc_pow_fr: sign of zero part of result when the base has up to sign + the same real and imaginary part, and the exponent is an even + positive integer + - mpc_fma: the returned int value was incorrect in some cases + (indicating whether the rounded real/imaginary parts were + smaller/equal/greater than the exact values), but the computed + complex value was correct. + ------------------------------------------------------------------- Thu Oct 29 18:30:03 UTC 2020 - Andreas Stieger diff --git a/mpc.spec b/mpc.spec index 18b0251..e0558f5 100644 --- a/mpc.spec +++ b/mpc.spec @@ -1,7 +1,7 @@ # # spec file for package mpc # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,9 +17,9 @@ Name: mpc -Version: 1.2.1 +Version: 1.3.0 Release: 0 -Summary: MPC multiple-precision complex shared library +Summary: multiple-precision complex shared library License: LGPL-3.0-or-later Group: Development/Libraries/C and C++ URL: http://www.multiprecision.org/mpc/ @@ -52,7 +52,7 @@ Requires: libmpc3 = %{version} Requires: pkgconfig(gmp) >= 5.0.0 Requires: pkgconfig(mpfr) >= 4.1.0 Requires(post): %{install_info_prereq} -Requires(preun): %{install_info_prereq} +Requires(preun):%{install_info_prereq} %description devel MPC multiple-precision complex library development files. @@ -73,10 +73,12 @@ MPC multiple-precision complex library development files. find %{buildroot} -type f -name "*.la" -delete -print %post -n libmpc3 -p /sbin/ldconfig + %post devel %install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz %postun -n libmpc3 -p /sbin/ldconfig + %preun devel %install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz From 5dca3b48ec93ab75e5709c16e38eb9ef039d2e12ae443a703fd3357e83fed003 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Thu, 15 Dec 2022 08:13:06 +0000 Subject: [PATCH 2/2] - Add mpc-1.3.0-gmpdep.patch to avoid dependence on stdio.h when including mpc.h OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/mpc?expand=0&rev=47 --- mpc-1.3.0-gmpdep.patch | 18 ++++++++++++++++++ mpc.changes | 6 ++++++ mpc.spec | 2 ++ 3 files changed, 26 insertions(+) create mode 100644 mpc-1.3.0-gmpdep.patch diff --git a/mpc-1.3.0-gmpdep.patch b/mpc-1.3.0-gmpdep.patch new file mode 100644 index 0000000..bc03329 --- /dev/null +++ b/mpc-1.3.0-gmpdep.patch @@ -0,0 +1,18 @@ +--- mpc-1.3.0/src/mpc.h.orig 2022-12-15 09:08:32.007095010 +0100 ++++ mpc-1.3.0/src/mpc.h 2022-12-15 09:08:46.935285335 +0100 +@@ -270,6 +270,7 @@ + __MPC_DECLSPEC int mpc_inp_str (mpc_ptr, FILE *, size_t *, int, mpc_rnd_t); + __MPC_DECLSPEC size_t mpc_out_str (FILE *, int, size_t, mpc_srcptr, mpc_rnd_t); + __MPC_DECLSPEC void mpcb_out_str (FILE *f, mpcb_srcptr); ++__MPC_DECLSPEC void mpcr_out_str (FILE *f, mpcr_srcptr r); + #endif + + __MPC_DECLSPEC int mpcr_inf_p (mpcr_srcptr r); +@@ -284,7 +285,6 @@ + int64_t exp); + __MPC_DECLSPEC void mpcr_max (mpcr_ptr r, mpcr_srcptr s, mpcr_srcptr t); + __MPC_DECLSPEC int64_t mpcr_get_exp (mpcr_srcptr r); +-__MPC_DECLSPEC void mpcr_out_str (FILE *f, mpcr_srcptr r); + __MPC_DECLSPEC void mpcr_mul (mpcr_ptr r, mpcr_srcptr s, mpcr_srcptr t); + __MPC_DECLSPEC void mpcr_mul_2ui (mpcr_ptr r, mpcr_srcptr s, + unsigned long int e); diff --git a/mpc.changes b/mpc.changes index 94e2e2b..3d260b6 100644 --- a/mpc.changes +++ b/mpc.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Dec 15 08:09:45 UTC 2022 - Richard Biener + +- Add mpc-1.3.0-gmpdep.patch to avoid dependence on stdio.h when + including mpc.h + ------------------------------------------------------------------- Wed Dec 14 09:25:18 UTC 2022 - Richard Biener diff --git a/mpc.spec b/mpc.spec index e0558f5..3e72c3f 100644 --- a/mpc.spec +++ b/mpc.spec @@ -27,6 +27,7 @@ Source0: https://ftp.gnu.org/gnu/mpc/mpc-%{version}.tar.gz Source1: https://ftp.gnu.org/gnu/mpc/mpc-%{version}.tar.gz.sig Source2: %{name}.keyring Source3: baselibs.conf +Patch: mpc-1.3.0-gmpdep.patch BuildRequires: pkgconfig BuildRequires: pkgconfig(gmp) >= 5.0.0 BuildRequires: pkgconfig(mpfr) >= 4.1.0 @@ -59,6 +60,7 @@ MPC multiple-precision complex library development files. %prep %setup -q +%patch -p1 %build %global _lto_cflags %{_lto_cflags} -ffat-lto-objects