|
|
4f9a73 |
|
|
|
4f9a73 |
# build compat-libmpc for bootstrapping purposes
|
|
|
4f9a73 |
%define bootstrap 1
|
|
|
4f9a73 |
|
|
|
4f9a73 |
Summary: C library for multiple precision complex arithmetic
|
|
|
4f9a73 |
Name: libmpc
|
|
|
4f9a73 |
Version: 1.0.1
|
|
|
4f9a73 |
Release: 3%{?dist}
|
|
|
4f9a73 |
License: LGPLv3+ and GFDL
|
|
|
4f9a73 |
Group: Development/Tools
|
|
|
4f9a73 |
URL: http://www.multiprecision.org/
|
|
|
4f9a73 |
Source0: http://www.multiprecision.org/mpc/download/mpc-%{version}.tar.gz
|
|
|
4f9a73 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
4f9a73 |
|
|
|
4f9a73 |
BuildRequires: gmp-devel >= 4.3.2
|
|
|
4f9a73 |
BuildRequires: mpfr-devel >= 2.4.2
|
|
|
4f9a73 |
BuildRequires: texinfo
|
|
|
4f9a73 |
|
|
|
4f9a73 |
%if 0%{?bootstrap}
|
|
|
4f9a73 |
Source1: http://www.multiprecision.org/mpc/download/mpc-0.9.tar.gz
|
|
|
4f9a73 |
%endif
|
|
|
4f9a73 |
|
|
|
4f9a73 |
%description
|
|
|
4f9a73 |
|
|
|
4f9a73 |
MPC is a C library for the arithmetic of complex numbers with
|
|
|
4f9a73 |
arbitrarily high precision and correct rounding of the result. It is
|
|
|
4f9a73 |
built upon and follows the same principles as Mpfr.
|
|
|
4f9a73 |
|
|
|
4f9a73 |
%package devel
|
|
|
4f9a73 |
Summary: Header and shared development libraries for MPC
|
|
|
4f9a73 |
Group: Development/Libraries
|
|
|
4f9a73 |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
4f9a73 |
Requires: mpfr-devel gmp-devel
|
|
|
4f9a73 |
|
|
|
4f9a73 |
%description devel
|
|
|
4f9a73 |
Header files and shared object symlinks for MPC is a C library.
|
|
|
4f9a73 |
|
|
|
4f9a73 |
%package -n compat-libmpc
|
|
|
4f9a73 |
Summary: compat/bootstrap mpc-0.9 library
|
|
|
4f9a73 |
%description -n compat-libmpc
|
|
|
4f9a73 |
%{summary}.
|
|
|
4f9a73 |
|
|
|
4f9a73 |
|
|
|
4f9a73 |
%prep
|
|
|
4f9a73 |
%setup -q -n mpc-%{version} %{?bootstrap:-a 1}
|
|
|
4f9a73 |
|
|
|
4f9a73 |
%build
|
|
|
4f9a73 |
export CPPFLAGS="%{optflags} -std=gnu99"
|
|
|
4f9a73 |
export CFLAGS="%{optflags} -std=gnu99"
|
|
|
4f9a73 |
export EGREP=egrep
|
|
|
4f9a73 |
|
|
|
4f9a73 |
%if 0%{?bootstrap}
|
|
|
4f9a73 |
pushd mpc-0.9/
|
|
|
4f9a73 |
%configure --disable-static
|
|
|
4f9a73 |
make %{?_smp_mflags}
|
|
|
4f9a73 |
popd
|
|
|
4f9a73 |
%endif
|
|
|
4f9a73 |
|
|
|
4f9a73 |
%configure --disable-static
|
|
|
4f9a73 |
make %{?_smp_mflags}
|
|
|
4f9a73 |
|
|
|
4f9a73 |
%check
|
|
|
4f9a73 |
make check
|
|
|
4f9a73 |
|
|
|
4f9a73 |
%install
|
|
|
4f9a73 |
rm -rf $RPM_BUILD_ROOT
|
|
|
4f9a73 |
|
|
|
4f9a73 |
%if 0%{?bootstrap}
|
|
|
4f9a73 |
make install DESTDIR=$RPM_BUILD_ROOT -C mpc-0.9/
|
|
|
4f9a73 |
|
|
|
4f9a73 |
## remove everything but shlib
|
|
|
4f9a73 |
rm -fv $RPM_BUILD_ROOT%{_libdir}/libmpc.so
|
|
|
4f9a73 |
rm -fv $RPM_BUILD_ROOT%{_includedir}/*
|
|
|
4f9a73 |
rm -fv $RPM_BUILD_ROOT%{_infodir}/*
|
|
|
4f9a73 |
%endif
|
|
|
4f9a73 |
|
|
|
4f9a73 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
4f9a73 |
rm -f $RPM_BUILD_ROOT/%{_libdir}/libmpc.la
|
|
|
4f9a73 |
rm -f ${RPM_BUILD_ROOT}/%{_infodir}/dir
|
|
|
4f9a73 |
|
|
|
4f9a73 |
%clean
|
|
|
4f9a73 |
rm -rf $RPM_BUILD_ROOT
|
|
|
4f9a73 |
|
|
|
4f9a73 |
%post -p /sbin/ldconfig
|
|
|
4f9a73 |
%postun -p /sbin/ldconfig
|
|
|
4f9a73 |
|
|
|
4f9a73 |
%post devel
|
|
|
4f9a73 |
if [ -f %{_infodir}/mpc.info.gz ]; then # for --excludedocs
|
|
|
4f9a73 |
/sbin/install-info %{_infodir}/mpc.info.gz %{_infodir}/dir || :
|
|
|
4f9a73 |
fi
|
|
|
4f9a73 |
|
|
|
4f9a73 |
%preun devel
|
|
|
4f9a73 |
if [ $1 = 0 ]; then
|
|
|
4f9a73 |
if [ -f %{_infodir}/mpc.info.gz ]; then # for --excludedocs
|
|
|
4f9a73 |
/sbin/install-info --delete %{_infodir}/mpc.info.gz %{_infodir}/dir || :
|
|
|
4f9a73 |
fi
|
|
|
4f9a73 |
fi
|
|
|
4f9a73 |
|
|
|
4f9a73 |
%files
|
|
|
4f9a73 |
%defattr(-,root,root,-)
|
|
|
4f9a73 |
%doc README NEWS COPYING.LESSER
|
|
|
4f9a73 |
%{_libdir}/libmpc.so.3*
|
|
|
4f9a73 |
|
|
|
4f9a73 |
%files devel
|
|
|
4f9a73 |
%defattr(-,root,root,-)
|
|
|
4f9a73 |
%{_libdir}/libmpc.so
|
|
|
4f9a73 |
%{_includedir}/mpc.h
|
|
|
4f9a73 |
%{_infodir}/*.info*
|
|
|
4f9a73 |
|
|
|
4f9a73 |
%post -n compat-libmpc -p /sbin/ldconfig
|
|
|
4f9a73 |
%postun -n compat-libmpc -p /sbin/ldconfig
|
|
|
4f9a73 |
|
|
|
4f9a73 |
%files -n compat-libmpc
|
|
|
4f9a73 |
%{_libdir}/libmpc.so.2*
|
|
|
4f9a73 |
|
|
|
4f9a73 |
|
|
|
4f9a73 |
%changelog
|
|
|
4f9a73 |
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 1.0.1-3
|
|
|
4f9a73 |
- Mass rebuild 2014-01-24
|
|
|
4f9a73 |
|
|
|
4f9a73 |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.0.1-2
|
|
|
4f9a73 |
- Mass rebuild 2013-12-27
|
|
|
4f9a73 |
|
|
|
4f9a73 |
* Tue Feb 19 2013 Rex Dieter <rdieter@fedoraproject.org> - 1.0.1-1
|
|
|
4f9a73 |
- compat-libmpc (for bootsrapping purposes)
|
|
|
4f9a73 |
- mpc-1.0.1
|
|
|
4f9a73 |
- update Source URLs
|
|
|
4f9a73 |
- fix License: tag
|
|
|
4f9a73 |
|
|
|
4f9a73 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-3
|
|
|
4f9a73 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
4f9a73 |
|
|
|
4f9a73 |
* Thu Aug 02 2012 Rex Dieter <rdieter@fedoraproject.org> - 1.0-2
|
|
|
4f9a73 |
- %%files: track lib soname (so bumps aren't a surprise)
|
|
|
4f9a73 |
- tighten subpkg deps (%%_isa)
|
|
|
4f9a73 |
- %%build: --disable-static
|
|
|
4f9a73 |
|
|
|
4f9a73 |
* Thu Aug 2 2012 Petr Machata <pmachata@redhat.com> - 1.0-1
|
|
|
4f9a73 |
- Upstream 1.0
|
|
|
4f9a73 |
|
|
|
4f9a73 |
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-3.2
|
|
|
4f9a73 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
4f9a73 |
|
|
|
4f9a73 |
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-2.2
|
|
|
4f9a73 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
4f9a73 |
|
|
|
4f9a73 |
* Wed Oct 26 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.9-1.2
|
|
|
4f9a73 |
- rebuild with new gmp without compat lib
|
|
|
4f9a73 |
|
|
|
4f9a73 |
* Wed Oct 12 2011 Peter Schiffer <pschiffe@redhat.com> - 0.9-1.1
|
|
|
4f9a73 |
- rebuild with new gmp
|
|
|
4f9a73 |
|
|
|
4f9a73 |
* Wed Jun 22 2011 <pmachata@redhat.com> - 0.9-1
|
|
|
4f9a73 |
- Upstream 0.9
|
|
|
4f9a73 |
|
|
|
4f9a73 |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.3-0.3.svn855
|
|
|
4f9a73 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
4f9a73 |
|
|
|
4f9a73 |
* Tue Nov 30 2010 Petr Machata <pmachata@redhat.com> - 0.8.3-0.2.svn855
|
|
|
4f9a73 |
- Bump for rebuild against the new mpfr
|
|
|
4f9a73 |
|
|
|
4f9a73 |
* Fri Nov 19 2010 Petr Machata <pmachata@redhat.com> - 0.8.3-0.1.svn855
|
|
|
4f9a73 |
- Devel updates (to-be-0.8.3, SVN release 855)
|
|
|
4f9a73 |
- New functions mpc_set_dc, mpc_set_ldc, mpc_get_dc, mpc_get_ldc
|
|
|
4f9a73 |
- Speed-up mpc_pow_si and mpc_pow_z
|
|
|
4f9a73 |
- Bug fixes in trigonometric functions, exp, sqrt
|
|
|
4f9a73 |
- Upstream 0.8.2
|
|
|
4f9a73 |
- Speed-up mpc_pow_ui
|
|
|
4f9a73 |
- Adjust BuildRequires
|
|
|
4f9a73 |
- Resolves: #653931
|
|
|
4f9a73 |
|
|
|
4f9a73 |
* Wed Jan 20 2010 Petr Machata <pmachata@redhat.com> - 0.8.1-1
|
|
|
4f9a73 |
- Upstream 0.8.1
|
|
|
4f9a73 |
- acosh, asinh, atanh: swap of precisions between real and imaginary parts
|
|
|
4f9a73 |
- atan: memory leak
|
|
|
4f9a73 |
- log: wrong ternary value in data file; masked by bug in Mpfr 2.4.1
|
|
|
4f9a73 |
- Resolves: #555471 FTBFS libmpc-0.8-3.fc13
|
|
|
4f9a73 |
|
|
|
4f9a73 |
* Fri Nov 13 2009 Petr Machata <pmachata@redhat.com> - 0.8-3
|
|
|
4f9a73 |
- Require mpfr-devel, gmp-devel in -devel subpackage
|
|
|
4f9a73 |
- Don't pass --entry to install-info
|
|
|
4f9a73 |
|
|
|
4f9a73 |
* Thu Nov 12 2009 Petr Machata <pmachata@redhat.com> - 0.8-2
|
|
|
4f9a73 |
- Rename the package to libmpc, it's a better choice of name
|
|
|
4f9a73 |
- %%preun should uninstall mpc's info page, not make's
|
|
|
4f9a73 |
- Move info page to -devel
|
|
|
4f9a73 |
- BR on -devel packages
|
|
|
4f9a73 |
- Drop postscript documentation
|
|
|
4f9a73 |
|
|
|
4f9a73 |
* Thu Nov 12 2009 Petr Machata <pmachata@redhat.com> - 0.8-1
|
|
|
4f9a73 |
- Initial package.
|