2012-12-14 21:44:12 +01:00
|
|
|
#
|
|
|
|
# spec file for package mpfi
|
|
|
|
#
|
2019-08-25 22:06:10 +02:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2012-12-14 21:44:12 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-08-25 22:06:10 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-12-14 21:44:12 +01:00
|
|
|
#
|
|
|
|
|
2018-01-19 01:09:50 +01:00
|
|
|
|
2012-12-14 21:44:12 +01:00
|
|
|
Name: mpfi
|
|
|
|
%define lname libmpfi0
|
2019-08-25 22:06:10 +02:00
|
|
|
Version: 1.5.4
|
2012-12-14 21:44:12 +01:00
|
|
|
Release: 0
|
2018-01-19 01:09:50 +01:00
|
|
|
Summary: Multi-precision floating-point interval arithmetic computation library
|
2019-08-25 22:06:10 +02:00
|
|
|
License: LGPL-2.1-or-later
|
2018-01-19 01:09:50 +01:00
|
|
|
Group: Productivity/Scientific/Math
|
2019-08-25 22:06:10 +02:00
|
|
|
URL: http://mpfi.gforge.inria.fr/
|
2012-12-14 21:44:12 +01:00
|
|
|
|
|
|
|
#SVN-Clone: svn://scm.gforge.inria.fr/svnroot/mpfi/trunk
|
2018-01-19 01:09:50 +01:00
|
|
|
# Download depends on the file ID, not the filename!
|
2019-08-25 22:06:10 +02:00
|
|
|
Source: https://gforge.inria.fr/frs/download.php/file/38111/mpfi-1.5.4.tgz
|
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
2018-01-19 01:09:50 +01:00
|
|
|
BuildRequires: gmp-devel >= 4.1.0
|
2019-08-25 22:06:10 +02:00
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: makeinfo
|
|
|
|
BuildRequires: mpfr-devel >= 3
|
2018-01-19 01:09:50 +01:00
|
|
|
BuildRequires: pkgconfig
|
2019-08-25 22:06:10 +02:00
|
|
|
Requires(post): %install_info_prereq
|
|
|
|
Requires(postun): %install_info_prereq
|
2012-12-14 21:44:12 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
MPFI is a C library for arbitrary precision interval arithmetic with
|
|
|
|
intervals represented using MPFR reliable floating-point numbers.
|
|
|
|
|
|
|
|
The purpose of an arbitrary precision interval arithmetic is on the
|
|
|
|
one hand to get "guaranteed" results, thanks to interval computation,
|
|
|
|
and on the other hand to obtain accurate results, thanks to multiple
|
|
|
|
precision arithmetic.
|
|
|
|
|
|
|
|
%package -n %lname
|
2018-01-19 01:09:50 +01:00
|
|
|
Summary: Multi-precision floating-point interval arithmetic computation library
|
|
|
|
Group: System/Libraries
|
2012-12-14 21:44:12 +01:00
|
|
|
|
|
|
|
%description -n %lname
|
|
|
|
MPFI is a C library for arbitrary precision interval arithmetic with
|
|
|
|
intervals represented using MPFR reliable floating-point numbers.
|
|
|
|
|
|
|
|
The purpose of an arbitrary precision interval arithmetic is on the
|
|
|
|
one hand to get "guaranteed" results, thanks to interval computation,
|
|
|
|
and on the other hand to obtain accurate results, thanks to multiple
|
|
|
|
precision arithmetic.
|
|
|
|
|
|
|
|
%package devel
|
2018-01-19 01:09:50 +01:00
|
|
|
Summary: Development files for the MPFI interval arithmetic computation library
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %lname = %version
|
2012-12-14 21:44:12 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
MPFI is a C library for arbitrary precision interval arithmetic with
|
|
|
|
intervals represented using MPFR reliable floating-point numbers.
|
|
|
|
|
|
|
|
This subpackage provides the development headers and libraries for it.
|
|
|
|
|
|
|
|
%prep
|
2019-08-25 22:06:10 +02:00
|
|
|
%autosetup -p1
|
2012-12-14 21:44:12 +01:00
|
|
|
|
|
|
|
%build
|
2019-08-25 22:06:10 +02:00
|
|
|
./autogen.sh
|
2012-12-14 21:44:12 +01:00
|
|
|
%configure --disable-static
|
2019-08-25 22:06:10 +02:00
|
|
|
make %{?_smp_mflags}
|
2012-12-14 21:44:12 +01:00
|
|
|
|
|
|
|
%install
|
2019-08-25 22:06:10 +02:00
|
|
|
%make_install
|
|
|
|
rm -f "%buildroot/%_libdir"/*.la
|
2012-12-14 21:44:12 +01:00
|
|
|
|
2019-08-25 22:06:10 +02:00
|
|
|
%check
|
|
|
|
#make check #upstream broke it in 1.5.4
|
2012-12-14 21:44:12 +01:00
|
|
|
|
2019-08-25 22:06:10 +02:00
|
|
|
%post -n %lname -p /sbin/ldconfig
|
2012-12-14 21:44:12 +01:00
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%post devel
|
|
|
|
%install_info --info-dir="%_infodir" "%_infodir/mpfi.info.gz"
|
|
|
|
|
|
|
|
%postun devel
|
|
|
|
%install_info_delete --info-dir="%_infodir" "%_infodir/mpfi.info.gz"
|
|
|
|
|
|
|
|
%files -n %lname
|
|
|
|
%_libdir/libmpfi.so.0*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%_includedir/mpfi*.h
|
|
|
|
%_libdir/libmpfi.so
|
|
|
|
%_infodir/mpfi.info*
|
|
|
|
|
|
|
|
%changelog
|