source: spec/trunk/SPECS/mpfr.spec@ 1036

Last change on this file since 1036 was 263, checked in by Yuri Dario, 14 years ago

spec: mpfr, A C library for multiple-precision floating-point computations, initial build.

File size: 2.3 KB
Line 
1Summary: A C library for multiple-precision floating-point computations
2Name: mpfr
3Version: 3.1.0
4Release: 2%{?dist}
5URL: http://www.mpfr.org/
6
7Source0: http://www.mpfr.org/mpfr-current/%{name}-%{version}.tar.gz
8Patch0: mpfr.diff
9
10License: LGPLv2+ and GPLv2+ and GFDL
11Group: System Environment/Libraries
12BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
13#BuildRequires: autoconf libtool gmp-devel
14Requires: gmp >= 4.2.1
15
16%description
17The MPFR library is a C library for multiple-precision floating-point
18computations with "correct rounding". The MPFR is efficient and
19also has a well-defined semantics. It copies the good ideas from the
20ANSI/IEEE-754 standard for double-precision floating-point arithmetic
21(53-bit mantissa). MPFR is based on the GMP multiple-precision library.
22
23%package devel
24Summary: Development tools A C library for mpfr library
25Group: Development/Libraries
26Requires: %{name} = %{version}-%{release}
27#Requires: gmp-devel
28
29%description devel
30The static libraries, header files and documentation for using the MPFR
31multiple-precision floating-point library in applications.
32
33If you want to develop applications which will use the MPFR library,
34you'll need to install the mpfr-devel package. You'll also need to
35install the mpfr package.
36
37%prep
38%setup -q
39%patch0 -p1 -b .os2~
40
41%build
42export CONFIG_SHELL="/@unixroot/usr/bin/sh.exe"
43%configure \
44 --disable-shared --enable-static \
45 --disable-assert \
46 "--cache-file=%{_topdir}/cache/%{name}-%{_target_cpu}.cache"
47make %{?_smp_mflags}
48
49%install
50rm -rf $RPM_BUILD_ROOT
51#iconv -f iso-8859-1 -t utf-8 mpfr.info >mpfr.info.aux
52#mv mpfr.info.aux mpfr.info
53make install DESTDIR=$RPM_BUILD_ROOT
54
55cp -p src/mpfr.dll $RPM_BUILD_ROOT%{_libdir}
56cp -p src/.libs/mpfr_s.a $RPM_BUILD_ROOT%{_libdir}
57
58rm -f $RPM_BUILD_ROOT%{_libdir}/libmpfr.la
59rm -f $RPM_BUILD_ROOT%{_infodir}/dir
60rm -f $RPM_BUILD_ROOT%{_libdir}/libmpfr.a
61cd ..
62mkdir $RPM_BUILD_ROOT/%{_docdir}/%{name}-%{version}
63mv $RPM_BUILD_ROOT/%{_docdir}/%{name}/ $RPM_BUILD_ROOT/%{_docdir}/%{name}-%{version}/
64
65%clean
66rm -rf $RPM_BUILD_ROOT
67
68%files
69%defattr(-,root,root,-)
70%doc COPYING NEWS README
71%{_libdir}/mpfr.dll
72
73%files devel
74%defattr(-,root,root,-)
75%{_libdir}/mpfr*.a
76%{_includedir}/*.h
77%{_infodir}/mpfr.info*
78
79%changelog
80* Fri Dec 02 2011 yd
81- build as dll
82
83* Thu Dec 01 2011 yd
84- build as static lib
Note: See TracBrowser for help on using the repository browser.