[521] | 1 | Summary: A C library for multiple-precision floating-point computations |
---|
| 2 | Name: mpfr |
---|
[12546] | 3 | Version: 4.1.0 |
---|
[10250] | 4 | Release: 1%{?_dist_release} |
---|
[12546] | 5 | Group: system |
---|
[3580] | 6 | Vendor: Project Vine |
---|
[12335] | 7 | Distribution: Vine Linux |
---|
| 8 | Packager: inagaki, kenta |
---|
[12546] | 9 | |
---|
[12335] | 10 | License: LGPLv3+ |
---|
| 11 | URL: https://www.mpfr.org/ |
---|
| 12 | Source0: https://www.mpfr.org/mpfr-%{version}/mpfr-%{version}.tar.xz |
---|
| 13 | |
---|
[521] | 14 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 15 | BuildRequires: gmp-devel |
---|
[7961] | 16 | Requires: gmp >= 4.2.3 |
---|
[521] | 17 | |
---|
| 18 | %description |
---|
| 19 | The MPFR library is a C library for multiple-precision floating-point |
---|
| 20 | computations with "correct rounding". The MPFR is efficient and |
---|
| 21 | also has a well-defined semantics. It copies the good ideas from the |
---|
| 22 | ANSI/IEEE-754 standard for double-precision floating-point arithmetic |
---|
| 23 | (53-bit mantissa). MPFR is based on the GMP multiple-precision library. |
---|
| 24 | |
---|
[12546] | 25 | |
---|
[521] | 26 | %package devel |
---|
| 27 | Summary: Development tools A C library for mpfr library |
---|
[12546] | 28 | Group: programming |
---|
[521] | 29 | Requires: %{name} = %{version}-%{release} |
---|
[7961] | 30 | Requires: gmp-devel >= 4.2.3 |
---|
[521] | 31 | Requires(post): /sbin/install-info |
---|
| 32 | Requires(preun): /sbin/install-info |
---|
| 33 | |
---|
| 34 | %description devel |
---|
| 35 | The static libraries, header files and documentation for using the MPFR |
---|
| 36 | multiple-precision floating-point library in applications. |
---|
| 37 | |
---|
| 38 | If you want to develop applications which will use the MPFR library, |
---|
| 39 | you'll need to install the mpfr-devel package. You'll also need to |
---|
| 40 | install the mpfr package. |
---|
| 41 | |
---|
[12546] | 42 | |
---|
| 43 | %debug_package |
---|
| 44 | |
---|
| 45 | |
---|
[521] | 46 | %prep |
---|
[12335] | 47 | %autosetup -p1 |
---|
[521] | 48 | |
---|
[12546] | 49 | |
---|
[521] | 50 | %build |
---|
[12335] | 51 | %configure --disable-assert --disable-static |
---|
[521] | 52 | |
---|
[12335] | 53 | # Get rid of undesirable hardcoded rpaths; workaround libtool reordering |
---|
| 54 | # -Wl,--as-needed after all the libraries. |
---|
| 55 | sed -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \ |
---|
| 56 | -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \ |
---|
| 57 | -e 's|CC="\(g..\)"|CC="\1 -Wl,--as-needed"|' \ |
---|
| 58 | -i libtool |
---|
| 59 | |
---|
[521] | 60 | make %{?_smp_mflags} |
---|
| 61 | |
---|
[12546] | 62 | |
---|
[521] | 63 | %install |
---|
| 64 | rm -rf $RPM_BUILD_ROOT |
---|
[12335] | 65 | %make_install |
---|
| 66 | rm -f %{buildroot}%{_libdir}/*.la |
---|
| 67 | rm -f %{buildroot}%{_infodir}/dir |
---|
[521] | 68 | |
---|
[12335] | 69 | #these go into licenses, not doc |
---|
| 70 | rm -f %{buildroot}%{_datadir}/doc/COPYING{,.LESSER} |
---|
[521] | 71 | |
---|
[12546] | 72 | |
---|
[521] | 73 | %check |
---|
[12335] | 74 | export LD_LIBRARY_PATH=%{buildroot}%{_libdir} |
---|
[521] | 75 | make %{?_smp_mflags} check |
---|
| 76 | |
---|
[12546] | 77 | |
---|
[521] | 78 | %post -p /sbin/ldconfig |
---|
| 79 | %postun -p /sbin/ldconfig |
---|
| 80 | |
---|
| 81 | %post devel |
---|
| 82 | /sbin/install-info %{_infodir}/mpfr.info.gz %{_infodir}/dir || : |
---|
| 83 | |
---|
| 84 | %preun devel |
---|
| 85 | if [ "$1" = 0 ]; then |
---|
| 86 | /sbin/install-info --delete %{_infodir}/mpfr.info.gz %{_infodir}/dir || : |
---|
| 87 | fi |
---|
| 88 | |
---|
[12546] | 89 | |
---|
[521] | 90 | %clean |
---|
| 91 | rm -rf $RPM_BUILD_ROOT |
---|
| 92 | |
---|
[12546] | 93 | |
---|
[521] | 94 | %files |
---|
| 95 | %defattr(-,root,root,-) |
---|
[12335] | 96 | %license COPYING COPYING.LESSER |
---|
| 97 | %doc NEWS README |
---|
[521] | 98 | %{_libdir}/libmpfr.so.* |
---|
[871] | 99 | %{_datadir}/doc/mpfr |
---|
[521] | 100 | |
---|
| 101 | %files devel |
---|
| 102 | %defattr(-,root,root,-) |
---|
| 103 | %{_libdir}/libmpfr.so |
---|
[12335] | 104 | %{_libdir}/pkgconfig/* |
---|
[521] | 105 | %{_includedir}/*.h |
---|
| 106 | %{_infodir}/mpfr.info* |
---|
| 107 | |
---|
[12546] | 108 | |
---|
[521] | 109 | %changelog |
---|
[12546] | 110 | * Mon Feb 22 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.1.0-1 |
---|
| 111 | - new upstream release. |
---|
| 112 | - dropped Patch0: fixed in upstream. |
---|
| 113 | |
---|
[12335] | 114 | * Wed Mar 18 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.0.2-1 |
---|
| 115 | - new upstream release. |
---|
| 116 | |
---|
[10250] | 117 | * Sat May 07 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.1.4-1 |
---|
| 118 | - update to 3.1.4 |
---|
| 119 | |
---|
[9869] | 120 | * Sun Dec 13 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.1.2-2 |
---|
| 121 | - rebuild with VineSeed environment |
---|
| 122 | |
---|
[7961] | 123 | * Mon Nov 04 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.1.2-1 |
---|
| 124 | - update to 3.1.2 |
---|
| 125 | |
---|
[5102] | 126 | * Sun Oct 30 2011 NAKAMURA Kenta <kenta@vinelinux.org> 3.1.0-1 |
---|
| 127 | - new upstream release |
---|
| 128 | |
---|
[3580] | 129 | * Tue Apr 19 2011 NAKAMURA Kenta <kenta@vinelinux.org> 2.4.2-2 |
---|
| 130 | - rebuild for Vine 6 |
---|
| 131 | |
---|
[871] | 132 | * Sun Apr 18 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.4.2-1 |
---|
| 133 | - new upstream release |
---|
| 134 | - add Requires: gmp-devel (devel package) |
---|
| 135 | |
---|
[521] | 136 | * Sat Nov 28 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.4.1-1 |
---|
| 137 | - new upstream release |
---|
| 138 | |
---|
| 139 | * Mon May 19 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.3.1-1 |
---|
| 140 | - new upstream release |
---|
| 141 | - applied new versioning policy |
---|
| 142 | |
---|
| 143 | * Thu Dec 13 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.3.0-1vl1 |
---|
| 144 | - initial build for Vine Linux |
---|
| 145 | |
---|
| 146 | * Thu Sep 20 2007 Ivana Varekova <varekova@redhat.com> 2.3.0-1 |
---|
| 147 | - update to 2.3.0 |
---|
| 148 | - fix license flag |
---|
| 149 | |
---|
| 150 | * Mon Aug 20 2007 Ivana Varekova <varekova@redhat.com> 2.2.1-2 |
---|
| 151 | - spec file cleanup (#253440) |
---|
| 152 | |
---|
[7961] | 153 | * Tue Jan 16 2007 Ivana Varekova <varekova@redhat.com> 2.2.1-1 |
---|
[521] | 154 | - started |
---|
| 155 | |
---|