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