Compare commits
No commits in common. "c10" and "c8" have entirely different histories.
3
.gitignore
vendored
3
.gitignore
vendored
@ -1 +1,2 @@
|
|||||||
mpc-1.3.1.tar.gz
|
SOURCES/mpc-0.9.tar.gz
|
||||||
|
SOURCES/mpc-1.1.0.tar.gz
|
||||||
|
|||||||
2
.libmpc.metadata
Normal file
2
.libmpc.metadata
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
229722d553030734d49731844abfef7617b64f1a SOURCES/mpc-0.9.tar.gz
|
||||||
|
b019d9e1d27ec5fb99497159d43a3164995de2d0 SOURCES/mpc-1.1.0.tar.gz
|
||||||
37
SOURCES/libmpc-fix-uninit-var.patch
Normal file
37
SOURCES/libmpc-fix-uninit-var.patch
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
From aed9d68b2a7e6622a7d0037d25d69d486a33825c Mon Sep 17 00:00:00 2001
|
||||||
|
From: Marek Polacek <polacek@redhat.com>
|
||||||
|
Date: Thu, 8 Oct 2020 16:27:55 -0400
|
||||||
|
Subject: [PATCH] Fix reading uninitialized value. Remove dead assignment.
|
||||||
|
|
||||||
|
* src/atan.c (mpc_atan): Initialize OK to zero.
|
||||||
|
* src/pow.c (mpc_pow): Remove dead assignment.
|
||||||
|
---
|
||||||
|
src/atan.c | 2 +-
|
||||||
|
src/pow.c | 1 -
|
||||||
|
2 files changed, 1 insertion(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/src/atan.c b/src/atan.c
|
||||||
|
index cc1922b..4e71f6f 100644
|
||||||
|
--- a/src/atan.c
|
||||||
|
+++ b/src/atan.c
|
||||||
|
@@ -143,7 +143,7 @@ mpc_atan (mpc_ptr rop, mpc_srcptr op, mpc_rnd_t rnd)
|
||||||
|
mpfr_rnd_t rnd_im, rnd_away;
|
||||||
|
mpfr_t y, z;
|
||||||
|
mpfr_prec_t p, p_im;
|
||||||
|
- int ok;
|
||||||
|
+ int ok = 0;
|
||||||
|
|
||||||
|
rnd_im = MPC_RND_IM (rnd);
|
||||||
|
mpfr_init (y);
|
||||||
|
diff --git a/src/pow.c b/src/pow.c
|
||||||
|
index 4fc90ae..0fc6932 100644
|
||||||
|
--- a/src/pow.c
|
||||||
|
+++ b/src/pow.c
|
||||||
|
@@ -685,7 +685,6 @@ mpc_pow (mpc_ptr z, mpc_srcptr x, mpc_sr
|
||||||
|
int inex_re, inex_im;
|
||||||
|
/* under- and overflow flags are set by mpc_exp */
|
||||||
|
mpc_set (z, u, MPC_RNDNN);
|
||||||
|
- ret = ret_exp;
|
||||||
|
inex_re = MPC_INEX_RE(ret_exp);
|
||||||
|
inex_im = MPC_INEX_IM(ret_exp);
|
||||||
|
if (mpfr_inf_p (mpc_realref (z)))
|
||||||
@ -1,31 +1,26 @@
|
|||||||
# build compat-libmpc for bootstrapping purposes
|
# build compat-libmpc for bootstrapping purposes
|
||||||
%global bootstrap 0
|
%global bootstrap 1
|
||||||
%global bootstrap_version 0.9
|
%global bootstrap_version 0.9
|
||||||
|
|
||||||
Summary: C library for multiple precision complex arithmetic
|
Summary: C library for multiple precision complex arithmetic
|
||||||
Name: libmpc
|
Name: libmpc
|
||||||
Version: 1.3.1
|
Version: 1.1.0
|
||||||
Release: 7%{?dist}
|
Release: 9.1%{?dist}
|
||||||
# LGPL-3.0-or-later: the library
|
License: LGPLv3+
|
||||||
# FSFAP: README and NEWS
|
|
||||||
License: LGPL-3.0-or-later AND FSFAP
|
|
||||||
URL: http://www.multiprecision.org/mpc/
|
URL: http://www.multiprecision.org/mpc/
|
||||||
Source0: https://ftp.gnu.org/gnu/mpc/mpc-%{version}.tar.gz
|
Source0: https://ftp.gnu.org/gnu/mpc/mpc-%{version}.tar.gz
|
||||||
%if 0%{?bootstrap}
|
%if 0%{?bootstrap}
|
||||||
Source1: https://ftp.gnu.org/gnu/mpc/mpc-%{bootstrap_version}.tar.gz
|
Source1: http://www.multiprecision.org/downloads/mpc-%{bootstrap_version}.tar.gz
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
BuildRequires: gmp-devel >= 5.0.0
|
BuildRequires: gmp-devel >= 5.0.0
|
||||||
BuildRequires: mpfr-devel >= 4.1.0
|
BuildRequires: mpfr-devel
|
||||||
BuildRequires: make
|
|
||||||
|
|
||||||
%if 0%{?bootstrap} == 0
|
Patch0: libmpc-fix-uninit-var.patch
|
||||||
Obsoletes: compat-libmpc < %{version}-1
|
|
||||||
Provides: compat-libmpc = %{version}-%{release}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
|
|
||||||
MPC is a C library for the arithmetic of complex numbers with
|
MPC is a C library for the arithmetic of complex numbers with
|
||||||
arbitrarily high precision and correct rounding of the result. It is
|
arbitrarily high precision and correct rounding of the result. It is
|
||||||
built upon and follows the same principles as Mpfr.
|
built upon and follows the same principles as Mpfr.
|
||||||
@ -41,7 +36,7 @@ Header files and shared library symlinks for the MPC library.
|
|||||||
|
|
||||||
%package doc
|
%package doc
|
||||||
Summary: Documentation for the MPC library
|
Summary: Documentation for the MPC library
|
||||||
License: GFDL-1.3-no-invariants-or-later
|
License: GFDL
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description doc
|
%description doc
|
||||||
@ -60,6 +55,7 @@ Contains the .so files for mpc version %{bootstrap-version}.
|
|||||||
%if 0%{?bootstrap}
|
%if 0%{?bootstrap}
|
||||||
%setup -q -n mpc-%{version} -a 1
|
%setup -q -n mpc-%{version} -a 1
|
||||||
%endif
|
%endif
|
||||||
|
%patch0 -p1 -b .uninit~
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --disable-static
|
%configure --disable-static
|
||||||
@ -95,8 +91,8 @@ rm -fv %{buildroot}%{_infodir}/*
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%make_install
|
%make_install
|
||||||
rm -f %{buildroot}%{_libdir}/*.la
|
rm -f %{buildroot}/%{_libdir}/*.la
|
||||||
rm -f %{buildroot}%{_infodir}/dir
|
rm -f %{buildroot}/%{_infodir}/dir
|
||||||
|
|
||||||
%check
|
%check
|
||||||
export LD_LIBRARY_PATH=%{buildroot}%{_libdir}
|
export LD_LIBRARY_PATH=%{buildroot}%{_libdir}
|
||||||
@ -121,88 +117,12 @@ make check
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 1.3.1-7
|
* Fri Oct 09 2020 Marek Polacek <polacek@redhat.com> - 1.1.0-9.1
|
||||||
- Bump release for October 2024 mass rebuild:
|
- apply my upstream patch to fix using an uninitialized value
|
||||||
Resolves: RHEL-64018
|
|
||||||
|
|
||||||
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1.3.1-6
|
* Thu Oct 08 2020 Marek Polacek <polacek@redhat.com> - 1.1.0-9
|
||||||
- Bump release for June 2024 mass rebuild
|
- mpc-1.1.0 (#1835193)
|
||||||
|
- update the specfile from Fedora
|
||||||
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-5
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
||||||
|
|
||||||
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-4
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
||||||
|
|
||||||
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-3
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
||||||
|
|
||||||
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-2
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
||||||
|
|
||||||
* Fri Dec 16 2022 Jerry James <loganjerry@gmail.com> - 1.3.1-1
|
|
||||||
- Upgrade to libmpc version 1.3.1 (rhbz#2154360)
|
|
||||||
|
|
||||||
* Fri Dec 9 2022 Jerry James <loganjerry@gmail.com> - 1.3.0-1
|
|
||||||
- Upgrade to libmpc version 1.3.0 (rhbz#2152180)
|
|
||||||
- Convert License tags to SPDX
|
|
||||||
|
|
||||||
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-5
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
||||||
|
|
||||||
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-4
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
||||||
|
|
||||||
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-3
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
||||||
|
|
||||||
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-2
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
||||||
|
|
||||||
* Fri Nov 13 2020 Jerry James <loganjerry@gmail.com> - 1.2.1-1
|
|
||||||
- Upgrade to libmpc version 1.2.1
|
|
||||||
|
|
||||||
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-9
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
||||||
|
|
||||||
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-8
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
||||||
|
|
||||||
* Fri Oct 11 2019 Jerry James <loganjerry@gmail.com> - 1.1.0-7
|
|
||||||
- Drop the libmpc-mpfr3 and libmpc-mpfr3-devel subpackages
|
|
||||||
|
|
||||||
* Wed Oct 9 2019 Jerry James <loganjerry@gmail.com> - 1.1.0-6
|
|
||||||
- Build the main package against mpfr4
|
|
||||||
|
|
||||||
* Tue Oct 8 2019 Jerry James <loganjerry@gmail.com> - 1.1.0-5
|
|
||||||
- Make mpfr3 and mpfr3-devel subpackages
|
|
||||||
- Drop the compat-libmpc package; nothing in Fedora needs it
|
|
||||||
- Update project URL
|
|
||||||
- Add a -doc subpackage to hold the GFDL-licensed content
|
|
||||||
- Drop unnecessary texinfo BR
|
|
||||||
- Drop ldconfig_scriptlets; this version cannot appear in distros that need it
|
|
||||||
- Make sure there are no rpaths and that -Wl,--as-needed takes effect
|
|
||||||
|
|
||||||
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-4
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
||||||
|
|
||||||
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-3
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
||||||
|
|
||||||
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-2
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
||||||
|
|
||||||
* Fri Jun 15 2018 Serhii Turivnyi <sturivny@redhat.com> - 1.1.0-1
|
|
||||||
- Add tests according to the CI wiki. PR: https://src.fedoraproject.org/rpms/libmpc/pull-request/3
|
|
||||||
|
|
||||||
* Mon Feb 26 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.1.0-1
|
|
||||||
- Modernization of the spec file (remove Group, use new make and ldconfig macros,
|
|
||||||
add gcc to BuildRequires)
|
|
||||||
- Move build to %%build
|
|
||||||
|
|
||||||
* Mon Feb 26 2018 James Paul Turner <jamesturner246@fedoraproject.org> - 1.1.0-1
|
|
||||||
- Upgrade to libmpc version 1.1.0
|
|
||||||
- Fix broken compat package build
|
|
||||||
|
|
||||||
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-9
|
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-9
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||||
Loading…
Reference in New Issue
Block a user