Name: qd Version: 2.3.11 Release: 2%{?dist} Summary: Double-Double and Quad-Double Arithmetic Group: Applications/Engineering License: BSD URL: http://www.cs.berkeley.edu/~yozo/ Source0: http://www.cs.berkeley.edu/%7Eyozo/software/qd-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) # Patch to enable building shared library Patch0: qd-2.3.11-libtool.patch BuildRequires: autoconf BuildRequires: automake BuildRequires: libtool BuildRequires: gcc-c++ BuildRequires: gcc-gfortran %description This package provides numeric types of twice the precision of IEEE double (106 mantissa bits, or approximately 32 decimal digits) and four times the precision of IEEE double (212 mantissa bits, or approximately 64 decimal digits). Due to features such as operator and function overloading, these facilities can be utilized with only minor modifications to conventional C++ and Fortran-90 programs. In addition to the basic arithmetic operations (add, subtract, multiply, divide, square root), common transcendental functions such as the exponential, logarithm, trigonometric and hyperbolic functions are also included. %package devel Summary: Double-Double and Quad-Double Arithmetic Group: Applications/Engineering Requires: qd = %{version}-%{release} Obsoletes: qd-static < %{version}-%{release} %description devel This package provides numeric types of twice the precision of IEEE double (106 mantissa bits, or approximately 32 decimal digits) and four times the precision of IEEE double (212 mantissa bits, or approximately 64 decimal digits). Due to features such as operator and function overloading, these facilities can be utilized with only minor modifications to conventional C++ and Fortran-90 programs. In addition to the basic arithmetic operations (add, subtract, multiply, divide, square root), common transcendental functions such as the exponential, logarithm, trigonometric and hyperbolic functions are also included. %prep %setup -q -n qd-%{version} %patch0 -p1 %build export CC=gcc export CXX=g++ export FC=gfortran export FCFLAGS="%{optflags}" autoreconf -i %configure --enable-shared --disable-static make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT # Fix location of documentation mv %{buildroot}%{_docdir}/qd/* . rm -rf %{buildroot}%{_datadir} # Move Fortran modules to %{_fmoddir} mkdir -p %{buildroot}%{_fmoddir}/%{name} mv %{buildroot}%{_libdir}/%{name}/*.mod %{buildroot}%{_fmoddir}/%{name} # Remove la file rm %{buildroot}%{_libdir}/*.la %check make check %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc AUTHORS COPYING NEWS README TODO %{_libdir}/libqd.so.* %files devel %defattr(-,root,root,-) %doc qd.pdf %{_bindir}/qd-config %{_fmoddir}/qd/ %{_includedir}/qd/ %{_libdir}/libqd.so %{_libdir}/libqd_f_main.a %{_libdir}/libqdmod.a %changelog * Wed Nov 03 2010 Jussi Lehtola <jussilehtola@fedoraproject.org> - 2.3.11-2 - Build shared library using Nils Petersen's patch (BZ #648964). * Tue Nov 02 2010 Jussi Lehtola <jussilehtola@fedoraproject.org> - 2.3.11-1 - Update to 2.3.11. * Wed Sep 16 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 2.3.7-7 - Fix location of Fortran modules. * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.7-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Sun Mar 08 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 2.3.7-5 - Fix license. * Thu Dec 18 2008 Jussi Lehtola <jussilehtola@fedoraproject.org> - 2.3.7-4 - Change base name back to qd. * Sat Dec 13 2008 Jussi Lehtola <jussilehtola@fedoraproject.org> - 2.3.7-3 - Removed debug package. * Sat Dec 13 2008 Jussi Lehtola <jussilehtola@fedoraproject.org> - 2.3.7-2 - Review fixes. - Rename package to qd-devel. * Thu Nov 06 2008 Jussi Lehtola <jussilehtola@fedoraproject.org> - 2.3.7-1 - First release.