mpfr-vl.spec 3.0 KB

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