Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37523921
en ru br
ALT Linux repositórios
S:3.0.0-alt6

Group :: Sistema/Bibliotecas
RPM: mpir

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Name: mpir
Version: 3.0.0
Release: alt6
Summary: A library for arbitrary precision arithmetic

License: LGPLv3+
Group: System/Libraries
Url: http://mpir.org/
Packager: Anton Midyukov <antohami at altlinux.org>

# Repacked http://mpir.org/%name-%version.tar.bz2

Source: %name-%version.tar

BuildRequires: gcc-c++
BuildRequires: texinfo
BuildRequires: yasm

%description
MPIR is an open source multiprecision integer library derived from
version 4.2.1 of the GMP (GNU Multi Precision) project.

%package devel
Summary: Development files for %name
Group: Development/C++
Requires: %name = %version-%release

%description devel
The %name-devel package contains libraries and header files for
developing applications that use %name.

%prep
%setup

# Convert ISO-8859-1 files to UTF-8, preserving timestamps

for fil in NEWS doc/devel/projects.html doc/devel/tasks.html; do
 iconv --from=ISO-8859-1 --to=UTF-8 $fil -o $fil.conv
 sed -i 's/charset=iso-8859-1/charset=UTF-8/' $fil
 touch -r $fil $fil.conv
 mv -f $fil.conv $fil
done

# Update texinfo.tex

cp -p %_datadir/texmf/tex/texinfo/texinfo.tex doc

%build
%define optflags_lto %nil

%autoreconf
%ifarch ppc64le
export ABI=mode64
export MPN_PATH=generic
%endif
%configure --disable-static --enable-cxx --with-yasm=%_bindir/yasm \
 CCAS="gcc -c -Wa,--noexecstack" \
 LIBS="-lrt" \
 LDFLAGS="$RPM_LD_FLAGS -Wl,--as-needed -Wl,-z,noexecstack"

# Get rid of undesirable hardcoded rpaths; workaround libtool reordering

# -Wl,--as-needed after all the libraries.
sed -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
   -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
   -e 's|CC="\(g.*\)"|CC="\1 -Wl,--as-needed"|' \
   -i libtool

# Compile

export LD_LIBRARY_PATH=$PWD/.libs
%make_build

%install
%makeinstall_std
find %buildroot -name '*.la' -exec rm -f {} ';'
rm -rf %buildroot%_infodir/dir
mv doc/devel doc/html

%check
# FTBFS i586
#export LD_LIBRARY_PATH=$PWD/.libs
#make check

%files
%doc AUTHORS NEWS README
%doc COPYING COPYING.LIB
%_libdir/*.so.*

%files devel
%doc doc/html doc/isa_abi_headache
%_includedir/*
%_libdir/*.so
%_infodir/mpir.info*

%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