Blame SPECS/libmpc.spec

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