Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37706140
en ru br
ALT Linux repositórios
5.0: 2.4.1-alt1
4.1: 2.3.1-alt1
4.0: 2.2.1-alt1
3.0: 2.1.1-alt1

Group :: Sistema/Bibliotecas
RPM: libmpfr

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Name: libmpfr
Version: 2.2.1
Release: alt1

Summary: Multiple Precision Floating-Point library
License: LGPL
Group: System/Libraries
Url: http://www.mpfr.org/
Packager: Dmitry V. Levin <ldv at altlinux.org>

# Don't build static library by default

%def_disable static

BuildRequires: libgmp-devel

# http://www.mpfr.org/mpfr-current/mpfr-%version.tar.bz2

Source0: mpfr-%version.tar
Source1: mpfrxx.h

Patch1: http://www.mpfr.org/mpfr-current/patches
Patch2: mpfr-2.2.0-alt-texinfo.patch

%package devel
Summary: Development MPFR library, header files and documentation
Group: Development/C
Requires: %name = %version-%release
Requires(post): %install_info
Requires(preun): %uninstall_info
Requires: libgmp-devel
Conflicts: libgmp-devel = 0:4.1.4-alt3

%package devel-static
Summary: Static MPFR library
Group: Development/C
Requires: %name-devel = %version-%release

%description
MPFR provides a library for multiple-precision floating-point computation
with correct rounding.  The computation is both efficient and has a
well-defined semantics.  It copies the good ideas from the ANSI/IEEE-754
standard for double-precision floating-point arithmetic (53-bit mantissa).

%description devel
This package provides the header files and the symbolic links necessary
to allow compilation and linking of programs that use the libraries
provided in the %name package.

%description devel-static
This package provides static library necessary to allow static linking
of MPFR-based programs.

%prep
%setup -q -n mpfr-%version
%patch1 -p1
%patch2 -p1

%build
%configure --enable-shared %{subst_enable static}
%make_build
%{?!__buildreqs:%{?!_without_check:%{?!_disable_check:%make_build -k check}}}

%install
%makeinstall
install -pm644 %_sourcedir/mpfrxx.h %buildroot%_includedir/
%define docdir %_docdir/%name-%version
mkdir -p %buildroot%docdir
install -pm644 AUTHORS FAQ.html NEWS README TODO %buildroot%docdir/

%post -p %post_ldconfig
%postun -p %postun_ldconfig

%post devel
%install_info mpfr.info

%preun devel
%uninstall_info mpfr.info

%files
%_libdir/*.so.*
%docdir/[ANR]*

%files devel
%_libdir/*.so
%_includedir/*
%_infodir/*
%docdir/[FT]*

%if_enabled static
%files devel-static
%_libdir/*.a
%endif

%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