# # spec file for package mpc (Version 0.6) # # 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 %define debug_package_requires libmpc1 = %{version}-%{release} Name: mpc BuildRequires: gmp-devel mpfr-devel License: LGPL v2.1 or later Group: Development/Libraries/C and C++ AutoReqProv: on Version: 0.6 Release: 3 Summary: MPC multiple-precision complex shared library Url: http://www.multiprecision.org/mpc/ Source: mpc-%{version}.tar.bz2 Patch: mpc-r530.patch 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 libmpc1 License: LGPL v2.1 or later Summary: MPC multiple-precision complex shared library Group: Development/Libraries/C and C++ AutoReqProv: on %description -n libmpc1 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 License: LGPL v2.1 or later Summary: MPC multiple-precision complex library development files Group: Development/Libraries/C and C++ Requires: libmpc1 = %{version} mpfr-devel AutoReqProv: on PreReq: %install_info_prereq %description devel MPC multiple-precision complex library development files. %prep %setup -q %patch %build %configure --disable-static --with-pic make %{?jobs:-j%jobs} %check make check %{?jobs:-j%jobs} %install %makeinstall rm $RPM_BUILD_ROOT%{_libdir}/libmpc.la %post -n libmpc1 -p /sbin/ldconfig %post devel %install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz %postun -n libmpc1 -p /sbin/ldconfig %postun devel %install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz %clean rm -rf $RPM_BUILD_ROOT %files -n libmpc1 %defattr(-,root,root) %{_libdir}/libmpc.so.1* %files devel %defattr(-,root,root) %doc AUTHORS NEWS COPYING.LIB %doc %{_infodir}/mpc.info.gz %{_libdir}/libmpc.so /usr/include/mpc.h %changelog * Mon Jun 08 2009 crrodriguez@suse.de - remove static libraries * Tue May 19 2009 rguenther@suse.de - Add patch to fix testsuite failures with -D_FORTIFY_SOURCE=2. - Fix shlib package name. * Wed Apr 01 2009 rguenther@suse.de - Update to MPC version 0.6. * Sun Mar 15 2009 rguenther@suse.de - Initial packaging of MPC version 0.5.2.