2013-02-19 16:54:41 +00:00
|
|
|
|
|
|
|
# build compat-libmpc for bootstrapping purposes
|
|
|
|
%define bootstrap 1
|
|
|
|
|
2009-11-16 13:06:39 +00:00
|
|
|
Summary: C library for multiple precision complex arithmetic
|
|
|
|
Name: libmpc
|
2014-02-24 11:29:30 +00:00
|
|
|
Version: 1.0.2
|
2018-02-07 22:43:29 +00:00
|
|
|
Release: 9%{?dist}
|
2013-02-19 16:54:41 +00:00
|
|
|
License: LGPLv3+ and GFDL
|
2009-11-16 13:06:39 +00:00
|
|
|
Group: Development/Tools
|
|
|
|
URL: http://www.multiprecision.org/
|
2013-02-19 16:54:41 +00:00
|
|
|
Source0: http://www.multiprecision.org/mpc/download/mpc-%{version}.tar.gz
|
|
|
|
|
2010-11-22 15:48:40 +00:00
|
|
|
BuildRequires: gmp-devel >= 4.3.2
|
|
|
|
BuildRequires: mpfr-devel >= 2.4.2
|
|
|
|
BuildRequires: texinfo
|
2009-11-16 13:06:39 +00:00
|
|
|
|
2013-02-19 16:54:41 +00:00
|
|
|
%if 0%{?bootstrap}
|
|
|
|
Source1: http://www.multiprecision.org/mpc/download/mpc-0.9.tar.gz
|
|
|
|
%endif
|
|
|
|
|
2009-11-16 13:06:39 +00:00
|
|
|
%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
|
2012-08-02 15:13:42 +00:00
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
2009-11-16 13:06:39 +00:00
|
|
|
Requires: mpfr-devel gmp-devel
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
Header files and shared object symlinks for MPC is a C library.
|
|
|
|
|
2013-02-19 16:54:41 +00:00
|
|
|
%package -n compat-libmpc
|
|
|
|
Summary: compat/bootstrap mpc-0.9 library
|
|
|
|
%description -n compat-libmpc
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
|
2009-11-16 13:06:39 +00:00
|
|
|
%prep
|
2013-02-19 16:54:41 +00:00
|
|
|
%setup -q -n mpc-%{version} %{?bootstrap:-a 1}
|
2009-11-16 13:06:39 +00:00
|
|
|
|
|
|
|
%build
|
2010-11-22 15:48:40 +00:00
|
|
|
export CPPFLAGS="%{optflags} -std=gnu99"
|
|
|
|
export CFLAGS="%{optflags} -std=gnu99"
|
2010-11-25 14:41:14 +00:00
|
|
|
export EGREP=egrep
|
2013-02-19 16:54:41 +00:00
|
|
|
|
|
|
|
%if 0%{?bootstrap}
|
|
|
|
pushd mpc-0.9/
|
|
|
|
%configure --disable-static
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
popd
|
|
|
|
%endif
|
|
|
|
|
2012-08-02 15:13:42 +00:00
|
|
|
%configure --disable-static
|
2009-11-16 13:06:39 +00:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%check
|
|
|
|
make check
|
|
|
|
|
|
|
|
%install
|
2013-02-19 16:54:41 +00:00
|
|
|
%if 0%{?bootstrap}
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT -C mpc-0.9/
|
|
|
|
|
|
|
|
## remove everything but shlib
|
|
|
|
rm -fv $RPM_BUILD_ROOT%{_libdir}/libmpc.so
|
|
|
|
rm -fv $RPM_BUILD_ROOT%{_includedir}/*
|
|
|
|
rm -fv $RPM_BUILD_ROOT%{_infodir}/*
|
|
|
|
%endif
|
|
|
|
|
2009-11-16 13:06:39 +00:00
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
2012-08-02 15:13:42 +00:00
|
|
|
rm -f $RPM_BUILD_ROOT/%{_libdir}/libmpc.la
|
2009-11-16 13:06:39 +00:00
|
|
|
rm -f ${RPM_BUILD_ROOT}/%{_infodir}/dir
|
|
|
|
|
|
|
|
%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
|
2017-02-02 01:24:12 +00:00
|
|
|
%license COPYING.LESSER
|
|
|
|
%doc README NEWS
|
2012-08-02 15:13:42 +00:00
|
|
|
%{_libdir}/libmpc.so.3*
|
2009-11-16 13:06:39 +00:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_libdir}/libmpc.so
|
|
|
|
%{_includedir}/mpc.h
|
|
|
|
%{_infodir}/*.info*
|
|
|
|
|
2013-02-19 16:54:41 +00:00
|
|
|
%post -n compat-libmpc -p /sbin/ldconfig
|
|
|
|
%postun -n compat-libmpc -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n compat-libmpc
|
|
|
|
%{_libdir}/libmpc.so.2*
|
|
|
|
|
|
|
|
|
2009-11-16 13:06:39 +00:00
|
|
|
%changelog
|
2018-02-07 22:43:29 +00:00
|
|
|
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-9
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2017-08-03 01:52:23 +00:00
|
|
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-8
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
|
2017-07-26 19:17:16 +00:00
|
|
|
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-02-02 01:24:12 +00:00
|
|
|
* Wed Feb 01 2017 Stephen Gallagher <sgallagh@redhat.com> - 1.0.2-6
|
|
|
|
- Add missing %%license macro
|
|
|
|
|
2016-02-04 03:33:30 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2015-06-17 16:07:33 +00:00
|
|
|
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2014-08-17 04:39:58 +00:00
|
|
|
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
2014-06-07 04:28:18 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-02-24 11:29:30 +00:00
|
|
|
* Mon Feb 24 2014 Peter Robinson <pbrobinson@fedoraproject.org> 1.0.2-1
|
|
|
|
- mpc-1.0.2
|
|
|
|
|
2013-08-03 06:15:02 +00:00
|
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-02-19 16:54:41 +00:00
|
|
|
* Tue Feb 19 2013 Rex Dieter <rdieter@fedoraproject.org> - 1.0.1-1
|
|
|
|
- compat-libmpc (for bootsrapping purposes)
|
|
|
|
- mpc-1.0.1
|
|
|
|
- update Source URLs
|
|
|
|
- fix License: tag
|
|
|
|
|
2013-02-14 04:46:08 +00:00
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2012-08-02 15:13:42 +00:00
|
|
|
* Thu Aug 02 2012 Rex Dieter <rdieter@fedoraproject.org> - 1.0-2
|
|
|
|
- %%files: track lib soname (so bumps aren't a surprise)
|
|
|
|
- tighten subpkg deps (%%_isa)
|
|
|
|
- %%build: --disable-static
|
|
|
|
|
2012-08-02 13:31:03 +00:00
|
|
|
* Thu Aug 2 2012 Petr Machata <pmachata@redhat.com> - 1.0-1
|
|
|
|
- Upstream 1.0
|
|
|
|
|
2012-07-19 20:29:29 +00:00
|
|
|
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-3.2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-01-13 08:03:58 +00:00
|
|
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-2.2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-10-26 09:02:46 +00:00
|
|
|
* Wed Oct 26 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.9-1.2
|
|
|
|
- rebuild with new gmp without compat lib
|
|
|
|
|
2011-10-12 00:44:52 +00:00
|
|
|
* Wed Oct 12 2011 Peter Schiffer <pschiffe@redhat.com> - 0.9-1.1
|
|
|
|
- rebuild with new gmp
|
|
|
|
|
2011-06-22 11:55:10 +00:00
|
|
|
* Wed Jun 22 2011 <pmachata@redhat.com> - 0.9-1
|
|
|
|
- Upstream 0.9
|
|
|
|
|
2011-02-08 08:23:16 +00:00
|
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.3-0.3.svn855
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2010-11-30 15:28:00 +00:00
|
|
|
* Tue Nov 30 2010 Petr Machata <pmachata@redhat.com> - 0.8.3-0.2.svn855
|
|
|
|
- Bump for rebuild against the new mpfr
|
|
|
|
|
2010-11-22 15:48:40 +00:00
|
|
|
* Fri Nov 19 2010 Petr Machata <pmachata@redhat.com> - 0.8.3-0.1.svn855
|
|
|
|
- Devel updates (to-be-0.8.3, SVN release 855)
|
|
|
|
- New functions mpc_set_dc, mpc_set_ldc, mpc_get_dc, mpc_get_ldc
|
|
|
|
- Speed-up mpc_pow_si and mpc_pow_z
|
|
|
|
- Bug fixes in trigonometric functions, exp, sqrt
|
|
|
|
- Upstream 0.8.2
|
|
|
|
- Speed-up mpc_pow_ui
|
|
|
|
- Adjust BuildRequires
|
|
|
|
- Resolves: #653931
|
|
|
|
|
2010-01-20 14:39:59 +00:00
|
|
|
* Wed Jan 20 2010 Petr Machata <pmachata@redhat.com> - 0.8.1-1
|
|
|
|
- Upstream 0.8.1
|
|
|
|
- acosh, asinh, atanh: swap of precisions between real and imaginary parts
|
|
|
|
- atan: memory leak
|
|
|
|
- log: wrong ternary value in data file; masked by bug in Mpfr 2.4.1
|
|
|
|
- Resolves: #555471 FTBFS libmpc-0.8-3.fc13
|
|
|
|
|
2009-11-16 13:06:39 +00:00
|
|
|
* Fri Nov 13 2009 Petr Machata <pmachata@redhat.com> - 0.8-3
|
|
|
|
- Require mpfr-devel, gmp-devel in -devel subpackage
|
|
|
|
- Don't pass --entry to install-info
|
|
|
|
|
|
|
|
* Thu Nov 12 2009 Petr Machata <pmachata@redhat.com> - 0.8-2
|
|
|
|
- Rename the package to libmpc, it's a better choice of name
|
|
|
|
- %%preun should uninstall mpc's info page, not make's
|
|
|
|
- Move info page to -devel
|
|
|
|
- BR on -devel packages
|
|
|
|
- Drop postscript documentation
|
|
|
|
|
|
|
|
* Thu Nov 12 2009 Petr Machata <pmachata@redhat.com> - 0.8-1
|
|
|
|
- Initial package.
|