source: spec/trunk/SPECS/mpc.spec@ 1010

Last change on this file since 1010 was 434, checked in by Yuri Dario, 11 years ago

spec: mpc, added debug package with symbolic info for exceptq.

File size: 2.2 KB
Line 
1
2Name: mpc
3BuildRequires: gmp-devel
4BuildRequires: mpfr-devel
5Version: 1.0.1
6Release: 3
7Summary: MPC multiple-precision complex shared library
8License: LGPL-3.0+
9Group: Development/Libraries/C and C++
10Url: http://www.multiprecision.org/mpc/
11Source: mpc-%{version}.tar.gz
12Patch0: mpc-os2.patch
13BuildRoot: %{_tmppath}/%{name}-%{version}-build
14
15%description
16MPC is a C library for the arithmetic of complex numbers with
17arbitrarily high precision and correct rounding of the result. It is
18built upon and follows the same principles as MPFR.
19
20
21
22%package -n libmpc3
23Summary: MPC multiple-precision complex shared library
24Group: Development/Libraries/C and C++
25
26%description -n libmpc3
27MPC is a C library for the arithmetic of complex numbers with
28arbitrarily high precision and correct rounding of the result. It is
29built upon and follows the same principles as MPFR.
30
31
32
33%package devel
34Summary: MPC multiple-precision complex library development files
35Group: Development/Libraries/C and C++
36Requires: libmpc3 = %{version}
37Requires: mpfr-devel
38
39%description devel
40MPC multiple-precision complex library development files.
41
42
43%package debug
44Summary: HLL debug data for exception handling support.
45
46%description debug
47HLL debug data for exception handling support.
48
49
50%prep
51%setup -q
52%patch0 -p1 -b .os2~
53
54%build
55export CONFIG_SHELL="/@unixroot/usr/bin/sh.exe"
56%configure \
57 --disable-shared --enable-static \
58 "--cache-file=%{_topdir}/cache/%{name}-%{_target_cpu}.cache"
59make %{?_smp_mflags}
60
61%install
62%makeinstall
63rm $RPM_BUILD_ROOT%{_libdir}/libmpc.la
64
65cp -p src/mpc.dll $RPM_BUILD_ROOT%{_libdir}
66cp -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.
Note: See TracBrowser for help on using the repository browser.