]> git.pld-linux.org Git - packages/mpfr.git/blame - mpfr.spec
- updated to 2.4.2 (security fix in formatted output functions (buffer overflow).
[packages/mpfr.git] / mpfr.spec
CommitLineData
9db6ac21
JB
1#
2# Conditional build:
c9ec1c7f 3%bcond_without tests # don't perform make check
9db6ac21 4#
6ee01af0 5Summary: Multiple-precision floating-point computations library
54956df2 6Summary(pl.UTF-8): Biblioteka obliczeń zmiennoprzecinkowych wielokrotnej precyzji
6ee01af0 7Name: mpfr
493752e0 8Version: 2.4.2
6ee01af0 9Release: 1
8bfa5dba 10License: LGPL v2.1+
6ee01af0
JB
11Group: Libraries
12Source0: http://www.mpfr.org/mpfr-current/%{name}-%{version}.tar.bz2
493752e0 13# Source0-md5: 89e59fe665e2b3ad44a6789f40b059a0
6ee01af0 14Patch0: %{name}-info.patch
6ee01af0 15URL: http://www.mpfr.org/
6642e189
JB
16BuildRequires: autoconf >= 2.50
17BuildRequires: automake >= 1.6
6ee01af0 18BuildRequires: gmp-devel >= 4.1.0
6642e189 19BuildRequires: libtool
6ee01af0
JB
20BuildRequires: texinfo
21BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23%description
24The MPFR library is a C library for multiple-precision floating-point
25computations with exact rounding (also called correct rounding). It is
26based on the GMP multiple-precision library. The main goal of MPFR is
27to provide a library for multiple-precision floating-point computation
28which is both efficient and has a well-defined semantics. It copies
29the good ideas from the ANSI/IEEE-754 standard for double-precision
30floating-point arithmetic (53-bit mantissa).
31
93e5165e
JR
32%description -l pl.UTF-8
33Biblioteka MPFR to biblioteka C do obliczeń zmiennoprzecinkowych z
34wielokrotną precyzją i dokładnym zaokrąglaniem (zwanym także poprawnym
35zaokrąglaniem). Jest oparta na bibliotece GMP wielokrotnej precyzji.
36Głównym celem MPFR jest dostarczenie biblioteki do obliczeń
37zmiennoprzecinkowych wielokrotnej precyzji, która jest wydajna i ma
38dobrze zdefiniowaną semantykę. Powiela dobre idee ze standardu
39ANSI/IEEE-754 dla arytmetyki zmiennoprzecinkowej podwójnej precyzji (z
4053-bitową mantysą).
6ee01af0
JB
41
42%package devel
43Summary: Header files for MPFR library
54956df2 44Summary(pl.UTF-8): Pliki nagłówkowe biblioteki MPFR
6ee01af0
JB
45Group: Development/Libraries
46Requires: %{name} = %{version}-%{release}
47Requires: gmp-devel >= 4.1.0
48Obsoletes: libmpfr-devel
49
50%description devel
51Header files for MPFR library.
52
93e5165e
JR
53%description devel -l pl.UTF-8
54Pliki nagłówkowe biblioteki MPFR.
6ee01af0
JB
55
56%package static
57Summary: Static MPFR library
54956df2 58Summary(pl.UTF-8): Statyczna biblioteka MPFR
6ee01af0
JB
59Group: Development/Libraries
60Requires: %{name}-devel = %{version}-%{release}
61
62%description static
63Static MPFR library.
64
93e5165e 65%description static -l pl.UTF-8
6ee01af0
JB
66Statyczna biblioteka MPFR.
67
68%prep
69%setup -q
70%patch0 -p1
6ee01af0
JB
71
72%build
6642e189
JB
73%{__libtoolize}
74%{__aclocal}
75%{__autoconf}
76%{__automake}
6ee01af0
JB
77%configure \
78 --enable-shared
edea4840 79
102da87d
ER
80# make -j4 creates truncated .lo files
81%{__make} -j1 all
9db6ac21
JB
82
83%if %{with tests}
102da87d 84%{__make} check
9db6ac21 85%endif
6ee01af0
JB
86
87%install
88rm -rf $RPM_BUILD_ROOT
89
90%{__make} install \
91 DESTDIR=$RPM_BUILD_ROOT
92
102da87d
ER
93rm -f $RPM_BUILD_ROOT%{_infodir}/dir
94
6ee01af0
JB
95%clean
96rm -rf $RPM_BUILD_ROOT
97
98%post -p /sbin/ldconfig
99%postun -p /sbin/ldconfig
100
8bfa5dba 101%post devel -p /sbin/postshell
c017c350 102-/usr/sbin/fix-info-dir -c %{_infodir}
6ee01af0 103
8bfa5dba 104%postun devel -p /sbin/postshell
c017c350 105-/usr/sbin/fix-info-dir -c %{_infodir}
6ee01af0
JB
106
107%files
108%defattr(644,root,root,755)
109%doc AUTHORS BUGS ChangeLog FAQ.html NEWS README TODO
110%attr(755,root,root) %{_libdir}/libmpfr.so.*.*.*
8bfa5dba 111%attr(755,root,root) %ghost %{_libdir}/libmpfr.so.1
6ee01af0
JB
112
113%files devel
114%defattr(644,root,root,755)
115%attr(755,root,root) %{_libdir}/libmpfr.so
116%{_libdir}/libmpfr.la
117%{_includedir}/mpfr.h
118%{_includedir}/mpf2mpfr.h
119%{_infodir}/mpfr.info*
120
121%files static
122%defattr(644,root,root,755)
123%{_libdir}/libmpfr.a
This page took 0.073381 seconds and 4 git commands to generate.