3 %bcond_without tests # don't perform make check
5 Summary: Multiple-precision floating-point computations library
6 Summary(pl.UTF-8): Biblioteka obliczeń zmiennoprzecinkowych wielokrotnej precyzji
12 Source0: https://www.mpfr.org/mpfr-current/%{name}-%{version}.tar.xz
13 # Source0-md5: 523c50c6318dde6f9dc523bc0244690a
14 Patch0: %{name}-info.patch
15 URL: https://www.mpfr.org/
16 BuildRequires: autoconf >= 2.50
17 BuildRequires: autoconf-archive
18 BuildRequires: automake >= 1:1.13
19 BuildRequires: gmp-devel >= 5.0
20 BuildRequires: libtool
21 BuildRequires: tar >= 1:1.22
22 BuildRequires: texinfo
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 The MPFR library is a C library for multiple-precision floating-point
29 computations with exact rounding (also called correct rounding). It is
30 based on the GMP multiple-precision library. The main goal of MPFR is
31 to provide a library for multiple-precision floating-point computation
32 which is both efficient and has a well-defined semantics. It copies
33 the good ideas from the ANSI/IEEE-754 standard for double-precision
34 floating-point arithmetic (53-bit mantissa).
36 %description -l pl.UTF-8
37 Biblioteka MPFR to biblioteka C do obliczeń zmiennoprzecinkowych z
38 wielokrotną precyzją i dokładnym zaokrąglaniem (zwanym także poprawnym
39 zaokrąglaniem). Jest oparta na bibliotece GMP wielokrotnej precyzji.
40 Głównym celem MPFR jest dostarczenie biblioteki do obliczeń
41 zmiennoprzecinkowych wielokrotnej precyzji, która jest wydajna i ma
42 dobrze zdefiniowaną semantykę. Powiela dobre idee ze standardu
43 ANSI/IEEE-754 dla arytmetyki zmiennoprzecinkowej podwójnej precyzji (z
47 Summary: Header files for MPFR library
48 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki MPFR
49 Group: Development/Libraries
50 Requires: %{name} = %{version}-%{release}
51 Requires: gmp-devel >= 5.0
52 Obsoletes: libmpfr-devel < 4.2
55 Header files for MPFR library.
57 %description devel -l pl.UTF-8
58 Pliki nagłówkowe biblioteki MPFR.
61 Summary: Static MPFR library
62 Summary(pl.UTF-8): Statyczna biblioteka MPFR
63 Group: Development/Libraries
64 Requires: %{name}-devel = %{version}-%{release}
69 %description static -l pl.UTF-8
70 Statyczna biblioteka MPFR.
76 # triggers bug in gold (as of binutils-2.21.53.0.2-1.i686)
78 if [ -x /usr/bin/ld.bfd ]; then
79 ln -s /usr/bin/ld.bfd my-ld/ld
83 export PATH=$PWD/my-ld:$PATH
91 # make -j4 creates truncated .lo files
99 rm -rf $RPM_BUILD_ROOT
102 DESTDIR=$RPM_BUILD_ROOT
104 # obsoleted by pkg-config
105 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libmpfr.la
106 # move to PLD specific place
107 install -d $RPM_BUILD_ROOT%{_examplesdir}
108 %{__mv} $RPM_BUILD_ROOT%{_docdir}/mpfr/examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
110 %{__rm} $RPM_BUILD_ROOT%{_docdir}/mpfr/*
112 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
115 rm -rf $RPM_BUILD_ROOT
117 %post -p /sbin/ldconfig
118 %postun -p /sbin/ldconfig
120 %post devel -p /sbin/postshell
121 -/usr/sbin/fix-info-dir -c %{_infodir}
123 %postun devel -p /sbin/postshell
124 -/usr/sbin/fix-info-dir -c %{_infodir}
127 %defattr(644,root,root,755)
128 %doc AUTHORS BUGS ChangeLog NEWS README TODO doc/FAQ.html
129 %attr(755,root,root) %{_libdir}/libmpfr.so.*.*.*
130 %attr(755,root,root) %ghost %{_libdir}/libmpfr.so.6
133 %defattr(644,root,root,755)
134 %attr(755,root,root) %{_libdir}/libmpfr.so
135 %{_includedir}/mpfr.h
136 %{_includedir}/mpf2mpfr.h
137 %{_pkgconfigdir}/mpfr.pc
138 %{_infodir}/mpfr.info*
139 %{_examplesdir}/%{name}-%{version}
142 %defattr(644,root,root,755)