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

View File

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