# $Owl: Owl/packages/mpc/mpc.spec Exp $ Summary: C library for multiple precision complex arithmetic Name: mpc Version: 0.9 Release: owl1 Epoch: 1 License: LGPLv2+ Group: Development/Tools URL: http://www.multiprecision.org/ Source0: mpc-%{version}.tar.gz BuildRequires: gmp-devel >= 4.3.2 BuildRequires: mpfr-devel >= 2.4.2 BuildRequires: texinfo BuildRoot: /override/%name-%version %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 devel Summary: Header and shared development libraries for MPC Group: Development/Libraries Requires: %{name} = %{version}-%{release} Requires: mpfr-devel gmp-devel %description devel Header files and shared object symlinks for MPC is a C library. %prep %setup -q -n mpc-%{version} %build export CPPFLAGS="%{optflags} -std=gnu99" export CFLAGS="%{optflags} -std=gnu99" export EGREP=egrep %configure make %{?_smp_mflags} %check make check %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT rm -f $RPM_BUILD_ROOT/%{_libdir}/libmpc.{l,}a rm -f ${RPM_BUILD_ROOT}/%{_infodir}/dir %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %post devel if [ -f %{_infodir}/mpc.info.gz ]; then # for --excludedocs /sbin/install-info %{_infodir}/mpc.info.gz %{_infodir}/dir || : fi %preun devel if [ $1 = 0 ]; then if [ -f %{_infodir}/mpc.info.gz ]; then # for --excludedocs /sbin/install-info --delete %{_infodir}/mpc.info.gz %{_infodir}/dir || : fi fi %files %defattr(-,root,root,-) %doc README NEWS COPYING.LIB %{_libdir}/libmpc.so.* %files devel %defattr(-,root,root,-) %{_libdir}/libmpc.so %{_includedir}/mpc.h %{_infodir}/*.info* %changelog