[5185] | 1 | Summary: C library for multiple precision complex arithmetic |
---|
| 2 | Name: libmpc |
---|
[12335] | 3 | Version: 1.1.0 |
---|
[7961] | 4 | Release: 1%{?_dist_release} |
---|
[12335] | 5 | Group: System Environment/Libraries |
---|
| 6 | |
---|
| 7 | Vendor: Project Vine |
---|
| 8 | Distribution: Vine Linux |
---|
| 9 | |
---|
[7961] | 10 | License: LGPLv3+ |
---|
[5185] | 11 | URL: http://www.multiprecision.org/ |
---|
[12335] | 12 | Source0: https://ftp.gnu.org/gnu/mpc/mpc-1.1.0.tar.gz |
---|
[5185] | 13 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
---|
| 14 | BuildRequires: gmp-devel >= 4.3.2 |
---|
| 15 | BuildRequires: mpfr-devel >= 2.4.2 |
---|
[8948] | 16 | BuildRequires: grep |
---|
[5185] | 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} |
---|
[8948] | 28 | Requires: gmp-devel |
---|
| 29 | Requires: mpfr-devel |
---|
| 30 | Requires(post): /sbin/install-info |
---|
| 31 | Requires(preun): /sbin/install-info |
---|
[5185] | 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 |
---|
[8948] | 43 | |
---|
| 44 | %configure --disable-static |
---|
[5185] | 45 | make %{?_smp_mflags} |
---|
| 46 | |
---|
| 47 | %check |
---|
| 48 | make check |
---|
| 49 | |
---|
| 50 | %install |
---|
[12335] | 51 | rm -rf %{buildroot} |
---|
| 52 | make install DESTDIR=%{buildroot} |
---|
[8948] | 53 | |
---|
[12335] | 54 | rm -f %{buildroot}/%{_libdir}/libmpc.{l,}a |
---|
| 55 | rm -f %{buildroot}/%{_infodir}/dir |
---|
[5185] | 56 | |
---|
| 57 | %clean |
---|
[12335] | 58 | rm -rf %{buildroot} |
---|
[5185] | 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,-) |
---|
[12335] | 77 | %license COPYING.LESSER |
---|
| 78 | %doc README NEWS |
---|
[5185] | 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 |
---|
[12335] | 88 | * Wed Mar 18 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.1.0-1 |
---|
| 89 | - new upstream release. |
---|
| 90 | |
---|
[10327] | 91 | * Fri May 20 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.3-1 |
---|
| 92 | - updated to 1.0.3 |
---|
| 93 | |
---|
[8948] | 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 | |
---|
[7961] | 98 | * Mon Nov 04 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.0.1-1 |
---|
| 99 | - update to 1.0.1 |
---|
| 100 | |
---|
[5185] | 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. |
---|