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-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-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..3d260b6 100644 --- a/mpc.changes +++ b/mpc.changes @@ -1,3 +1,28 @@ +------------------------------------------------------------------- +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 + +- 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..3e72c3f 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/ @@ -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 @@ -52,13 +53,14 @@ 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. %prep %setup -q +%patch -p1 %build %global _lto_cflags %{_lto_cflags} -ffat-lto-objects @@ -73,10 +75,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