mpfr-vl.spec 3.2 KB

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