# build compat-libmpc for bootstrapping purposes %define bootstrap 1 %define bootstrap_version 0.9 Summary: C library for multiple precision complex arithmetic Name: libmpc Version: 1.1.0 Release: 1%{?dist} License: LGPLv3+ and GFDL URL: http://www.multiprecision.org/ Source0: https://ftp.gnu.org/gnu/mpc/mpc-%{version}.tar.gz BuildRequires: gcc BuildRequires: gmp-devel >= 5.0.0 BuildRequires: mpfr-devel >= 3.0.0 BuildRequires: texinfo %if 0%{?bootstrap} Source1: http://www.multiprecision.org/downloads/mpc-%{bootstrap_version}.tar.gz %endif %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. %prep %if 0%{?bootstrap} %setup -q -n mpc-%{version} -a 1 %else %setup -q -n mpc-%{version} %endif %build %configure --disable-static make %{?_smp_mflags} export CPPFLAGS="%{optflags} -std=gnu99" export CFLAGS="%{optflags} -std=gnu99" export EGREP=egrep %if 0%{?bootstrap} pushd mpc-%{bootstrap_version} %configure --disable-static %make_build popd %endif %check make check %install %if 0%{?bootstrap} %make_install -C mpc-%{bootstrap_version} ## 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 %make_install rm -f $RPM_BUILD_ROOT/%{_libdir}/libmpc.la rm -f ${RPM_BUILD_ROOT}/%{_infodir}/dir %ldconfig_scriptlets %files %license COPYING.LESSER %doc README NEWS %{_libdir}/libmpc.so.3* %package devel Summary: Header and shared development libraries for MPC Group: Development/Libraries Requires: %{name}%{?_isa} = %{version}-%{release} Requires: mpfr-devel gmp-devel %description devel Header files and shared object symlinks for MPC is a C library. %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 devel %{_libdir}/libmpc.so %{_includedir}/mpc.h %{_infodir}/*.info* %if 0%{?bootstrap} %package -n compat-libmpc Summary: compat/bootstrap mpc-%{bootstrap_version} library %description -n compat-libmpc Contains the .so files for mpc version %{bootstrap-version}. %ldconfig_scriptlets -n compat-libmpc %files -n compat-libmpc %{_libdir}/libmpc.so.2* %endif %changelog * Fri Jun 15 2018 Serhii Turivnyi - 1.1.0-1 - Add tests according to the CI wiki. PR: https://src.fedoraproject.org/rpms/libmpc/pull-request/3 * Mon Feb 26 2018 Zbigniew Jędrzejewski-Szmek - 1.1.0-1 - Modernization of the spec file (remove Group, use new make and ldconfig macros, add gcc to BuildRequires) - Move build to %%build * Mon Feb 26 2018 James Paul Turner - 1.1.0-1 - Upgrade to libmpc version 1.1.0 - Fix broken compat package build * Wed Feb 07 2018 Fedora Release Engineering - 1.0.2-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Aug 03 2017 Fedora Release Engineering - 1.0.2-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 1.0.2-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Wed Feb 01 2017 Stephen Gallagher - 1.0.2-6 - Add missing %%license macro * Thu Feb 04 2016 Fedora Release Engineering - 1.0.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Jun 17 2015 Fedora Release Engineering - 1.0.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sun Aug 17 2014 Fedora Release Engineering - 1.0.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 1.0.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Mon Feb 24 2014 Peter Robinson 1.0.2-1 - mpc-1.0.2 * Sat Aug 03 2013 Fedora Release Engineering - 1.0.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Tue Feb 19 2013 Rex Dieter - 1.0.1-1 - compat-libmpc (for bootsrapping purposes) - mpc-1.0.1 - update Source URLs - fix License: tag * Thu Feb 14 2013 Fedora Release Engineering - 1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Thu Aug 02 2012 Rex Dieter - 1.0-2 - %%files: track lib soname (so bumps aren't a surprise) - tighten subpkg deps (%%_isa) - %%build: --disable-static * Thu Aug 2 2012 Petr Machata - 1.0-1 - Upstream 1.0 * Thu Jul 19 2012 Fedora Release Engineering - 0.9-3.2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Fri Jan 13 2012 Fedora Release Engineering - 0.9-2.2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Wed Oct 26 2011 Marcela Mašláňová - 0.9-1.2 - rebuild with new gmp without compat lib * Wed Oct 12 2011 Peter Schiffer - 0.9-1.1 - rebuild with new gmp * Wed Jun 22 2011 - 0.9-1 - Upstream 0.9 * Tue Feb 08 2011 Fedora Release Engineering - 0.8.3-0.3.svn855 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Tue Nov 30 2010 Petr Machata - 0.8.3-0.2.svn855 - Bump for rebuild against the new mpfr * Fri Nov 19 2010 Petr Machata - 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 - 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 * Fri Nov 13 2009 Petr Machata - 0.8-3 - Require mpfr-devel, gmp-devel in -devel subpackage - Don't pass --entry to install-info * Thu Nov 12 2009 Petr Machata - 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 - 0.8-1 - Initial package.