Upgrade to libmpc version 1.1.0

This commit is contained in:
James Paul Turner 2018-02-26 14:07:17 +01:00 committed by Zbigniew Jędrzejewski-Szmek
parent a9693e0192
commit cf643916ed

View File

@ -1,22 +1,22 @@
# build compat-libmpc for bootstrapping purposes # build compat-libmpc for bootstrapping purposes
%define bootstrap 1 %define bootstrap 1
%define bootstrap_version 0.9
Summary: C library for multiple precision complex arithmetic Summary: C library for multiple precision complex arithmetic
Name: libmpc Name: libmpc
Version: 1.0.2 Version: 1.1.0
Release: 9%{?dist} Release: 1%{?dist}
License: LGPLv3+ and GFDL License: LGPLv3+ and GFDL
Group: Development/Tools Group: Development/Tools
URL: http://www.multiprecision.org/ URL: http://www.multiprecision.org/
Source0: http://www.multiprecision.org/mpc/download/mpc-%{version}.tar.gz Source0: https://ftp.gnu.org/gnu/mpc/mpc-%{version}.tar.gz
BuildRequires: gmp-devel >= 4.3.2 BuildRequires: gmp-devel >= 5.0.0
BuildRequires: mpfr-devel >= 2.4.2 BuildRequires: mpfr-devel >= 3.0.0
BuildRequires: texinfo BuildRequires: texinfo
%if 0%{?bootstrap} %if 0%{?bootstrap}
Source1: http://www.multiprecision.org/mpc/download/mpc-0.9.tar.gz Source1: http://www.multiprecision.org/downloads/mpc-%{bootstrap_version}.tar.gz
%endif %endif
%description %description
@ -25,23 +25,15 @@ MPC is a C library for the arithmetic of complex numbers with
arbitrarily high precision and correct rounding of the result. It is arbitrarily high precision and correct rounding of the result. It is
built upon and follows the same principles as Mpfr. built upon and follows the same principles as Mpfr.
%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.
%package -n compat-libmpc
Summary: compat/bootstrap mpc-0.9 library
%description -n compat-libmpc
%{summary}.
%prep %prep
%setup -q -n mpc-%{version} %{?bootstrap:-a 1} %if 0%{?bootstrap}
%setup -q -n mpc-%{version} -a 1
%else
%setup -q -n mpc-%{version}
%endif
%configure --disable-static
make %{?_smp_mflags}
%build %build
export CPPFLAGS="%{optflags} -std=gnu99" export CPPFLAGS="%{optflags} -std=gnu99"
@ -49,21 +41,18 @@ export CFLAGS="%{optflags} -std=gnu99"
export EGREP=egrep export EGREP=egrep
%if 0%{?bootstrap} %if 0%{?bootstrap}
pushd mpc-0.9/ pushd mpc-%{bootstrap_version}
%configure --disable-static %configure --disable-static
make %{?_smp_mflags} make %{?_smp_mflags}
popd popd
%endif %endif
%configure --disable-static
make %{?_smp_mflags}
%check %check
make check make check
%install %install
%if 0%{?bootstrap} %if 0%{?bootstrap}
make install DESTDIR=$RPM_BUILD_ROOT -C mpc-0.9/ make install DESTDIR=$RPM_BUILD_ROOT -C mpc-%{bootstrap_version}
## remove everything but shlib ## remove everything but shlib
rm -fv $RPM_BUILD_ROOT%{_libdir}/libmpc.so rm -fv $RPM_BUILD_ROOT%{_libdir}/libmpc.so
@ -78,6 +67,20 @@ rm -f ${RPM_BUILD_ROOT}/%{_infodir}/dir
%post -p /sbin/ldconfig %post -p /sbin/ldconfig
%postun -p /sbin/ldconfig %postun -p /sbin/ldconfig
%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 %post devel
if [ -f %{_infodir}/mpc.info.gz ]; then # for --excludedocs if [ -f %{_infodir}/mpc.info.gz ]; then # for --excludedocs
/sbin/install-info %{_infodir}/mpc.info.gz %{_infodir}/dir || : /sbin/install-info %{_infodir}/mpc.info.gz %{_infodir}/dir || :
@ -90,24 +93,30 @@ if [ $1 = 0 ]; then
fi fi
fi fi
%files
%license COPYING.LESSER
%doc README NEWS
%{_libdir}/libmpc.so.3*
%files devel %files devel
%{_libdir}/libmpc.so %{_libdir}/libmpc.so
%{_includedir}/mpc.h %{_includedir}/mpc.h
%{_infodir}/*.info* %{_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}.
%post -n compat-libmpc -p /sbin/ldconfig %post -n compat-libmpc -p /sbin/ldconfig
%postun -n compat-libmpc -p /sbin/ldconfig %postun -n compat-libmpc -p /sbin/ldconfig
%files -n compat-libmpc %files -n compat-libmpc
%{_libdir}/libmpc.so.2* %{_libdir}/libmpc.so.2*
%endif
%changelog %changelog
* Sun Jan 21 2018 James Paul Turner <jamesturner246@fedoraproject.org> - 1.1.0-1
- Upgrade to libmpc version 1.1.0
- Fix broken compat package build
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-9 * Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild