Accepting request 26830 from devel:libraries:c_c++

Copy from devel:libraries:c_c++/mpc based on submit request 26830 from user coolo

OBS-URL: https://build.opensuse.org/request/show/26830
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mpc?expand=0&rev=7
This commit is contained in:
OBS User autobuild 2009-12-18 13:46:48 +00:00 committed by Git OBS Bridge
commit ce0c95a9a6
3 changed files with 27 additions and 4 deletions

13
mpc-0.8-fixes.patch Normal file
View File

@ -0,0 +1,13 @@
Index: trunk/tests/log.dat
===================================================================
--- trunk/tests/log.dat (revision 726)
+++ trunk/tests/log.dat (revision 727)
@@ -30,7 +30,7 @@
0 - 2 -inf 53 +0x3243F6A8885A3p-48 2 -0 2 +0 N N
0 + 2 -inf 53 -0x3243F6A8885A3p-48 2 -0 2 -0 N N
0 - 2 -inf 53 +0x3243F6A8885A3p-48 2 -0 2 +0 N D
-0 + 2 -inf 53 -0x3243F6A8885A32p-52 2 -0 2 -0 N D
+0 - 2 -inf 53 -0x3243F6A8885A32p-52 2 -0 2 -0 N D
# log(+0 + i*0) = -inf + i*0
0 0 2 -inf 2 +0 2 +0 2 +0 N N

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Dec 1 14:28:22 CET 2009 - rguenther@suse.de
- Fix erroneous test data.
-------------------------------------------------------------------
Thu Nov 5 16:59:22 CET 2009 - rguenther@suse.de

View File

@ -21,14 +21,15 @@
Name: mpc
BuildRequires: gmp-devel mpfr-devel
License: LGPL v2.1 or later
License: LGPLv2.1+
Group: Development/Libraries/C and C++
AutoReqProv: on
Version: 0.8
Release: 1
Release: 2
Summary: MPC multiple-precision complex shared library
Url: http://www.multiprecision.org/mpc/
Source: mpc-%{version}.tar.bz2
Patch0: mpc-0.8-fixes.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
@ -39,7 +40,7 @@ built upon and follows the same principles as MPFR.
%package -n libmpc2
License: LGPL v2.1 or later
License: LGPLv2.1+
Summary: MPC multiple-precision complex shared library
Group: Development/Libraries/C and C++
AutoReqProv: on
@ -52,7 +53,7 @@ built upon and follows the same principles as MPFR.
%package devel
License: LGPL v2.1 or later
License: LGPLv2.1+
Summary: MPC multiple-precision complex library development files
Group: Development/Libraries/C and C++
Requires: libmpc2 = %{version} mpfr-devel
@ -66,6 +67,10 @@ MPC multiple-precision complex library development files.
%prep
%setup -q
# Should really be a mpfr version check
%if %{suse_version} > 1120
%patch0 -p1
%endif
%build
%configure