libmpc/libmpc.spec

132 lines
3.8 KiB
RPMSpec
Raw Normal View History

2009-11-16 13:06:39 +00:00
Summary: C library for multiple precision complex arithmetic
Name: libmpc
2012-08-02 13:31:03 +00:00
Version: 1.0
Release: 1%{?dist}
2009-11-16 13:06:39 +00:00
License: LGPLv2+
Group: Development/Tools
URL: http://www.multiprecision.org/
2011-06-22 11:55:10 +00:00
Source0: mpc-%{version}.tar.gz
2009-11-16 13:06:39 +00:00
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: gmp-devel >= 4.3.2
BuildRequires: mpfr-devel >= 2.4.2
BuildRequires: texinfo
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
Requires: %{name} = %{version}-%{release}
Requires: mpfr-devel gmp-devel
%description devel
Header files and shared object symlinks for MPC is a C library.
%prep
2011-06-22 11:55:10 +00:00
%setup -q -n mpc-%{version}
2009-11-16 13:06:39 +00:00
%build
export CPPFLAGS="%{optflags} -std=gnu99"
export CFLAGS="%{optflags} -std=gnu99"
export EGREP=egrep
2009-11-16 13:06:39 +00:00
%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
2012-08-02 13:31:03 +00:00
* Thu Aug 2 2012 Petr Machata <pmachata@redhat.com> - 1.0-1
- Upstream 1.0
* 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
* 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
* 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
* 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
* 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
* 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.