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