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

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

spec: mpc, resolve dll conflict with devel package, fixes ticket#82.

File size: 2.0 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
44%prep
45%setup -q
46%patch0 -p1 -b .os2~
47
48%build
49export CONFIG_SHELL="/@unixroot/usr/bin/sh.exe"
50%configure \
51 --disable-shared --enable-static \
52 "--cache-file=%{_topdir}/cache/%{name}-%{_target_cpu}.cache"
53make %{?_smp_mflags}
54
55%install
56%makeinstall
57rm $RPM_BUILD_ROOT%{_libdir}/libmpc.la
58
59cp -p src/mpc.dll $RPM_BUILD_ROOT%{_libdir}
60cp -p src/.libs/mpc_s.a $RPM_BUILD_ROOT%{_libdir}
61
62%files -n libmpc3
63%defattr(-,root,root)
64%{_libdir}/mpc.dll
65
66%files devel
67%defattr(-,root,root)
68%doc AUTHORS NEWS COPYING.LESSER
69%doc %{_infodir}/*
70%{_libdir}/mpc*.a
71%{_includedir}/mpc.h
72
73%changelog
74* Thu Aug 05 2014 yd
75- resolve dll conflict with devel package, fixes ticket#82.
76
77* Wed Nov 20 2013 yd
78- rebuild with newer gcc runtime.
79
80* Sat Oct 26 2013 yd
81- initial rpm build as dll.
Note: See TracBrowser for help on using the repository browser.