| 1 |  | 
|---|
| 2 | Name:           mpc | 
|---|
| 3 | BuildRequires:  gmp-devel | 
|---|
| 4 | BuildRequires:  mpfr-devel | 
|---|
| 5 | Version:        1.0.1 | 
|---|
| 6 | Release:        3 | 
|---|
| 7 | Summary:        MPC multiple-precision complex shared library | 
|---|
| 8 | License:        LGPL-3.0+ | 
|---|
| 9 | Group:          Development/Libraries/C and C++ | 
|---|
| 10 | Url:            http://www.multiprecision.org/mpc/ | 
|---|
| 11 | Source:         mpc-%{version}.tar.gz | 
|---|
| 12 | Patch0:         mpc-os2.patch | 
|---|
| 13 | BuildRoot:      %{_tmppath}/%{name}-%{version}-build | 
|---|
| 14 |  | 
|---|
| 15 | %description | 
|---|
| 16 | MPC is a C library for the arithmetic of complex numbers with | 
|---|
| 17 | arbitrarily high precision and correct rounding of the result. It is | 
|---|
| 18 | built upon and follows the same principles as MPFR. | 
|---|
| 19 |  | 
|---|
| 20 |  | 
|---|
| 21 |  | 
|---|
| 22 | %package -n libmpc3 | 
|---|
| 23 | Summary:        MPC multiple-precision complex shared library | 
|---|
| 24 | Group:          Development/Libraries/C and C++ | 
|---|
| 25 |  | 
|---|
| 26 | %description -n libmpc3 | 
|---|
| 27 | MPC is a C library for the arithmetic of complex numbers with | 
|---|
| 28 | arbitrarily high precision and correct rounding of the result. It is | 
|---|
| 29 | built upon and follows the same principles as MPFR. | 
|---|
| 30 |  | 
|---|
| 31 |  | 
|---|
| 32 |  | 
|---|
| 33 | %package devel | 
|---|
| 34 | Summary:        MPC multiple-precision complex library development files | 
|---|
| 35 | Group:          Development/Libraries/C and C++ | 
|---|
| 36 | Requires:       libmpc3 = %{version} | 
|---|
| 37 | Requires:       mpfr-devel | 
|---|
| 38 |  | 
|---|
| 39 | %description devel | 
|---|
| 40 | MPC multiple-precision complex library development files. | 
|---|
| 41 |  | 
|---|
| 42 |  | 
|---|
| 43 | %package debug | 
|---|
| 44 | Summary: HLL debug data for exception handling support. | 
|---|
| 45 |  | 
|---|
| 46 | %description debug | 
|---|
| 47 | HLL debug data for exception handling support. | 
|---|
| 48 |  | 
|---|
| 49 |  | 
|---|
| 50 | %prep | 
|---|
| 51 | %setup -q | 
|---|
| 52 | %patch0 -p1 -b .os2~ | 
|---|
| 53 |  | 
|---|
| 54 | %build | 
|---|
| 55 | export CONFIG_SHELL="/@unixroot/usr/bin/sh.exe" | 
|---|
| 56 | %configure \ | 
|---|
| 57 | --disable-shared --enable-static \ | 
|---|
| 58 | "--cache-file=%{_topdir}/cache/%{name}-%{_target_cpu}.cache" | 
|---|
| 59 | make %{?_smp_mflags} | 
|---|
| 60 |  | 
|---|
| 61 | %install | 
|---|
| 62 | %makeinstall | 
|---|
| 63 | rm $RPM_BUILD_ROOT%{_libdir}/libmpc.la | 
|---|
| 64 |  | 
|---|
| 65 | cp -p src/mpc.dll $RPM_BUILD_ROOT%{_libdir} | 
|---|
| 66 | cp -p src/.libs/mpc_s.a $RPM_BUILD_ROOT%{_libdir} | 
|---|
| 67 |  | 
|---|
| 68 | %files -n libmpc3 | 
|---|
| 69 | %defattr(-,root,root) | 
|---|
| 70 | %{_libdir}/mpc.dll | 
|---|
| 71 |  | 
|---|
| 72 | %files devel | 
|---|
| 73 | %defattr(-,root,root) | 
|---|
| 74 | %doc AUTHORS NEWS COPYING.LESSER | 
|---|
| 75 | %doc %{_infodir}/* | 
|---|
| 76 | %{_libdir}/mpc*.a | 
|---|
| 77 | %{_includedir}/mpc.h | 
|---|
| 78 |  | 
|---|
| 79 | %files debug | 
|---|
| 80 | %defattr(-,root,root) | 
|---|
| 81 | %{_libdir}/*.dbg | 
|---|
| 82 |  | 
|---|
| 83 | %changelog | 
|---|
| 84 | * Thu Aug 05 2014 yd | 
|---|
| 85 | - resolve dll conflict with devel package, fixes ticket#82. | 
|---|
| 86 | - added debug package with symbolic info for exceptq. | 
|---|
| 87 |  | 
|---|
| 88 | * Wed Nov 20 2013 yd | 
|---|
| 89 | - rebuild with newer gcc runtime. | 
|---|
| 90 |  | 
|---|
| 91 | * Sat Oct 26 2013 yd | 
|---|
| 92 | - initial rpm build as dll. | 
|---|