SHA256
1
0
forked from pool/gmp
gmp/gmp.spec

137 lines
3.4 KiB
RPMSpec
Raw Normal View History

#
# spec file for package gmp
#
- Update to GMP 6.0.0 release. * includes powerpc64le support and obsoletes gmp-support-powerpc64le-linux.patch and gmp-ppc64le-mod.patch * The function mpz_invert now considers any number invertible in Z/1Z * The mpn multiply code now handles operands of more than 2^31 limbs correctly * Plain division of large operands is faster and more monotonous in operand size * Major speedup for ARM, in particular ARM Cortex-A15, thanks to improved assembly. * Speedup for Intel Sandy Bridge, Ivy Bridge, Haswell, thanks to rewritten and vastly expanded assembly support. Speedup also for the older Core 2 and Nehalem. * Faster mixed arithmetic between mpq_class and double. * With g++, optimise more operations when one argument is a simple constant. * Support for ARM64 alias Aarch64 alias ARMv8. * New public functions mpn_sec_mul and mpn_sec_sqr, implementing side-channel silent multiplication and squaring. * New public functions mpn_sec_div_qr and mpn_sec_div_r, implementing side-channel silent division. * New public functions mpn_cnd_add_n and mpn_cnd_sub_n. Side-channel silent conditional addition and subtraction. * New public function mpn_sec_powm, implementing side-channel silent modexp. * New public function mpn_sec_invert, implementing side-channel silent modular inversion. * Better support for applications which use the mpz_t type, but nevertheless need to call some of the lower-level mpn functions. See OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/gmp?expand=0&rev=50
2014-03-26 10:51:20 +01:00
# Copyright (c) 2014 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
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: gmp
BuildRequires: gcc-c++
# bug437293
%ifarch ppc64
Obsoletes: gmp-64bit
%endif
Version: 6.0.0a
Release: 0
Summary: The GNU MP Library
License: GPL-3.0+ and LGPL-3.0+
Group: System/Libraries
Url: http://gmplib.org/
Source: ftp://ftp.gmplib.org/pub/%{name}/%{name}-%{version}.tar.bz2
Source2: baselibs.conf
Patch0: gmp-noexec.diff
Patch1: gmp-6.0.0-ppc64-gcd.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
A library for calculating huge numbers (integer and floating point).
%package -n libgmp10
Summary: Shared library for the GNU MP Library
Group: System/Libraries
%description -n libgmp10
Shared library for the GNU MP Library.
%package -n libgmpxx4
Summary: C++ bindings for the GNU MP Library
Group: System/Libraries
Requires: libgmp10 >= %{version}
%description -n libgmpxx4
C++ bindings for the GNU MP Library.
%package devel
Summary: Include Files and Libraries for Development with the GNU MP Library
Group: Development/Languages/C and C++
Requires: libgmp10 = %{version}
Requires: libgmpxx4 = %{version}
# bug437293
%ifarch ppc64
Obsoletes: gmp-devel-64bit
%endif
PreReq: %install_info_prereq
%description devel
These libraries are needed to develop programs which calculate with
huge numbers (integer and floating point).
%prep
%setup -q -n %{name}-6.0.0
%ifnarch %arm
%patch0
%patch1 -p1
%endif
%build
export CFLAGS="$RPM_OPT_FLAGS -fexceptions"
# Do not use %%configure here, that will break build on SLE11 because
# there we pass a mismatched --target. See bnc#870358.
./configure \
--host=%{_host} --build=%{_build} \
--prefix=%{_prefix} \
--libdir=%{_libdir} \
--enable-cxx \
- Update to GMP 6.0.0 release. * includes powerpc64le support and obsoletes gmp-support-powerpc64le-linux.patch and gmp-ppc64le-mod.patch * The function mpz_invert now considers any number invertible in Z/1Z * The mpn multiply code now handles operands of more than 2^31 limbs correctly * Plain division of large operands is faster and more monotonous in operand size * Major speedup for ARM, in particular ARM Cortex-A15, thanks to improved assembly. * Speedup for Intel Sandy Bridge, Ivy Bridge, Haswell, thanks to rewritten and vastly expanded assembly support. Speedup also for the older Core 2 and Nehalem. * Faster mixed arithmetic between mpq_class and double. * With g++, optimise more operations when one argument is a simple constant. * Support for ARM64 alias Aarch64 alias ARMv8. * New public functions mpn_sec_mul and mpn_sec_sqr, implementing side-channel silent multiplication and squaring. * New public functions mpn_sec_div_qr and mpn_sec_div_r, implementing side-channel silent division. * New public functions mpn_cnd_add_n and mpn_cnd_sub_n. Side-channel silent conditional addition and subtraction. * New public function mpn_sec_powm, implementing side-channel silent modexp. * New public function mpn_sec_invert, implementing side-channel silent modular inversion. * Better support for applications which use the mpz_t type, but nevertheless need to call some of the lower-level mpn functions. See OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/gmp?expand=0&rev=50
2014-03-26 10:51:20 +01:00
--enable-fat
make %{?_smp_mflags}
%check
# do not disable "make check", FIX THE BUGS!
make check
%install
make install DESTDIR=${RPM_BUILD_ROOT}
rm $RPM_BUILD_ROOT%{_libdir}/libgmp.la
rm $RPM_BUILD_ROOT%{_libdir}/libgmpxx.la
rm $RPM_BUILD_ROOT%{_libdir}/libgmpxx.a
%post -n libgmp10 -p /sbin/ldconfig
%post -n libgmpxx4 -p /sbin/ldconfig
%post devel
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%postun -n libgmp10 -p /sbin/ldconfig
%postun -n libgmpxx4 -p /sbin/ldconfig
%postun devel
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%files -n libgmp10
%defattr(-,root,root)
%{_libdir}/libgmp.so.10*
%files -n libgmpxx4
%defattr(-,root,root)
%{_libdir}/libgmpxx.so.4*
%files devel
%defattr(-,root,root)
%doc AUTHORS README NEWS
%doc demos
%doc %{_infodir}/gmp.info*.gz
%{_libdir}/libgmp.a
%{_libdir}/libgmp.so
%{_libdir}/libgmpxx.so
/usr/include/gmp.h
/usr/include/gmpxx.h
%changelog