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