Accepting request 104603 from devel:libraries:c_c++
- patch license to follow spdx.org standard - Remove redundant tags/sections per specfile guideline suggestions - Update to version 3.1.0. * The mpfr_urandom and mpfr_urandomb functions now return identical values on processors with different word size. * Speed improvement for the mpfr_sqr and mpfr_div functions using Mulders' algorithm. * Much faster formatted output (mpfr_printf, etc.) with %Rg and similar. * New divide-by-zero exception (flag) and associated functions. - Remove bogus provides/obsoletes for old shared library version. - Fix license, it is LGPL v3 or later. OBS-URL: https://build.opensuse.org/request/show/104603 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mpfr?expand=0&rev=28
This commit is contained in:
commit
cfb07b3834
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:e1977099bb494319c0f0c1f85759050c418a56884e9c6cef1c540b9b13e38e7f
|
||||
size 1154306
|
50
mpfr-3.1.0-patch01.diff
Normal file
50
mpfr-3.1.0-patch01.diff
Normal file
@ -0,0 +1,50 @@
|
||||
diff -Naurd mpfr-3.1.0-a/PATCHES mpfr-3.1.0-b/PATCHES
|
||||
--- mpfr-3.1.0-a/PATCHES 2011-10-05 21:39:57.000000000 +0000
|
||||
+++ mpfr-3.1.0-b/PATCHES 2011-10-05 21:39:57.000000000 +0000
|
||||
@@ -0,0 +1 @@
|
||||
+mpfr_unlikely
|
||||
diff -Naurd mpfr-3.1.0-a/VERSION mpfr-3.1.0-b/VERSION
|
||||
--- mpfr-3.1.0-a/VERSION 2011-10-03 08:17:15.000000000 +0000
|
||||
+++ mpfr-3.1.0-b/VERSION 2011-10-05 21:39:57.000000000 +0000
|
||||
@@ -1 +1 @@
|
||||
-3.1.0
|
||||
+3.1.0-p1
|
||||
diff -Naurd mpfr-3.1.0-a/src/mpfr-impl.h mpfr-3.1.0-b/src/mpfr-impl.h
|
||||
--- mpfr-3.1.0-a/src/mpfr-impl.h 2011-10-03 08:17:09.000000000 +0000
|
||||
+++ mpfr-3.1.0-b/src/mpfr-impl.h 2011-10-05 21:39:57.000000000 +0000
|
||||
@@ -988,10 +988,11 @@
|
||||
******************************************************/
|
||||
|
||||
/* Theses macros help the compiler to determine if a test is
|
||||
- * likely or unlikely. */
|
||||
+ likely or unlikely. The !! is necessary in case x is larger
|
||||
+ than a long. */
|
||||
#if __MPFR_GNUC(3,0) || __MPFR_ICC(8,1,0)
|
||||
# define MPFR_LIKELY(x) (__builtin_expect(!!(x),1))
|
||||
-# define MPFR_UNLIKELY(x) (__builtin_expect((x),0))
|
||||
+# define MPFR_UNLIKELY(x) (__builtin_expect(!!(x),0))
|
||||
#else
|
||||
# define MPFR_LIKELY(x) (x)
|
||||
# define MPFR_UNLIKELY(x) (x)
|
||||
diff -Naurd mpfr-3.1.0-a/src/mpfr.h mpfr-3.1.0-b/src/mpfr.h
|
||||
--- mpfr-3.1.0-a/src/mpfr.h 2011-10-03 08:17:09.000000000 +0000
|
||||
+++ mpfr-3.1.0-b/src/mpfr.h 2011-10-05 21:39:57.000000000 +0000
|
||||
@@ -27,7 +27,7 @@
|
||||
#define MPFR_VERSION_MAJOR 3
|
||||
#define MPFR_VERSION_MINOR 1
|
||||
#define MPFR_VERSION_PATCHLEVEL 0
|
||||
-#define MPFR_VERSION_STRING "3.1.0"
|
||||
+#define MPFR_VERSION_STRING "3.1.0-p1"
|
||||
|
||||
/* Macros dealing with MPFR VERSION */
|
||||
#define MPFR_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
|
||||
diff -Naurd mpfr-3.1.0-a/src/version.c mpfr-3.1.0-b/src/version.c
|
||||
--- mpfr-3.1.0-a/src/version.c 2011-10-03 08:17:09.000000000 +0000
|
||||
+++ mpfr-3.1.0-b/src/version.c 2011-10-05 21:39:57.000000000 +0000
|
||||
@@ -25,5 +25,5 @@
|
||||
const char *
|
||||
mpfr_get_version (void)
|
||||
{
|
||||
- return "3.1.0";
|
||||
+ return "3.1.0-p1";
|
||||
}
|
3
mpfr-3.1.0.tar.bz2
Normal file
3
mpfr-3.1.0.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:74a7bbbad168dd1cc414f1c9210b8fc16ccfc8e422d34b3371a8978e31eab680
|
||||
size 1203891
|
23
mpfr.changes
23
mpfr.changes
@ -1,3 +1,26 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Feb 13 10:50:39 UTC 2012 - coolo@suse.com
|
||||
|
||||
- patch license to follow spdx.org standard
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Jan 29 20:34:08 UTC 2012 - jengelh@medozas.de
|
||||
|
||||
- Remove redundant tags/sections per specfile guideline suggestions
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Oct 11 12:28:31 UTC 2011 - rguenther@suse.com
|
||||
|
||||
- Update to version 3.1.0.
|
||||
* The mpfr_urandom and mpfr_urandomb functions now return identical
|
||||
values on processors with different word size.
|
||||
* Speed improvement for the mpfr_sqr and mpfr_div functions using
|
||||
Mulders' algorithm.
|
||||
* Much faster formatted output (mpfr_printf, etc.) with %Rg and similar.
|
||||
* New divide-by-zero exception (flag) and associated functions.
|
||||
- Remove bogus provides/obsoletes for old shared library version.
|
||||
- Fix license, it is LGPL v3 or later.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Apr 8 13:53:10 UTC 2011 - rguenther@novell.com
|
||||
|
||||
|
63
mpfr.spec
63
mpfr.spec
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package mpfr
|
||||
#
|
||||
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -15,22 +15,19 @@
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
# norootforbuild
|
||||
|
||||
%define debug_package_requires libmpfr4 = %{version}-%{release}
|
||||
|
||||
Name: mpfr
|
||||
BuildRequires: gmp-devel
|
||||
License: LGPLv2.1+
|
||||
Group: Development/Libraries/C and C++
|
||||
AutoReqProv: on
|
||||
Version: 3.0.1
|
||||
Release: 1
|
||||
Version: 3.1.0
|
||||
Release: 0
|
||||
Summary: The MPFR multiple-precision floating-point library
|
||||
License: LGPL-3.0+
|
||||
Group: Development/Libraries/C and C++
|
||||
Url: http://www.mpfr.org/
|
||||
Source: mpfr-%{version}.tar.bz2
|
||||
Source2: baselibs.conf
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Patch1: %{name}-%{version}-patch01.diff
|
||||
|
||||
%description
|
||||
The MPFR library is a C library for multiple-precision floating-point
|
||||
@ -44,22 +41,9 @@ standard for double-precision floating-point arithmetic (53-bit
|
||||
mantissa).
|
||||
|
||||
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Guillaume Hanrot
|
||||
Paul Zimmermann
|
||||
Vincent Lefèvre
|
||||
Patrick Pélissier
|
||||
|
||||
%package -n libmpfr4
|
||||
License: LGPLv2.1+
|
||||
Summary: MPFR multiple-precision floating-point computation shared library
|
||||
Group: Development/Libraries/C and C++
|
||||
AutoReqProv: on
|
||||
# in openSUSE 10.2 and 10.3 the shared library was in the mpfr package itself
|
||||
Provides: mpfr = 2.3.0
|
||||
Obsoletes: mpfr < 2.3.0
|
||||
|
||||
%description -n libmpfr4
|
||||
The MPFR library is a C library for multiple-precision floating-point
|
||||
@ -67,44 +51,26 @@ computations with exact rounding (also called correct rounding). It is
|
||||
based on the GMP multiple-precision library.
|
||||
|
||||
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Guillaume Hanrot
|
||||
Paul Zimmermann
|
||||
Vincent Lefèvre
|
||||
Patrick Pélissier
|
||||
|
||||
%package devel
|
||||
License: LGPLv2.1+
|
||||
Summary: MPFR multiple-precision floating-point library development files
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: libmpfr4 = %{version} gmp-devel
|
||||
Provides: gmp-devel:/usr/lib/libmpfr.a
|
||||
AutoReqProv: on
|
||||
PreReq: %install_info_prereq
|
||||
|
||||
%description devel
|
||||
MPFR multiple-precision floating-point library development files
|
||||
|
||||
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Guillaume Hanrot
|
||||
Paul Zimmermann
|
||||
Vincent Lefèvre
|
||||
Patrick Pélissier
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch1 -p1
|
||||
|
||||
%build
|
||||
%configure \
|
||||
%if 0%{suse_version} > 1000
|
||||
%ifnarch %sparc hppa
|
||||
%ifarch %sparc hppa
|
||||
--disable-thread-safe \
|
||||
%else
|
||||
--enable-thread-safe \
|
||||
%endif
|
||||
%endif
|
||||
--enable-shared \
|
||||
--docdir=%{_docdir}/mpfr
|
||||
@ -117,21 +83,16 @@ make check %{?_smp_mflags}
|
||||
%makeinstall
|
||||
rm ${RPM_BUILD_ROOT}%{_libdir}/lib*.la
|
||||
|
||||
%post -n libmpfr4
|
||||
%run_ldconfig
|
||||
%post -n libmpfr4 -p /sbin/ldconfig
|
||||
|
||||
%post devel
|
||||
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
||||
|
||||
%postun -n libmpfr4
|
||||
%run_ldconfig
|
||||
%postun -n libmpfr4 -p /sbin/ldconfig
|
||||
|
||||
%postun devel
|
||||
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files -n libmpfr4
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/libmpfr.so.4*
|
||||
|
Loading…
Reference in New Issue
Block a user