Compare commits
10 Commits
c3a902f3aa
...
84bef4e346
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
84bef4e346 | ||
|
|
b3c4c468f9 | ||
|
|
dcf4a81785 | ||
|
|
9f9b31cf2a | ||
|
|
2d651cb757 | ||
|
|
b5d337e8e8 | ||
|
|
14a76fe42f | ||
|
|
5ca894653c | ||
|
|
32162deeb4 | ||
|
|
3b38009bdb |
@ -1,31 +0,0 @@
|
|||||||
From 21668770977368459c74723f2bddad38b727ea20 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Paul Zimmermann <Paul.Zimmermann@inria.fr>
|
|
||||||
Date: Thu, 20 Aug 2020 08:56:54 +0200
|
|
||||||
Subject: [PATCH 07/11] added missing include
|
|
||||||
|
|
||||||
Reported by Andreas, while using mpc-1.2.0 to bootstrap Guix,
|
|
||||||
where mpc-1.2.0 is used to compile gcc-7.5.0:
|
|
||||||
|
|
||||||
In file included from ../../../gcc-7.5.0/mpc/src/asin.c:22:0:
|
|
||||||
../../../gcc-7.5.0/mpc/src/asin.c: In function 'mpc_asin_series':
|
|
||||||
../../../gcc-7.5.0/mpc/src/asin.c:132:27: error: 'ULONG_MAX' undeclared (first use in this function)
|
|
||||||
MPC_ASSERT(2 * k - 1 <= ULONG_MAX / (2 * k - 1));
|
|
||||||
---
|
|
||||||
src/asin.c | 1 +
|
|
||||||
1 file changed, 1 insertion(+)
|
|
||||||
|
|
||||||
diff --git a/src/asin.c b/src/asin.c
|
|
||||||
index 444275f..2c3fa32 100644
|
|
||||||
--- a/src/asin.c
|
|
||||||
+++ b/src/asin.c
|
|
||||||
@@ -19,6 +19,7 @@ along with this program. If not, see http://www.gnu.org/licenses/ .
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
+#include <limits.h> /* for ULONG_MAX */
|
|
||||||
#include "mpc-impl.h"
|
|
||||||
|
|
||||||
/* Special case op = 1 + i*y for tiny y (see algorithms.tex).
|
|
||||||
--
|
|
||||||
1.8.3.1
|
|
||||||
|
|
||||||
47
libmpc.spec
47
libmpc.spec
@ -1,15 +1,15 @@
|
|||||||
Name: libmpc
|
Name: libmpc
|
||||||
Version: 1.2.0
|
Version: 1.3.1
|
||||||
Release: 2
|
Release: 2
|
||||||
Summary: C library for multiple precision complex arithmetic
|
Summary: C library for multiple precision complex arithmetic
|
||||||
License: LGPLv3+ and GFDL
|
License: LGPLv3+ and GFDL-1.3-only
|
||||||
URL: http://www.multiprecision.org/
|
URL: https://www.multiprecision.org/
|
||||||
Source0: https://ftp.gnu.org/gnu/mpc/mpc-%{version}.tar.gz
|
Source0: https://ftp.gnu.org/gnu/mpc/mpc-%{version}.tar.gz
|
||||||
|
|
||||||
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 >= 4.1.0
|
||||||
BuildRequires: texinfo
|
BuildRequires: /usr/bin/makeinfo
|
||||||
|
|
||||||
%description
|
%description
|
||||||
MPC is a C library for the arithmetic of complex numbers with arbitrarily high
|
MPC is a C library for the arithmetic of complex numbers with arbitrarily high
|
||||||
@ -18,7 +18,6 @@ same principles as MPFR.
|
|||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Header and shared development libraries for MPC
|
Summary: Header and shared development libraries for MPC
|
||||||
Patch6000: backport-0001-added-missing-include.patch
|
|
||||||
|
|
||||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
Requires: mpfr-devel gmp-devel
|
Requires: mpfr-devel gmp-devel
|
||||||
@ -28,38 +27,23 @@ Header files and shared object symlinks for MPC is a C library.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n mpc-%{version}
|
%setup -q -n mpc-%{version}
|
||||||
%patch6000 -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --disable-static
|
|
||||||
make %{?_smp_mflags}
|
|
||||||
|
|
||||||
export CPPFLAGS="%{optflags} -std=gnu99"
|
export CPPFLAGS="%{optflags} -std=gnu99"
|
||||||
export CFLAGS="%{optflags} -std=gnu99"
|
export CFLAGS="%{optflags} -std=gnu99"
|
||||||
export EGREP=egrep
|
export EGREP=egrep
|
||||||
|
|
||||||
|
%configure --disable-static
|
||||||
|
%make_build
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make check
|
%make_build check
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
%make_install
|
||||||
rm -f $RPM_BUILD_ROOT/%{_libdir}/libmpc.la
|
%delete_la
|
||||||
rm -f ${RPM_BUILD_ROOT}/%{_infodir}/dir
|
rm -f ${RPM_BUILD_ROOT}/%{_infodir}/dir
|
||||||
|
|
||||||
%ldconfig_scriptlets
|
|
||||||
|
|
||||||
%preun devel
|
|
||||||
if [ $1 = 0 ]; then
|
|
||||||
if [ -f %{_infodir}/mpc.info.gz ]; then # for --excludedocs
|
|
||||||
/sbin/install-info --delete %{_infodir}/mpc.info.gz %{_infodir}/dir || :
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
%post devel
|
|
||||||
if [ -f %{_infodir}/mpc.info.gz ]; then # for --excludedocs
|
|
||||||
/sbin/install-info %{_infodir}/mpc.info.gz %{_infodir}/dir || :
|
|
||||||
fi
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc README NEWS
|
%doc README NEWS
|
||||||
%license COPYING.LESSER
|
%license COPYING.LESSER
|
||||||
@ -71,8 +55,21 @@ fi
|
|||||||
%{_libdir}/libmpc.so
|
%{_libdir}/libmpc.so
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Sep 02 2024 Funda Wang <fundawang@yeah.net> - 1.3.1-2
|
||||||
|
- cleanup spec
|
||||||
|
|
||||||
|
* Sat Jan 28 2023 Wenyu Liu<liuwenyu7@huawei.com> - 1.3.1-1
|
||||||
|
- Upgrade to 1.3.1
|
||||||
|
|
||||||
|
* Thu Jan 5 2023 Wenyu Liu<liuwenyu7@huawei.com> - 1.2.0-4
|
||||||
|
- Rectify the content that does not comply with specifications in the spec file
|
||||||
|
|
||||||
|
* Mon Jun 6 2022 Xinyi Gou<rv7dzzhhs4c@163.com> - 1.2.0-3
|
||||||
|
- Specify license version
|
||||||
|
|
||||||
* Thu Sep 24 2020 EulerOSWander<314264452@qq.com> - 1.2.0-2
|
* Thu Sep 24 2020 EulerOSWander<314264452@qq.com> - 1.2.0-2
|
||||||
- added missing include.
|
- added missing include.
|
||||||
|
|
||||||
* Sat Aug 22 2020 Yunfeng Ye<yeyunfeng@huawei.com> - 1.2.0-1
|
* Sat Aug 22 2020 Yunfeng Ye<yeyunfeng@huawei.com> - 1.2.0-1
|
||||||
- Upgrade to 1.2.0
|
- Upgrade to 1.2.0
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
version_control: git
|
version_control: git
|
||||||
src_repo: https://gforge.inria.fr/anonscm/git/mpc/mpc.git
|
src_repo: https://gitlab.inria.fr/mpc/mpc.git
|
||||||
tag_prefix: "^v"
|
tag_prefix: ""
|
||||||
seperator: "."
|
separator: "."
|
||||||
|
|||||||
BIN
mpc-1.2.0.tar.gz
BIN
mpc-1.2.0.tar.gz
Binary file not shown.
BIN
mpc-1.3.1.tar.gz
Normal file
BIN
mpc-1.3.1.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user