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