mpc/mpc.spec
Richard Biener 0e424088e4 - Update to version 1.1.0.
- Compatible with mpfr 4.0.0, obsoletes mpc-1.0.3-addsubulp.diff
    and mpc-1.0.3-fmma.diff.
  - New functions mpc_cmp_abs and mpc_rootofunity
  - Rewrite of the testing framework
  - New mpcbench tool, used with make bench
  - Fixed handling of over- and underflows with directed rounding in
    the "other direction" for mpc_cos, mpc_sin, mpc_exp and mpc_pow
  - Fixed a bug in mpc_atan(0,y) with |y| near 1

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/mpc?expand=0&rev=37
2018-01-16 10:43:29 +00:00

98 lines
2.9 KiB
RPMSpec

#
# spec file for package mpc
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: mpc
Version: 1.1.0
Release: 0
Summary: MPC multiple-precision complex shared library
License: LGPL-3.0+
Group: Development/Libraries/C and C++
Url: http://www.multiprecision.org/mpc/
Source0: http://www.multiprecision.org/mpc/download/mpc-%{version}.tar.gz
Source1: http://www.multiprecision.org/mpc/download/mpc-%{version}.tar.gz.sig
Source2: %{name}.keyring
Source3: baselibs.conf
BuildRequires: gmp-devel
BuildRequires: mpfr-devel
Requires(post): %{install_info_prereq}
Requires(preun): %{install_info_prereq}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
MPC is a C library for the arithmetic of complex numbers with
arbitrarily high precision and correct rounding of the result. It is
built upon and follows the same principles as MPFR.
%package -n libmpc3
Summary: MPC multiple-precision complex shared library
Group: Development/Libraries/C and C++
%description -n libmpc3
MPC is a C library for the arithmetic of complex numbers with
arbitrarily high precision and correct rounding of the result. It is
built upon and follows the same principles as MPFR.
%package devel
Summary: MPC multiple-precision complex library development files
Group: Development/Libraries/C and C++
Requires: libmpc3 = %{version}
Requires: mpfr-devel
# FIXME: use proper Requires(pre/post/preun/...)
PreReq: %{install_info_prereq}
%description devel
MPC multiple-precision complex library development files.
%prep
%setup -q
%build
%configure
make %{?_smp_mflags}
%check
make check %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
rm %{buildroot}%{_libdir}/libmpc.la
%post -n libmpc3 -p /sbin/ldconfig
%post devel
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%postun -n libmpc3 -p /sbin/ldconfig
%preun devel
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%files -n libmpc3
%defattr(-,root,root)
%{_libdir}/libmpc.so.3*
%files devel
%defattr(-,root,root)
%doc AUTHORS NEWS COPYING.LESSER
%{_infodir}/mpc.info.gz
%{_libdir}/libmpc.a
%{_libdir}/libmpc.so
%{_includedir}/mpc.h
%changelog