2009-05-28 04:45:15 +02:00
|
|
|
#
|
2010-01-11 13:58:50 +01:00
|
|
|
# spec file for package mpc (Version 0.8.1)
|
2009-05-28 04:45:15 +02:00
|
|
|
#
|
|
|
|
# Copyright (c) 2009 SUSE LINUX Products 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2009-09-25 00:50:11 +02:00
|
|
|
%define debug_package_requires libmpc2 = %{version}-%{release}
|
2009-05-28 04:45:15 +02:00
|
|
|
|
|
|
|
Name: mpc
|
|
|
|
BuildRequires: gmp-devel mpfr-devel
|
2009-12-18 14:46:48 +01:00
|
|
|
License: LGPLv2.1+
|
2009-05-28 04:45:15 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
AutoReqProv: on
|
2010-01-11 13:58:50 +01:00
|
|
|
Version: 0.8.1
|
2009-12-18 14:46:48 +01:00
|
|
|
Release: 2
|
2009-05-28 04:45:15 +02:00
|
|
|
Summary: MPC multiple-precision complex shared library
|
|
|
|
Url: http://www.multiprecision.org/mpc/
|
|
|
|
Source: mpc-%{version}.tar.bz2
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-09-25 00:50:11 +02:00
|
|
|
%package -n libmpc2
|
2009-12-18 14:46:48 +01:00
|
|
|
License: LGPLv2.1+
|
2009-05-28 04:45:15 +02:00
|
|
|
Summary: MPC multiple-precision complex shared library
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
AutoReqProv: on
|
|
|
|
|
2009-09-25 00:50:11 +02:00
|
|
|
%description -n libmpc2
|
2009-05-28 04:45:15 +02:00
|
|
|
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
|
2009-12-18 14:46:48 +01:00
|
|
|
License: LGPLv2.1+
|
2009-05-28 04:45:15 +02:00
|
|
|
Summary: MPC multiple-precision complex library development files
|
|
|
|
Group: Development/Libraries/C and C++
|
2009-09-25 00:50:11 +02:00
|
|
|
Requires: libmpc2 = %{version} mpfr-devel
|
2009-05-28 04:45:15 +02:00
|
|
|
AutoReqProv: on
|
|
|
|
PreReq: %install_info_prereq
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
MPC multiple-precision complex library development files.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2009-07-13 21:53:15 +02:00
|
|
|
%configure
|
2009-05-28 04:45:15 +02:00
|
|
|
make %{?jobs:-j%jobs}
|
|
|
|
|
|
|
|
%check
|
|
|
|
make check %{?jobs:-j%jobs}
|
|
|
|
|
|
|
|
%install
|
|
|
|
%makeinstall
|
|
|
|
rm $RPM_BUILD_ROOT%{_libdir}/libmpc.la
|
|
|
|
|
2009-09-25 00:50:11 +02:00
|
|
|
%post -n libmpc2 -p /sbin/ldconfig
|
2009-05-28 04:45:15 +02:00
|
|
|
|
|
|
|
%post devel
|
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
|
|
|
2009-09-25 00:50:11 +02:00
|
|
|
%postun -n libmpc2 -p /sbin/ldconfig
|
2009-05-28 04:45:15 +02:00
|
|
|
|
|
|
|
%postun devel
|
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2009-09-25 00:50:11 +02:00
|
|
|
%files -n libmpc2
|
2009-05-28 04:45:15 +02:00
|
|
|
%defattr(-,root,root)
|
2009-09-25 00:50:11 +02:00
|
|
|
%{_libdir}/libmpc.so.2*
|
2009-05-28 04:45:15 +02:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc AUTHORS NEWS COPYING.LIB
|
|
|
|
%doc %{_infodir}/mpc.info.gz
|
2009-07-13 21:53:15 +02:00
|
|
|
%{_libdir}/libmpc.a
|
2009-05-28 04:45:15 +02:00
|
|
|
%{_libdir}/libmpc.so
|
|
|
|
/usr/include/mpc.h
|
|
|
|
|
|
|
|
%changelog
|