This commit is contained in:
YellowJacketLinux 2023-04-16 08:33:40 -07:00
parent 1d0ebccee5
commit 2186a9e5ab

View File

@ -1,18 +1,23 @@
# TODO - this may belong in /lib and not /usr/lib
# Many (most?) distributions put install-info in /{,usr/}sbin
# YJL defines this macro to /usr/bin/install-info
# so define it to be in /sbin/ if not defined.
%if %{!?insinfo:1}%{?insinfo:0}
%global insinfo /sbin/install-info
%endif
Name: mpfr
Version: 4.2.0
Release: %{?repo}0.rc1%{?dist}
Release: %{?repo}0.rc2%{?dist}
Summary: Library for multiple-precision floating-point computations
Group: System Environment/Libraries
License: LGPLv3
URL: https://www.mpfr.org/
Source0: https://ftp.gnu.org/gnu/mpfr/%{name}-%{version}.tar.xz
Provides: lib%{name} = %{version}-%{release}
BuildRequires: gmp-devel
#Requires:
%description
The MPFR library is a C library for multiple-precision floating-point
@ -22,7 +27,8 @@ computations with correct rounding.
Summary: Developer files for %{name}
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Provides: lib%{name}-devel = %{version}-%{release}
Requires(post): %{insinfo}
Requires(preun): %{insinfo}
%description devel
This package contains the files necessary to compile software that
@ -35,7 +41,6 @@ sed -e 's/+01,234,567/+1,234,567 /' \
-e 's/13.10Pd/13Pd/' \
-i tests/tsprintf.c
%build
%configure \
--disable-static \
@ -43,11 +48,9 @@ sed -e 's/+01,234,567/+1,234,567 /' \
make %{?_smp_mflags}
make html
%check
make check > %{name}-make.check.log 2>&1
%install
make install DESTDIR=%{buildroot}
rm -rf %{buildroot}%{_datadir}/doc/mpfr
@ -56,11 +59,11 @@ rm -rf %{buildroot}%{_datadir}/doc/mpfr
%postun -p /sbin/ldconfig
%post devel
%{_bindir}/install-info %{_infodir}/%{name}.info %{_infodir}/dir ||:
%{insinfo} %{_infodir}/%{name}.info %{_infodir}/dir ||:
%preun devel
if [ $1 = 0 ]; then
%{_bindir}/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir ||:
%{insinfo} --delete %{_infodir}/%{name}.info %{_infodir}/dir ||:
fi
%files
@ -82,5 +85,8 @@ fi
%changelog
* Sun Apr 16 2023 Michael A. Peters <anymouseprophet@gmail.com> - 4.2.0-0.rc2
- tabs to spaces, use %%insinfo macro
* Thu Apr 06 2023 Michael A. Peters <anymouseprophet@gmail.com> - 4.2.0-0.rc1
- Initial spec file for YJL (RPM bootstrapping LFS/BLFS 11.3)