first version
This commit is contained in:
parent
dd05cf845f
commit
fef5c797f2
@ -0,0 +1 @@
|
||||
mpfr-2.2.1.tar.bz2
|
||||
1082
mpfr-2.2.1-upstream.patch
Normal file
1082
mpfr-2.2.1-upstream.patch
Normal file
File diff suppressed because it is too large
Load Diff
90
mpfr.spec
Normal file
90
mpfr.spec
Normal file
@ -0,0 +1,90 @@
|
||||
Summary: A C library for multiple-precision floating-point computations
|
||||
Name: mpfr
|
||||
Version: 2.2.1
|
||||
Release: 1
|
||||
URL: http://www.mpfr.org/
|
||||
Source0: http://www.mpfr.org/mpfr-current/mpfr-%{version}.tar.bz2
|
||||
Patch0: mpfr-2.2.1-upstream.patch
|
||||
License: LGPL
|
||||
Group: System Environment/Libraries
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
BuildRequires: automake16 autoconf libtool gmp-devel
|
||||
Requires(post): /sbin/ldconfig
|
||||
Requires(postun): /sbin/ldconfig
|
||||
Conflicts: gmp < 4.1.4-15
|
||||
|
||||
%description
|
||||
The MPFR library is a C library for multiple-precision floating-point
|
||||
computations with "correct rounding". The MPFR is efficient and
|
||||
also has a well-defined semantics. It copies the good ideas from the
|
||||
ANSI/IEEE-754 standard for double-precision floating-point arithmetic
|
||||
(53-bit mantissa). MPFR is based on the GMP multiple-precision library.
|
||||
|
||||
%package devel
|
||||
Summary: Development tools A C library for mpfr library
|
||||
Group: Development/Libraries
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires(post): /sbin/install-info
|
||||
Requires(preun): /sbin/install-info
|
||||
|
||||
%description devel
|
||||
The static libraries, header files and documentation for using the MPFR
|
||||
multiple-precision floating-point library in applications.
|
||||
|
||||
If you want to develop applications which will use the MPFR library,
|
||||
you'll need to install the mpfr-devel package. You'll also need to
|
||||
install the mpfr package.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1 -b .up
|
||||
|
||||
%build
|
||||
|
||||
%configure --disable-assert --enable-shared
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
iconv -f iso-8859-1 -t utf-8 mpfr.info >mpfr.info.aux
|
||||
mv mpfr.info.aux mpfr.info
|
||||
make install DESTDIR=$RPM_BUILD_ROOT
|
||||
rm -f $RPM_BUILD_ROOT%{_libdir}/libmpfr.la
|
||||
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
||||
rm -f $RPM_BUILD_ROOT%{_libdir}/libmpfr.a
|
||||
cd ..
|
||||
|
||||
|
||||
%check
|
||||
make %{?_smp_mflags} check
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
%post devel
|
||||
/sbin/install-info %{_infodir}/mpfr.info.gz %{_infodir}/dir || :
|
||||
|
||||
%preun devel
|
||||
if [ "$1" = 0 ]; then
|
||||
/sbin/install-info --delete %{_infodir}/mpfr.info.gz %{_infodir}/dir || :
|
||||
fi
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc COPYING COPYING.LIB NEWS README
|
||||
%{_libdir}/libmpfr.so.*
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root,-)
|
||||
%{_libdir}/libmpfr.so
|
||||
%{_includedir}/*.h
|
||||
%{_infodir}/mpfr.info*
|
||||
|
||||
%changelog
|
||||
* Mon Jan 16 2007 Ivana Varekova <varekova@redhat.com> 2.2.1-1
|
||||
- started
|
||||
|
||||
Loading…
Reference in New Issue
Block a user