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