[521] | 1 | Summary: A C library for multiple-precision floating-point computations |
---|
| 2 | Name: mpfr |
---|
[871] | 3 | Version: 2.4.2 |
---|
[521] | 4 | Release: 1%{?_dist_release} |
---|
| 5 | URL: http://www.mpfr.org/ |
---|
| 6 | Source0: http://www.mpfr.org/mpfr-current/mpfr-%{version}.tar.bz2 |
---|
| 7 | #Patch0: mpfr-2.3.0-upstream.patch |
---|
| 8 | License: LGPLv2+ and GPLv2+ and GFDL |
---|
| 9 | Group: System Environment/Libraries |
---|
| 10 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 11 | BuildRequires: gmp-devel |
---|
| 12 | Requires: gmp >= 4.2.1 |
---|
| 13 | |
---|
| 14 | %description |
---|
| 15 | The MPFR library is a C library for multiple-precision floating-point |
---|
| 16 | computations with "correct rounding". The MPFR is efficient and |
---|
| 17 | also has a well-defined semantics. It copies the good ideas from the |
---|
| 18 | ANSI/IEEE-754 standard for double-precision floating-point arithmetic |
---|
| 19 | (53-bit mantissa). MPFR is based on the GMP multiple-precision library. |
---|
| 20 | |
---|
| 21 | %package devel |
---|
| 22 | Summary: Development tools A C library for mpfr library |
---|
| 23 | Group: Development/Libraries |
---|
| 24 | Requires: %{name} = %{version}-%{release} |
---|
[871] | 25 | Requires: gmp-devel >= 4.2.1 |
---|
[521] | 26 | Requires(post): /sbin/install-info |
---|
| 27 | Requires(preun): /sbin/install-info |
---|
| 28 | |
---|
| 29 | %description devel |
---|
| 30 | The static libraries, header files and documentation for using the MPFR |
---|
| 31 | multiple-precision floating-point library in applications. |
---|
| 32 | |
---|
| 33 | If you want to develop applications which will use the MPFR library, |
---|
| 34 | you'll need to install the mpfr-devel package. You'll also need to |
---|
| 35 | install the mpfr package. |
---|
| 36 | |
---|
| 37 | %prep |
---|
| 38 | %setup -q |
---|
| 39 | #patch0 -p1 -b .up |
---|
| 40 | |
---|
| 41 | %build |
---|
| 42 | |
---|
| 43 | %configure --disable-assert |
---|
| 44 | make %{?_smp_mflags} |
---|
| 45 | |
---|
| 46 | %install |
---|
| 47 | rm -rf $RPM_BUILD_ROOT |
---|
| 48 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
| 49 | pushd $RPM_BUILD_ROOT%{_infodir} |
---|
| 50 | #iconv -f iso-8859-1 -t utf-8 mpfr.info >mpfr.info.aux |
---|
| 51 | iconv -f iso-8859-1 -t euc-jp mpfr.info >mpfr.info.aux |
---|
| 52 | mv mpfr.info.aux mpfr.info |
---|
| 53 | popd |
---|
| 54 | rm -f $RPM_BUILD_ROOT%{_libdir}/libmpfr.la |
---|
| 55 | rm -f $RPM_BUILD_ROOT%{_infodir}/dir |
---|
| 56 | rm -f $RPM_BUILD_ROOT%{_libdir}/libmpfr.a |
---|
| 57 | cd .. |
---|
| 58 | |
---|
| 59 | |
---|
| 60 | %check |
---|
| 61 | make %{?_smp_mflags} check |
---|
| 62 | |
---|
| 63 | %post -p /sbin/ldconfig |
---|
| 64 | |
---|
| 65 | %postun -p /sbin/ldconfig |
---|
| 66 | |
---|
| 67 | %post devel |
---|
| 68 | /sbin/install-info %{_infodir}/mpfr.info.gz %{_infodir}/dir || : |
---|
| 69 | |
---|
| 70 | %preun devel |
---|
| 71 | if [ "$1" = 0 ]; then |
---|
| 72 | /sbin/install-info --delete %{_infodir}/mpfr.info.gz %{_infodir}/dir || : |
---|
| 73 | fi |
---|
| 74 | |
---|
| 75 | %clean |
---|
| 76 | rm -rf $RPM_BUILD_ROOT |
---|
| 77 | |
---|
| 78 | %files |
---|
| 79 | %defattr(-,root,root,-) |
---|
| 80 | %doc COPYING COPYING.LIB NEWS README |
---|
| 81 | %{_libdir}/libmpfr.so.* |
---|
[871] | 82 | %{_datadir}/doc/mpfr |
---|
[521] | 83 | |
---|
| 84 | %files devel |
---|
| 85 | %defattr(-,root,root,-) |
---|
| 86 | %{_libdir}/libmpfr.so |
---|
| 87 | %{_includedir}/*.h |
---|
| 88 | %{_infodir}/mpfr.info* |
---|
| 89 | |
---|
| 90 | %changelog |
---|
[871] | 91 | * Sun Apr 18 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.4.2-1 |
---|
| 92 | - new upstream release |
---|
| 93 | - add Requires: gmp-devel (devel package) |
---|
| 94 | |
---|
[521] | 95 | * Sat Nov 28 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.4.1-1 |
---|
| 96 | - new upstream release |
---|
| 97 | |
---|
| 98 | * Mon May 19 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.3.1-1 |
---|
| 99 | - new upstream release |
---|
| 100 | - applied new versioning policy |
---|
| 101 | |
---|
| 102 | * Thu Dec 13 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.3.0-1vl1 |
---|
| 103 | - initial build for Vine Linux |
---|
| 104 | |
---|
| 105 | * Thu Sep 20 2007 Ivana Varekova <varekova@redhat.com> 2.3.0-1 |
---|
| 106 | - update to 2.3.0 |
---|
| 107 | - fix license flag |
---|
| 108 | |
---|
| 109 | * Mon Aug 20 2007 Ivana Varekova <varekova@redhat.com> 2.2.1-2 |
---|
| 110 | - spec file cleanup (#253440) |
---|
| 111 | |
---|
| 112 | * Mon Jan 16 2007 Ivana Varekova <varekova@redhat.com> 2.2.1-1 |
---|
| 113 | - started |
---|
| 114 | |
---|