SHA256
6
0
forked from pool/gmp

Accepting request 29122 from devel:libraries:c_c++

Copy from devel:libraries:c_c++/gmp based on submit request 29122 from user rguenther

OBS-URL: https://build.opensuse.org/request/show/29122
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gmp?expand=0&rev=15
This commit is contained in:
OBS User autobuild
2010-01-14 14:21:37 +00:00
committed by Git OBS Bridge
parent 807ffdc050
commit 980ecfffe0
4 changed files with 37 additions and 12 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package gmp (Version 4.3.1)
# spec file for package gmp (Version 4.3.2)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2010 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
@@ -20,7 +20,7 @@
Name: gmp
BuildRequires: gcc-c++
License: GPL v3 or later ; LGPL v3 or later
License: GPLv3+ ; LGPLv3+
Group: System/Libraries
AutoReqProv: on
# bug437293
@@ -28,11 +28,12 @@ AutoReqProv: on
Obsoletes: gmp-64bit
%endif
#
Version: 4.3.1
Release: 2
Version: 4.3.2
Release: 1
Summary: The GNU MP Library
Url: http://gmplib.org/
Source: gmp-%{version}.tar.bz2
Source2: baselibs.conf
Patch0: gmp-noexec.diff
Patch2: gmp-s390x.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@@ -47,7 +48,7 @@ Authors:
Torbjorn Granlund <tege@zevs.sics.se>
%package -n libgmp3
License: GPL v3 or later ; LGPL v3 or later
License: GPLv3+ ; LGPLv3+
Summary: Shared library for the GNU MP Library
Group: System/Libraries
# in openSUSE 11.1 and SLE11 the shared libraries were in the gmp package itself
@@ -64,7 +65,7 @@ Authors:
Torbjorn Granlund <tege@zevs.sics.se>
%package -n libgmpxx4
License: GPL v3 or later ; LGPL v3 or later
License: GPLv3+ ; LGPLv3+
Summary: C++ bindings for the GNU MP Library
Group: System/Libraries
Requires: libgmp3 = %{version}
@@ -79,7 +80,7 @@ Authors:
Torbjorn Granlund <tege@zevs.sics.se>
%package devel
License: GPL v3 or later ; LGPL v3 or later
License: GPLv3+ ; LGPLv3+
Summary: Include Files and Libraries for Development with the GNU MP Library
Group: Development/Languages/C and C++
Requires: libgmp3 = %{version}
@@ -124,11 +125,12 @@ Authors:
#%ifarch x86_64 x86
# --enable-fat \
#%endif
%define sanitized_platform %(echo %{_target_cpu} | sed -e "s/sparc64.*/sparc64/" -e "s/sparcv.*/sparc/")-%{_vendor}-%{_target_os}
CFLAGS="$RPM_OPT_FLAGS -fexceptions" \
./configure --prefix=/usr \
--libdir=%{_libdir} \
--infodir=%{_infodir} \
--build=%{_target_platform} \
--build=%{sanitized_platform} \
--disable-mpfr \
--enable-cxx
make CFLAGS="$RPM_OPT_FLAGS -fexceptions" %{?jobs:-j%jobs}