2006-12-19 00:16:39 +01:00
|
|
|
#
|
2011-04-19 13:50:39 +02:00
|
|
|
# spec file for package gmp
|
2006-12-19 00:16:39 +01:00
|
|
|
#
|
2012-01-30 10:16:08 +01:00
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2006-12-19 00:16:39 +01:00
|
|
|
#
|
2008-08-21 17:46:27 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2006-12-19 00:16:39 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
Name: gmp
|
|
|
|
BuildRequires: gcc-c++
|
2008-11-28 15:01:57 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: gmp-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2012-01-30 10:16:08 +01:00
|
|
|
Version: 5.0.3
|
|
|
|
Release: 0
|
2006-12-19 00:16:39 +01:00
|
|
|
Summary: The GNU MP Library
|
2012-01-30 10:16:08 +01:00
|
|
|
License: GPL-3.0+ ; LGPL-3.0+
|
|
|
|
Group: System/Libraries
|
2007-12-12 20:13:54 +01:00
|
|
|
Url: http://gmplib.org/
|
|
|
|
Source: gmp-%{version}.tar.bz2
|
2010-01-14 15:21:37 +01:00
|
|
|
Source2: baselibs.conf
|
2007-12-12 20:13:54 +01:00
|
|
|
Patch0: gmp-noexec.diff
|
2006-12-19 00:16:39 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
A library for calculating huge numbers (integer and floating point).
|
|
|
|
|
|
|
|
|
2010-09-20 16:31:58 +02:00
|
|
|
%package -n libgmp10
|
2009-04-23 14:59:42 +02:00
|
|
|
Summary: Shared library for the GNU MP Library
|
|
|
|
Group: System/Libraries
|
|
|
|
|
2010-09-20 16:31:58 +02:00
|
|
|
%description -n libgmp10
|
2009-04-23 14:59:42 +02:00
|
|
|
Shared library for the GNU MP Library.
|
|
|
|
|
|
|
|
|
|
|
|
%package -n libgmpxx4
|
|
|
|
Summary: C++ bindings for the GNU MP Library
|
|
|
|
Group: System/Libraries
|
2010-09-20 16:31:58 +02:00
|
|
|
Requires: libgmp10 = %{version}
|
2009-04-23 14:59:42 +02:00
|
|
|
|
|
|
|
%description -n libgmpxx4
|
|
|
|
C++ bindings for the GNU MP Library.
|
|
|
|
|
|
|
|
|
2010-09-20 16:31:58 +02:00
|
|
|
%package -n libmp3
|
|
|
|
Summary: BSD libmp bindings for the GNU MP Library
|
|
|
|
Group: System/Libraries
|
|
|
|
Requires: libgmp10 = %{version}
|
|
|
|
|
|
|
|
%description -n libmp3
|
|
|
|
BSD libmp bindings for the GNU MP Library.
|
2009-04-23 14:59:42 +02:00
|
|
|
|
2006-12-19 00:16:39 +01:00
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Include Files and Libraries for Development with the GNU MP Library
|
|
|
|
Group: Development/Languages/C and C++
|
2010-09-20 16:31:58 +02:00
|
|
|
Requires: libgmp10 = %{version}
|
2009-04-23 14:59:42 +02:00
|
|
|
Requires: libgmpxx4 = %{version}
|
2010-09-20 16:31:58 +02:00
|
|
|
Requires: libmp3 = %{version}
|
2008-11-28 15:01:57 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: gmp-devel-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2006-12-19 00:16:39 +01:00
|
|
|
PreReq: %install_info_prereq
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
These libraries are needed to develop programs which calculate with
|
|
|
|
huge numbers (integer and floating point).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Torbjorn Granlund <tege@zevs.sics.se>
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2011-09-28 00:04:53 +02:00
|
|
|
%ifnarch %arm
|
2006-12-19 00:16:39 +01:00
|
|
|
%patch0
|
2011-09-28 00:04:53 +02:00
|
|
|
%endif
|
2006-12-19 00:16:39 +01:00
|
|
|
|
|
|
|
%build
|
2009-04-23 14:59:42 +02:00
|
|
|
# export HOME=/tmp/
|
2006-12-19 00:16:39 +01:00
|
|
|
# %%{?suse_update_config:%%{suse_update_config -f}}
|
2009-04-23 14:59:42 +02:00
|
|
|
# mv config.guess config.guess.gmp
|
|
|
|
# mv config.sub config.sub.gmp
|
|
|
|
# autoreconf -fi
|
|
|
|
# mv config.guess configfsf.guess
|
|
|
|
# mv config.sub configfsf.sub
|
|
|
|
# mv config.guess.gmp config.guess
|
|
|
|
# mv config.sub.gmp config.sub
|
|
|
|
# %ifarch ppc64
|
|
|
|
# # The PowerPC64 assembler funcs are for AIX and somehow don't work on Linux.
|
|
|
|
# rm -fv mpn/powerpc64/*.asm
|
|
|
|
# %endif
|
|
|
|
#%ifarch x86_64 x86
|
|
|
|
# --enable-fat \
|
|
|
|
#%endif
|
2010-01-14 15:21:37 +01:00
|
|
|
%define sanitized_platform %(echo %{_target_cpu} | sed -e "s/sparc64.*/sparc64/" -e "s/sparcv.*/sparc/")-%{_vendor}-%{_target_os}
|
2009-05-15 12:10:44 +02:00
|
|
|
CFLAGS="$RPM_OPT_FLAGS -fexceptions" \
|
2006-12-19 00:16:39 +01:00
|
|
|
./configure --prefix=/usr \
|
2011-06-20 11:28:16 +02:00
|
|
|
--libdir=%{_libdir} \
|
|
|
|
--infodir=%{_infodir} \
|
|
|
|
--build=%{sanitized_platform} \
|
|
|
|
--enable-cxx \
|
|
|
|
--enable-fat \
|
|
|
|
--enable-mpbsd
|
2010-08-27 16:46:15 +02:00
|
|
|
make CFLAGS="$RPM_OPT_FLAGS -fexceptions" %{?_smp_mflags}
|
2007-12-12 20:13:54 +01:00
|
|
|
|
|
|
|
%check
|
2007-01-15 00:48:10 +01:00
|
|
|
# do not disable "make check", FIX THE BUGS!
|
|
|
|
make check
|
2006-12-19 00:16:39 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
make install DESTDIR=${RPM_BUILD_ROOT}
|
2007-12-12 20:13:54 +01:00
|
|
|
rm $RPM_BUILD_ROOT%{_libdir}/libgmp.la
|
|
|
|
rm $RPM_BUILD_ROOT%{_libdir}/libgmpxx.la
|
|
|
|
rm $RPM_BUILD_ROOT%{_libdir}/libgmpxx.a
|
2010-09-20 16:31:58 +02:00
|
|
|
rm $RPM_BUILD_ROOT%{_libdir}/libmp.a
|
|
|
|
rm $RPM_BUILD_ROOT%{_libdir}/libmp.la
|
2006-12-19 00:16:39 +01:00
|
|
|
|
2010-09-20 16:31:58 +02:00
|
|
|
%post -n libgmp10 -p /sbin/ldconfig
|
2009-04-23 14:59:42 +02:00
|
|
|
|
|
|
|
%post -n libgmpxx4 -p /sbin/ldconfig
|
2008-01-03 17:36:34 +01:00
|
|
|
|
2010-09-20 16:31:58 +02:00
|
|
|
%post -n libmp3 -p /sbin/ldconfig
|
|
|
|
|
2008-01-03 17:36:34 +01:00
|
|
|
%post devel
|
2006-12-19 00:16:39 +01:00
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
|
|
|
2010-09-20 16:31:58 +02:00
|
|
|
%postun -n libgmp10 -p /sbin/ldconfig
|
2009-04-23 14:59:42 +02:00
|
|
|
|
|
|
|
%postun -n libgmpxx4 -p /sbin/ldconfig
|
2006-12-19 00:16:39 +01:00
|
|
|
|
2010-09-20 16:31:58 +02:00
|
|
|
%postun -n libmp3 -p /sbin/ldconfig
|
|
|
|
|
2006-12-19 00:16:39 +01:00
|
|
|
%postun devel
|
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2010-09-20 16:31:58 +02:00
|
|
|
%files -n libgmp10
|
2009-04-23 14:59:42 +02:00
|
|
|
%defattr(-,root,root)
|
2010-09-20 16:31:58 +02:00
|
|
|
%{_libdir}/libgmp.so.10*
|
2009-04-23 14:59:42 +02:00
|
|
|
|
|
|
|
%files -n libgmpxx4
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libgmpxx.so.4*
|
2006-12-19 00:16:39 +01:00
|
|
|
|
2010-09-20 16:31:58 +02:00
|
|
|
%files -n libmp3
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libmp.so.3*
|
|
|
|
|
2006-12-19 00:16:39 +01:00
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2009-04-23 14:59:42 +02:00
|
|
|
%doc AUTHORS README NEWS
|
2006-12-19 00:16:39 +01:00
|
|
|
%doc demos
|
|
|
|
%doc %{_infodir}/gmp.info*.gz
|
2007-12-12 20:13:54 +01:00
|
|
|
%{_libdir}/libgmp.a
|
|
|
|
%{_libdir}/libgmp.so
|
|
|
|
%{_libdir}/libgmpxx.so
|
2010-09-20 16:31:58 +02:00
|
|
|
%{_libdir}/libmp.so
|
2007-12-12 20:13:54 +01:00
|
|
|
/usr/include/gmp.h
|
|
|
|
/usr/include/gmpxx.h
|
2010-09-20 16:31:58 +02:00
|
|
|
/usr/include/mp.h
|
2006-12-19 00:16:39 +01:00
|
|
|
|
2007-05-23 16:19:37 +02:00
|
|
|
%changelog
|