mpfr-vl.spec 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  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. %description
  16. The MPFR library is a C library for multiple-precision floating-point
  17. computations with "correct rounding". The MPFR is efficient and
  18. also has a well-defined semantics. It copies the good ideas from the
  19. ANSI/IEEE-754 standard for double-precision floating-point arithmetic
  20. (53-bit mantissa). MPFR is based on the GMP multiple-precision library.
  21. %package devel
  22. Summary: Development tools A C library for mpfr library
  23. Group: Development/Libraries
  24. Requires: %{name} = %{version}-%{release}
  25. Requires: gmp-devel >= 4.2.1
  26. Requires(post): /sbin/install-info
  27. Requires(preun): /sbin/install-info
  28. %description devel
  29. The static libraries, header files and documentation for using the MPFR
  30. multiple-precision floating-point library in applications.
  31. If you want to develop applications which will use the MPFR library,
  32. you'll need to install the mpfr-devel package. You'll also need to
  33. install the mpfr package.
  34. %prep
  35. %setup -q
  36. %build
  37. %configure --disable-assert
  38. make %{?_smp_mflags}
  39. %install
  40. rm -rf $RPM_BUILD_ROOT
  41. make install DESTDIR=$RPM_BUILD_ROOT
  42. pushd $RPM_BUILD_ROOT%{_infodir}
  43. #iconv -f iso-8859-1 -t utf-8 mpfr.info >mpfr.info.aux
  44. iconv -f iso-8859-1 -t euc-jp mpfr.info >mpfr.info.aux
  45. mv mpfr.info.aux mpfr.info
  46. popd
  47. rm -f $RPM_BUILD_ROOT%{_libdir}/libmpfr.la
  48. rm -f $RPM_BUILD_ROOT%{_infodir}/dir
  49. rm -f $RPM_BUILD_ROOT%{_libdir}/libmpfr.a
  50. cd ..
  51. %check
  52. make %{?_smp_mflags} check
  53. %post -p /sbin/ldconfig
  54. %postun -p /sbin/ldconfig
  55. %post devel
  56. /sbin/install-info %{_infodir}/mpfr.info.gz %{_infodir}/dir || :
  57. %preun devel
  58. if [ "$1" = 0 ]; then
  59. /sbin/install-info --delete %{_infodir}/mpfr.info.gz %{_infodir}/dir || :
  60. fi
  61. %clean
  62. rm -rf $RPM_BUILD_ROOT
  63. %files
  64. %defattr(-,root,root,-)
  65. %doc COPYING COPYING.LESSER NEWS README
  66. %{_libdir}/libmpfr.so.*
  67. %{_datadir}/doc/mpfr
  68. %files devel
  69. %defattr(-,root,root,-)
  70. %{_libdir}/libmpfr.so
  71. %{_includedir}/*.h
  72. %{_infodir}/mpfr.info*
  73. %changelog
  74. * Sun Oct 30 2011 NAKAMURA Kenta <kenta@vinelinux.org> 3.1.0-1
  75. - new upstream release
  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