|
|
08c109 |
# build compat-libmpc for bootstrapping purposes
|
|
|
08c109 |
%global bootstrap 0
|
|
|
08c109 |
%global bootstrap_version 0.9
|
|
|
08c109 |
|
|
|
08c109 |
Summary: C library for multiple precision complex arithmetic
|
|
|
08c109 |
Name: libmpc
|
|
|
08c109 |
Version: 1.2.1
|
|
|
08c109 |
Release: 4%{?dist}
|
|
|
08c109 |
License: LGPLv3+
|
|
|
08c109 |
URL: http://www.multiprecision.org/mpc/
|
|
|
08c109 |
Source0: https://ftp.gnu.org/gnu/mpc/mpc-%{version}.tar.gz
|
|
|
08c109 |
%if 0%{?bootstrap}
|
|
|
08c109 |
Source1: https://ftp.gnu.org/gnu/mpc/mpc-%{bootstrap_version}.tar.gz
|
|
|
08c109 |
%endif
|
|
|
08c109 |
|
|
|
08c109 |
BuildRequires: gcc
|
|
|
08c109 |
BuildRequires: gmp-devel >= 5.0.0
|
|
|
08c109 |
BuildRequires: mpfr-devel >= 4.1.0
|
|
|
08c109 |
BuildRequires: make
|
|
|
08c109 |
|
|
|
08c109 |
# This can be removed when F32 reaches EOL
|
|
|
08c109 |
Obsoletes: libmpc-mpfr3 < 1.1.0-7
|
|
|
08c109 |
Provides: libmpc-mpfr3 = %{version}-%{release}
|
|
|
08c109 |
|
|
|
08c109 |
%if 0%{?bootstrap} == 0
|
|
|
08c109 |
Obsoletes: compat-libmpc < %{version}-1
|
|
|
08c109 |
Provides: compat-libmpc = %{version}-%{release}
|
|
|
08c109 |
%endif
|
|
|
08c109 |
|
|
|
08c109 |
%description
|
|
|
08c109 |
MPC is a C library for the arithmetic of complex numbers with
|
|
|
08c109 |
arbitrarily high precision and correct rounding of the result. It is
|
|
|
08c109 |
built upon and follows the same principles as Mpfr.
|
|
|
08c109 |
|
|
|
08c109 |
%package devel
|
|
|
08c109 |
Summary: Headers and shared development libraries for MPC
|
|
|
08c109 |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
08c109 |
Requires: gmp-devel%{?_isa}
|
|
|
08c109 |
Requires: mpfr-devel%{?_isa}
|
|
|
08c109 |
|
|
|
08c109 |
# This can be removed when F32 reaches EOL
|
|
|
08c109 |
Obsoletes: libmpc-mpfr3-devel < 1.1.0-7
|
|
|
08c109 |
Provides: libmpc-mpfr3-devel = %{version}-%{release}
|
|
|
08c109 |
|
|
|
08c109 |
%description devel
|
|
|
08c109 |
Header files and shared library symlinks for the MPC library.
|
|
|
08c109 |
|
|
|
08c109 |
%package doc
|
|
|
08c109 |
Summary: Documentation for the MPC library
|
|
|
08c109 |
License: GFDL
|
|
|
08c109 |
BuildArch: noarch
|
|
|
08c109 |
|
|
|
08c109 |
%description doc
|
|
|
08c109 |
Documentation for the MPC library.
|
|
|
08c109 |
|
|
|
08c109 |
%if 0%{?bootstrap}
|
|
|
08c109 |
%package -n compat-libmpc
|
|
|
08c109 |
Summary: compat/bootstrap mpc-%{bootstrap_version} library
|
|
|
08c109 |
|
|
|
08c109 |
%description -n compat-libmpc
|
|
|
08c109 |
Contains the .so files for mpc version %{bootstrap-version}.
|
|
|
08c109 |
%endif
|
|
|
08c109 |
|
|
|
08c109 |
%prep
|
|
|
08c109 |
%setup -q -n mpc-%{version}
|
|
|
08c109 |
%if 0%{?bootstrap}
|
|
|
08c109 |
%setup -q -n mpc-%{version} -a 1
|
|
|
08c109 |
%endif
|
|
|
08c109 |
|
|
|
08c109 |
%build
|
|
|
08c109 |
%configure --disable-static
|
|
|
08c109 |
|
|
|
08c109 |
# Get rid of undesirable hardcoded rpaths; workaround libtool reordering
|
|
|
08c109 |
# -Wl,--as-needed after all the libraries.
|
|
|
08c109 |
sed -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
|
|
|
08c109 |
-e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
|
|
|
08c109 |
-e 's|CC="\(g..\)"|CC="\1 -Wl,--as-needed"|' \
|
|
|
08c109 |
-i libtool
|
|
|
08c109 |
|
|
|
08c109 |
%make_build
|
|
|
08c109 |
|
|
|
08c109 |
%if 0%{?bootstrap}
|
|
|
08c109 |
export CPPFLAGS="%{optflags} -std=gnu99"
|
|
|
08c109 |
export CFLAGS="%{optflags} -std=gnu99"
|
|
|
08c109 |
export EGREP=egrep
|
|
|
08c109 |
|
|
|
08c109 |
pushd mpc-%{bootstrap_version}
|
|
|
08c109 |
%configure --disable-static
|
|
|
08c109 |
%make_build
|
|
|
08c109 |
popd
|
|
|
08c109 |
%endif
|
|
|
08c109 |
|
|
|
08c109 |
%install
|
|
|
08c109 |
%if 0%{?bootstrap}
|
|
|
08c109 |
%make_install -C mpc-%{bootstrap_version}
|
|
|
08c109 |
|
|
|
08c109 |
## remove everything but shlib
|
|
|
08c109 |
rm -fv %{buildroot}%{_libdir}/libmpc.so
|
|
|
08c109 |
rm -fv %{buildroot}%{_includedir}/*
|
|
|
08c109 |
rm -fv %{buildroot}%{_infodir}/*
|
|
|
08c109 |
%endif
|
|
|
08c109 |
|
|
|
08c109 |
%make_install
|
|
|
08c109 |
rm -f %{buildroot}%{_libdir}/*.la
|
|
|
08c109 |
rm -f %{buildroot}%{_infodir}/dir
|
|
|
08c109 |
|
|
|
08c109 |
%check
|
|
|
08c109 |
export LD_LIBRARY_PATH=%{buildroot}%{_libdir}
|
|
|
08c109 |
make check
|
|
|
08c109 |
|
|
|
08c109 |
%files
|
|
|
08c109 |
%license COPYING.LESSER
|
|
|
08c109 |
%doc README NEWS
|
|
|
08c109 |
%{_libdir}/libmpc.so.3*
|
|
|
08c109 |
|
|
|
08c109 |
%files devel
|
|
|
08c109 |
%{_libdir}/libmpc.so
|
|
|
08c109 |
%{_includedir}/mpc.h
|
|
|
08c109 |
|
|
|
08c109 |
%files doc
|
|
|
08c109 |
%doc AUTHORS
|
|
|
08c109 |
%{_infodir}/*.info*
|
|
|
08c109 |
|
|
|
08c109 |
%if 0%{?bootstrap}
|
|
|
08c109 |
%files -n compat-libmpc
|
|
|
08c109 |
%{_libdir}/libmpc.so.2*
|
|
|
08c109 |
%endif
|
|
|
08c109 |
|
|
|
08c109 |
%changelog
|
|
|
08c109 |
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.2.1-4
|
|
|
08c109 |
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
08c109 |
Related: rhbz#1991688
|
|
|
08c109 |
|
|
|
08c109 |
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.2.1-3
|
|
|
08c109 |
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
08c109 |
|
|
|
08c109 |
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-2
|
|
|
08c109 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
08c109 |
|
|
|
08c109 |
* Fri Nov 13 2020 Jerry James <loganjerry@gmail.com> - 1.2.1-1
|
|
|
08c109 |
- Upgrade to libmpc version 1.2.1
|
|
|
08c109 |
|
|
|
08c109 |
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-9
|
|
|
08c109 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
08c109 |
|
|
|
08c109 |
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-8
|
|
|
08c109 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
08c109 |
|
|
|
08c109 |
* Fri Oct 11 2019 Jerry James <loganjerry@gmail.com> - 1.1.0-7
|
|
|
08c109 |
- Drop the libmpc-mpfr3 and libmpc-mpfr3-devel subpackages
|
|
|
08c109 |
|
|
|
08c109 |
* Wed Oct 9 2019 Jerry James <loganjerry@gmail.com> - 1.1.0-6
|
|
|
08c109 |
- Build the main package against mpfr4
|
|
|
08c109 |
|
|
|
08c109 |
* Tue Oct 8 2019 Jerry James <loganjerry@gmail.com> - 1.1.0-5
|
|
|
08c109 |
- Make mpfr3 and mpfr3-devel subpackages
|
|
|
08c109 |
- Drop the compat-libmpc package; nothing in Fedora needs it
|
|
|
08c109 |
- Update project URL
|
|
|
08c109 |
- Add a -doc subpackage to hold the GFDL-licensed content
|
|
|
08c109 |
- Drop unnecessary texinfo BR
|
|
|
08c109 |
- Drop ldconfig_scriptlets; this version cannot appear in distros that need it
|
|
|
08c109 |
- Make sure there are no rpaths and that -Wl,--as-needed takes effect
|
|
|
08c109 |
|
|
|
08c109 |
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-4
|
|
|
08c109 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
08c109 |
|
|
|
08c109 |
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-3
|
|
|
08c109 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
08c109 |
|
|
|
08c109 |
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-2
|
|
|
08c109 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
08c109 |
|
|
|
08c109 |
* Fri Jun 15 2018 Serhii Turivnyi <sturivny@redhat.com> - 1.1.0-1
|
|
|
08c109 |
- Add tests according to the CI wiki. PR: https://src.fedoraproject.org/rpms/libmpc/pull-request/3
|
|
|
08c109 |
|
|
|
08c109 |
* Mon Feb 26 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.1.0-1
|
|
|
08c109 |
- Modernization of the spec file (remove Group, use new make and ldconfig macros,
|
|
|
08c109 |
add gcc to BuildRequires)
|
|
|
08c109 |
- Move build to %%build
|
|
|
08c109 |
|
|
|
08c109 |
* Mon Feb 26 2018 James Paul Turner <jamesturner246@fedoraproject.org> - 1.1.0-1
|
|
|
08c109 |
- Upgrade to libmpc version 1.1.0
|
|
|
08c109 |
- Fix broken compat package build
|
|
|
08c109 |
|
|
|
08c109 |
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-9
|
|
|
08c109 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
08c109 |
|
|
|
08c109 |
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-8
|
|
|
08c109 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
08c109 |
|
|
|
08c109 |
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-7
|
|
|
08c109 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
08c109 |
|
|
|
08c109 |
* Wed Feb 01 2017 Stephen Gallagher <sgallagh@redhat.com> - 1.0.2-6
|
|
|
08c109 |
- Add missing %%license macro
|
|
|
08c109 |
|
|
|
08c109 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-5
|
|
|
08c109 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
08c109 |
|
|
|
08c109 |
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-4
|
|
|
08c109 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
08c109 |
|
|
|
08c109 |
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-3
|
|
|
08c109 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
08c109 |
|
|
|
08c109 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-2
|
|
|
08c109 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
08c109 |
|
|
|
08c109 |
* Mon Feb 24 2014 Peter Robinson <pbrobinson@fedoraproject.org> 1.0.2-1
|
|
|
08c109 |
- mpc-1.0.2
|
|
|
08c109 |
|
|
|
08c109 |
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-2
|
|
|
08c109 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
08c109 |
|
|
|
08c109 |
* Tue Feb 19 2013 Rex Dieter <rdieter@fedoraproject.org> - 1.0.1-1
|
|
|
08c109 |
- compat-libmpc (for bootsrapping purposes)
|
|
|
08c109 |
- mpc-1.0.1
|
|
|
08c109 |
- update Source URLs
|
|
|
08c109 |
- fix License: tag
|
|
|
08c109 |
|
|
|
08c109 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-3
|
|
|
08c109 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
08c109 |
|
|
|
08c109 |
* Thu Aug 02 2012 Rex Dieter <rdieter@fedoraproject.org> - 1.0-2
|
|
|
08c109 |
- %%files: track lib soname (so bumps aren't a surprise)
|
|
|
08c109 |
- tighten subpkg deps (%%_isa)
|
|
|
08c109 |
- %%build: --disable-static
|
|
|
08c109 |
|
|
|
08c109 |
* Thu Aug 2 2012 Petr Machata <pmachata@redhat.com> - 1.0-1
|
|
|
08c109 |
- Upstream 1.0
|
|
|
08c109 |
|
|
|
08c109 |
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-3.2
|
|
|
08c109 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
08c109 |
|
|
|
08c109 |
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-2.2
|
|
|
08c109 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
08c109 |
|
|
|
08c109 |
* Wed Oct 26 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.9-1.2
|
|
|
08c109 |
- rebuild with new gmp without compat lib
|
|
|
08c109 |
|
|
|
08c109 |
* Wed Oct 12 2011 Peter Schiffer <pschiffe@redhat.com> - 0.9-1.1
|
|
|
08c109 |
- rebuild with new gmp
|
|
|
08c109 |
|
|
|
08c109 |
* Wed Jun 22 2011 <pmachata@redhat.com> - 0.9-1
|
|
|
08c109 |
- Upstream 0.9
|
|
|
08c109 |
|
|
|
08c109 |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.3-0.3.svn855
|
|
|
08c109 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
08c109 |
|
|
|
08c109 |
* Tue Nov 30 2010 Petr Machata <pmachata@redhat.com> - 0.8.3-0.2.svn855
|
|
|
08c109 |
- Bump for rebuild against the new mpfr
|
|
|
08c109 |
|
|
|
08c109 |
* Fri Nov 19 2010 Petr Machata <pmachata@redhat.com> - 0.8.3-0.1.svn855
|
|
|
08c109 |
- Devel updates (to-be-0.8.3, SVN release 855)
|
|
|
08c109 |
- New functions mpc_set_dc, mpc_set_ldc, mpc_get_dc, mpc_get_ldc
|
|
|
08c109 |
- Speed-up mpc_pow_si and mpc_pow_z
|
|
|
08c109 |
- Bug fixes in trigonometric functions, exp, sqrt
|
|
|
08c109 |
- Upstream 0.8.2
|
|
|
08c109 |
- Speed-up mpc_pow_ui
|
|
|
08c109 |
- Adjust BuildRequires
|
|
|
08c109 |
- Resolves: #653931
|
|
|
08c109 |
|
|
|
08c109 |
* Wed Jan 20 2010 Petr Machata <pmachata@redhat.com> - 0.8.1-1
|
|
|
08c109 |
- Upstream 0.8.1
|
|
|
08c109 |
- acosh, asinh, atanh: swap of precisions between real and imaginary parts
|
|
|
08c109 |
- atan: memory leak
|
|
|
08c109 |
- log: wrong ternary value in data file; masked by bug in Mpfr 2.4.1
|
|
|
08c109 |
- Resolves: #555471 FTBFS libmpc-0.8-3.fc13
|
|
|
08c109 |
|
|
|
08c109 |
* Fri Nov 13 2009 Petr Machata <pmachata@redhat.com> - 0.8-3
|
|
|
08c109 |
- Require mpfr-devel, gmp-devel in -devel subpackage
|
|
|
08c109 |
- Don't pass --entry to install-info
|
|
|
08c109 |
|
|
|
08c109 |
* Thu Nov 12 2009 Petr Machata <pmachata@redhat.com> - 0.8-2
|
|
|
08c109 |
- Rename the package to libmpc, it's a better choice of name
|
|
|
08c109 |
- %%preun should uninstall mpc's info page, not make's
|
|
|
08c109 |
- Move info page to -devel
|
|
|
08c109 |
- BR on -devel packages
|
|
|
08c109 |
- Drop postscript documentation
|
|
|
08c109 |
|
|
|
08c109 |
* Thu Nov 12 2009 Petr Machata <pmachata@redhat.com> - 0.8-1
|
|
|
08c109 |
- Initial package.
|