1 | Summary: C library for multiple precision complex arithmetic |
---|
2 | Name: libmpc |
---|
3 | Version: 1.1.0 |
---|
4 | Release: 1%{?_dist_release} |
---|
5 | Group: System Environment/Libraries |
---|
6 | |
---|
7 | Vendor: Project Vine |
---|
8 | Distribution: Vine Linux |
---|
9 | |
---|
10 | License: LGPLv3+ |
---|
11 | URL: http://www.multiprecision.org/ |
---|
12 | Source0: https://ftp.gnu.org/gnu/mpc/mpc-1.1.0.tar.gz |
---|
13 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
---|
14 | BuildRequires: gmp-devel >= 4.3.2 |
---|
15 | BuildRequires: mpfr-devel >= 2.4.2 |
---|
16 | BuildRequires: grep |
---|
17 | BuildRequires: texinfo |
---|
18 | |
---|
19 | %description |
---|
20 | MPC is a C library for the arithmetic of complex numbers with |
---|
21 | arbitrarily high precision and correct rounding of the result. It is |
---|
22 | built upon and follows the same principles as Mpfr. |
---|
23 | |
---|
24 | %package devel |
---|
25 | Summary: Header and shared development libraries for MPC |
---|
26 | Group: Development/Libraries |
---|
27 | Requires: %{name} = %{version}-%{release} |
---|
28 | Requires: gmp-devel |
---|
29 | Requires: mpfr-devel |
---|
30 | Requires(post): /sbin/install-info |
---|
31 | Requires(preun): /sbin/install-info |
---|
32 | |
---|
33 | %description devel |
---|
34 | Header files and shared object symlinks for MPC is a C library. |
---|
35 | |
---|
36 | %prep |
---|
37 | %setup -q -n mpc-%{version} |
---|
38 | |
---|
39 | %build |
---|
40 | export CPPFLAGS="%{optflags} -std=gnu99" |
---|
41 | export CFLAGS="%{optflags} -std=gnu99" |
---|
42 | export EGREP=egrep |
---|
43 | |
---|
44 | %configure --disable-static |
---|
45 | make %{?_smp_mflags} |
---|
46 | |
---|
47 | %check |
---|
48 | make check |
---|
49 | |
---|
50 | %install |
---|
51 | rm -rf %{buildroot} |
---|
52 | make install DESTDIR=%{buildroot} |
---|
53 | |
---|
54 | rm -f %{buildroot}/%{_libdir}/libmpc.{l,}a |
---|
55 | rm -f %{buildroot}/%{_infodir}/dir |
---|
56 | |
---|
57 | %clean |
---|
58 | rm -rf %{buildroot} |
---|
59 | |
---|
60 | %post -p /sbin/ldconfig |
---|
61 | %postun -p /sbin/ldconfig |
---|
62 | |
---|
63 | %post devel |
---|
64 | if [ -f %{_infodir}/mpc.info.gz ]; then # for --excludedocs |
---|
65 | /sbin/install-info %{_infodir}/mpc.info.gz %{_infodir}/dir || : |
---|
66 | fi |
---|
67 | |
---|
68 | %preun devel |
---|
69 | if [ $1 = 0 ]; then |
---|
70 | if [ -f %{_infodir}/mpc.info.gz ]; then # for --excludedocs |
---|
71 | /sbin/install-info --delete %{_infodir}/mpc.info.gz %{_infodir}/dir || : |
---|
72 | fi |
---|
73 | fi |
---|
74 | |
---|
75 | %files |
---|
76 | %defattr(-,root,root,-) |
---|
77 | %license COPYING.LESSER |
---|
78 | %doc README NEWS |
---|
79 | %{_libdir}/libmpc.so.* |
---|
80 | |
---|
81 | %files devel |
---|
82 | %defattr(-,root,root,-) |
---|
83 | %{_libdir}/libmpc.so |
---|
84 | %{_includedir}/mpc.h |
---|
85 | %{_infodir}/*.info* |
---|
86 | |
---|
87 | %changelog |
---|
88 | * Wed Mar 18 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.1.0-1 |
---|
89 | - new upstream release. |
---|
90 | |
---|
91 | * Fri May 20 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.3-1 |
---|
92 | - updated to 1.0.3 |
---|
93 | |
---|
94 | * Fri Sep 12 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 1.0.2-1 |
---|
95 | - updated to 1.0.2 |
---|
96 | - change Group to System Environment/Libraries (libmpc) |
---|
97 | |
---|
98 | * Mon Nov 04 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.0.1-1 |
---|
99 | - update to 1.0.1 |
---|
100 | |
---|
101 | * Tue Nov 01 2011 NAKAMURA Kenta <kenta@vinelinux.org> - 0.9-2 |
---|
102 | - initial build for Vine Linux |
---|
103 | |
---|
104 | * Wed Jun 22 2011 <pmachata@redhat.com> - 0.9-1 |
---|
105 | - Upstream 0.9 |
---|
106 | |
---|
107 | * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.3-0.3.svn855 |
---|
108 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild |
---|
109 | |
---|
110 | * Tue Nov 30 2010 Petr Machata <pmachata@redhat.com> - 0.8.3-0.2.svn855 |
---|
111 | - Bump for rebuild against the new mpfr |
---|
112 | |
---|
113 | * Fri Nov 19 2010 Petr Machata <pmachata@redhat.com> - 0.8.3-0.1.svn855 |
---|
114 | - Devel updates (to-be-0.8.3, SVN release 855) |
---|
115 | - New functions mpc_set_dc, mpc_set_ldc, mpc_get_dc, mpc_get_ldc |
---|
116 | - Speed-up mpc_pow_si and mpc_pow_z |
---|
117 | - Bug fixes in trigonometric functions, exp, sqrt |
---|
118 | - Upstream 0.8.2 |
---|
119 | - Speed-up mpc_pow_ui |
---|
120 | - Adjust BuildRequires |
---|
121 | - Resolves: #653931 |
---|
122 | |
---|
123 | * Wed Jan 20 2010 Petr Machata <pmachata@redhat.com> - 0.8.1-1 |
---|
124 | - Upstream 0.8.1 |
---|
125 | - acosh, asinh, atanh: swap of precisions between real and imaginary parts |
---|
126 | - atan: memory leak |
---|
127 | - log: wrong ternary value in data file; masked by bug in Mpfr 2.4.1 |
---|
128 | - Resolves: #555471 FTBFS libmpc-0.8-3.fc13 |
---|
129 | |
---|
130 | * Fri Nov 13 2009 Petr Machata <pmachata@redhat.com> - 0.8-3 |
---|
131 | - Require mpfr-devel, gmp-devel in -devel subpackage |
---|
132 | - Don't pass --entry to install-info |
---|
133 | |
---|
134 | * Thu Nov 12 2009 Petr Machata <pmachata@redhat.com> - 0.8-2 |
---|
135 | - Rename the package to libmpc, it's a better choice of name |
---|
136 | - %%preun should uninstall mpc's info page, not make's |
---|
137 | - Move info page to -devel |
---|
138 | - BR on -devel packages |
---|
139 | - Drop postscript documentation |
---|
140 | |
---|
141 | * Thu Nov 12 2009 Petr Machata <pmachata@redhat.com> - 0.8-1 |
---|
142 | - Initial package. |
---|