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
%define bootstrap 1
%define bootstrap_version 0.9
Summary: C library for multiple precision complex arithmetic
Name: libmpc
Version: 1.0.2
Release: 9%{?dist}
Version: 1.1.0
Release: 1%{?dist}
License: LGPLv3+ and GFDL
Group: Development/Tools
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: mpfr-devel >= 2.4.2
BuildRequires: gmp-devel >= 5.0.0
BuildRequires: mpfr-devel >= 3.0.0
BuildRequires: texinfo
%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
%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
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
%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
export CPPFLAGS="%{optflags} -std=gnu99"
@ -49,21 +41,18 @@ export CFLAGS="%{optflags} -std=gnu99"
export EGREP=egrep
%if 0%{?bootstrap}
pushd mpc-0.9/
pushd mpc-%{bootstrap_version}
%configure --disable-static
make %{?_smp_mflags}
popd
%endif
%configure --disable-static
make %{?_smp_mflags}
%check
make check
%install
%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
rm -fv $RPM_BUILD_ROOT%{_libdir}/libmpc.so
@ -78,6 +67,20 @@ rm -f ${RPM_BUILD_ROOT}/%{_infodir}/dir
%post -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
if [ -f %{_infodir}/mpc.info.gz ]; then # for --excludedocs
/sbin/install-info %{_infodir}/mpc.info.gz %{_infodir}/dir || :
@ -90,24 +93,30 @@ if [ $1 = 0 ]; then
fi
fi
%files
%license COPYING.LESSER
%doc README NEWS
%{_libdir}/libmpc.so.3*
%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}.
%post -n compat-libmpc -p /sbin/ldconfig
%postun -n compat-libmpc -p /sbin/ldconfig
%files -n compat-libmpc
%{_libdir}/libmpc.so.2*
%endif
%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
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild