Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37537567
en ru br
ALT Linux repositórios
S:6.3.0-alt1
5.0: 4.2.4-alt1
4.1: 4.2.2-alt1
4.0: 4.1.4-alt5
3.0: 4.1.4-alt2

Group :: Sistema/Bibliotecas
RPM: gmp

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Name: gmp
Version: 4.1.4
Release: alt5

Summary: GNU MP arbitrary precision arithmetic library
License: LGPL
Group: System/Libraries
Url: http://www.gnu.org/software/gmp/
Packager: Dmitry V. Levin <ldv at altlinux.org>

# ftp://ftp.gnu.org/gnu/gmp/gmp-%version.tar.bz2

Source: gmp-%version.tar

Patch0: gmp-4.1.4-up-fixes.patch
Patch1: gmp-4.1.4-alt-texinfo.patch
Patch2: gmp-4.1.4-deb-noexecstack.patch
Patch3: gmp-4.1.4-rh-fpu.patch

# Automatically added by buildreq on Mon Jun 16 2003

BuildRequires: flex gcc-c++ libreadline-devel

%description
GNU MP is a library for arbitrary precision arithmetic, operating on
signed integers, rational numbers, and floating point numbers.  It has
a rich set of functions, and the functions have a regular interface.

%package -n lib%name
Summary: GNU MP arbitrary precision arithmetic library
Group: System/Libraries
Provides: %name = %version-%release
Obsoletes: %name

%package -n lib%name-devel
Summary: Development GNU MP arbitrary precision arithmetic library
Group: Development/C
Requires: lib%name = %version-%release
Provides: %name-devel = %version-%release
Obsoletes: %name-devel
Requires(post): %install_info
Requires(preun): %uninstall_info

%package -n lib%name-devel-static
Summary: Static GNU MP arbitrary precision arithmetic library
Group: Development/C
Requires: lib%name-devel = %version-%release

%package -n lib%{name}_cxx
Summary: C++ bindings for the GNU MP arbitrary precision arithmetic library
Group: Development/C++
Requires: lib%name = %version-%release

%package -n lib%{name}_cxx-devel
Summary: Development C++ bindings for the GNU MP arbitrary precision arithmetic library
Group: Development/C++
Requires: lib%{name}_cxx = %version-%release
Requires: lib%{name}-devel = %version-%release

%package -n lib%{name}_cxx-devel-static
Summary: Static C++ bindings for the GNU MP arbitrary precision arithmetic library
Group: Development/C++
Requires: lib%{name}_cxx-devel = %version-%release
Requires: lib%{name}-devel-static = %version-%release

%description -n lib%name
GNU MP is a library for arbitrary precision arithmetic, operating on
signed integers, rational numbers, and floating point numbers.  It has
a rich set of functions, and the functions have a regular interface.

GNU MP is designed to be as fast as possible, both for small operands and
huge operands.  The speed is achieved by using fullwords as the basic
arithmetic type, by using fast algorithms, with carefully optimized
assembly code for the most common inner loops for lots of CPUs, and by
a general emphasis on speed (instead of simplicity or elegance).

GNU MP is believed to be faster than any other similar library.
Its advantage increases with operand sizes for certain operations,
since GNU MP in many cases has asymptotically faster algorithms.

%description -n lib%name-devel
This package contains libraries, header files and documentation required
for development with the GNU MP arbitrary precision arithmetic library.

%description -n lib%name-devel-static
This package contains static libraries required for development of
statically linked applications with the GNU MP arbitrary precision
arithmetic library.

%description -n lib%{name}_cxx
This package contains C++ bindings for the GNU MP arbitrary precision
arithmetic library.

%description -n lib%{name}_cxx-devel
This package contains libraries, header files and documentation required
for development C++ applications with the GNU MP arbitrary precision
arithmetic library.

%description -n lib%{name}_cxx-devel-static
This package contains static libraries required for development of
statically linked C++ applications with the GNU MP arbitrary precision
arithmetic library.

%prep
%setup -q
%patch0 -p0
%patch1 -p1
%patch2 -p1
%patch3 -p1
bzip2 -9k ChangeLog

%build
autoreconf -fisv
%configure --enable-mpbsd --enable-cxx
#NO SMP
%__make
%{?!__buildreqs:%{?!_without_check:%{?!_disable_check:make -k check}}}

%install
%make_install DESTDIR=%buildroot install
install -pm644 gmp-mparam.h %buildroot%_includedir/

%post -n lib%name -p %post_ldconfig
%postun -n lib%name -p %postun_ldconfig

%post -n lib%{name}_cxx -p %post_ldconfig
%postun -n lib%{name}_cxx -p %postun_ldconfig

%post -n lib%name-devel
%install_info %name.info

%preun -n lib%name-devel
%uninstall_info %name.info

%files -n lib%name
%doc AUTHORS README NEWS
%_libdir/*.so.*
%exclude %_libdir/*xx*.so.*

%files -n lib%name-devel
%_libdir/*.so
%exclude %_libdir/*xx*.so
%_includedir/*
%exclude %_includedir/*xx*
%_infodir/*.info*
%doc ChangeLog.bz2 doc/*

%files -n lib%name-devel-static
%_libdir/*.a
%exclude %_libdir/*xx*.a

%files -n lib%{name}_cxx
%_libdir/*xx*.so.*

%files -n lib%{name}_cxx-devel
%_libdir/*xx*.so
%_includedir/*xx*

%files -n lib%{name}_cxx-devel-static
%_libdir/*xx*.a

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009