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

Last change on this file since 362 was 362, checked in by Yuri Dario, 12 years ago

spec: add mpc build.

File size: 1.9 KB
Line 
1
2Name: mpc
3BuildRequires: gmp-devel
4BuildRequires: mpfr-devel
5Version: 1.0.1
6Release: 1
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
58rm $RPM_BUILD_ROOT%{_infodir}/dir
59
60cp -p src/mpc.dll $RPM_BUILD_ROOT%{_libdir}
61cp -p src/.libs/mpc_s.a $RPM_BUILD_ROOT%{_libdir}
62
63%files -n libmpc3
64%defattr(-,root,root)
65%{_libdir}/mpc.dll
66
67%files devel
68%defattr(-,root,root)
69%doc AUTHORS NEWS COPYING.LESSER
70%doc %{_infodir}/*
71%{_libdir}/mpc*.a
72%{_libdir}/mpc.dll
73%{_includedir}/mpc.h
74
75%changelog
76* Sat Oct 26 2013 yd
77- initial rpm build as dll.
Note: See TracBrowser for help on using the repository browser.