mpfr-vl.spec 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. Summary: A C library for multiple-precision floating-point computations
  2. Name: mpfr
  3. Version: 2.4.1
  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. %description
  14. The MPFR library is a C library for multiple-precision floating-point
  15. computations with "correct rounding". The MPFR is efficient and
  16. also has a well-defined semantics. It copies the good ideas from the
  17. ANSI/IEEE-754 standard for double-precision floating-point arithmetic
  18. (53-bit mantissa). MPFR is based on the GMP multiple-precision library.
  19. %package devel
  20. Summary: Development tools A C library for mpfr library
  21. Group: Development/Libraries
  22. Requires: %{name} = %{version}-%{release}
  23. Requires(post): /sbin/install-info
  24. Requires(preun): /sbin/install-info
  25. %description devel
  26. The static libraries, header files and documentation for using the MPFR
  27. multiple-precision floating-point library in applications.
  28. If you want to develop applications which will use the MPFR library,
  29. you'll need to install the mpfr-devel package. You'll also need to
  30. install the mpfr package.
  31. %prep
  32. %setup -q
  33. #patch0 -p1 -b .up
  34. %build
  35. %configure --disable-assert
  36. make %{?_smp_mflags}
  37. %install
  38. rm -rf $RPM_BUILD_ROOT
  39. make install DESTDIR=$RPM_BUILD_ROOT
  40. pushd $RPM_BUILD_ROOT%{_infodir}
  41. #iconv -f iso-8859-1 -t utf-8 mpfr.info >mpfr.info.aux
  42. iconv -f iso-8859-1 -t euc-jp mpfr.info >mpfr.info.aux
  43. mv mpfr.info.aux mpfr.info
  44. popd
  45. rm -f $RPM_BUILD_ROOT%{_libdir}/libmpfr.la
  46. rm -f $RPM_BUILD_ROOT%{_infodir}/dir
  47. rm -f $RPM_BUILD_ROOT%{_libdir}/libmpfr.a
  48. cd ..
  49. %check
  50. make %{?_smp_mflags} check
  51. %post -p /sbin/ldconfig
  52. %postun -p /sbin/ldconfig
  53. %post devel
  54. /sbin/install-info %{_infodir}/mpfr.info.gz %{_infodir}/dir || :
  55. %preun devel
  56. if [ "$1" = 0 ]; then
  57. /sbin/install-info --delete %{_infodir}/mpfr.info.gz %{_infodir}/dir || :
  58. fi
  59. %clean
  60. rm -rf $RPM_BUILD_ROOT
  61. %files
  62. %defattr(-,root,root,-)
  63. %doc COPYING COPYING.LIB NEWS README
  64. %{_libdir}/libmpfr.so.*
  65. %files devel
  66. %defattr(-,root,root,-)
  67. %{_libdir}/libmpfr.so
  68. %{_includedir}/*.h
  69. %{_infodir}/mpfr.info*
  70. %changelog
  71. * Sat Nov 28 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.4.1-1
  72. - new upstream release
  73. * Mon May 19 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.3.1-1
  74. - new upstream release
  75. - applied new versioning policy
  76. * Thu Dec 13 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.3.0-1vl1
  77. - initial build for Vine Linux
  78. * Thu Sep 20 2007 Ivana Varekova <varekova@redhat.com> 2.3.0-1
  79. - update to 2.3.0
  80. - fix license flag
  81. * Mon Aug 20 2007 Ivana Varekova <varekova@redhat.com> 2.2.1-2
  82. - spec file cleanup (#253440)
  83. * Mon Jan 16 2007 Ivana Varekova <varekova@redhat.com> 2.2.1-1
  84. - started