From 50e02af508087a11b0a6d8730e507778e3295e3a506b8d0490dd218f8638dd2e Mon Sep 17 00:00:00 2001 From: OBS User buildservice-autocommit Date: Fri, 18 Dec 2009 13:46:48 +0000 Subject: [PATCH] Updating link to change in openSUSE:Factory/mpc revision 7.0 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/mpc?expand=0&rev=7262dfdeccfaaf15768ffa89aae400f8 --- mpc-0.8-fixes.patch | 13 +++++++++++++ mpc.changes | 5 +++++ mpc.spec | 13 +++++++++---- 3 files changed, 27 insertions(+), 4 deletions(-) create mode 100644 mpc-0.8-fixes.patch diff --git a/mpc-0.8-fixes.patch b/mpc-0.8-fixes.patch new file mode 100644 index 0000000..d6cf470 --- /dev/null +++ b/mpc-0.8-fixes.patch @@ -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 diff --git a/mpc.changes b/mpc.changes index b0c2051..18b9720 100644 --- a/mpc.changes +++ b/mpc.changes @@ -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 diff --git a/mpc.spec b/mpc.spec index e72e0e1..b4162d1 100644 --- a/mpc.spec +++ b/mpc.spec @@ -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