Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP1:GA
gmp.21886
gmp.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File gmp.spec of Package gmp.21886
# # spec file for package gmp # # Copyright (c) 2021 SUSE LLC # # 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 https://bugs.opensuse.org/ # Name: gmp BuildRequires: gcc-c++ # bug437293 %ifarch ppc64 Obsoletes: gmp-64bit %endif Version: 5.1.3 Release: 0 Summary: The GNU MP Library License: GPL-3.0-or-later AND LGPL-3.0-or-later 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-support-powerpc64le-linux.patch Patch2: gmp-ppc64le-mod.patch Patch3: gmp-6.2.1-CVE-2021-43618.patch 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 %ifnarch %arm %patch0 %endif %patch1 -p1 %patch2 -p1 %patch3 -p1 %build export CFLAGS="$RPM_OPT_FLAGS -fexceptions"; %configure \ --enable-cxx \ --enable-fat \ --enable-mpbsd 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
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor