mirror of
https://github.com/YellowJacketLinux/LFS.git
synced 2025-01-23 14:32:15 +08:00
tweaks
This commit is contained in:
parent
1d0ebccee5
commit
2186a9e5ab
@ -1,28 +1,34 @@
|
||||
# TODO - this may belong in /lib and not /usr/lib
|
||||
|
||||
Name: mpfr
|
||||
Version: 4.2.0
|
||||
Release: %{?repo}0.rc1%{?dist}
|
||||
Summary: Library for multiple-precision floating-point computations
|
||||
# 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
|
||||
|
||||
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}
|
||||
Name: mpfr
|
||||
Version: 4.2.0
|
||||
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
|
||||
|
||||
BuildRequires: gmp-devel
|
||||
#Requires:
|
||||
|
||||
%description
|
||||
The MPFR library is a C library for multiple-precision floating-point
|
||||
computations with correct rounding.
|
||||
|
||||
%package devel
|
||||
Summary: Developer files for %{name}
|
||||
Group: Development/Libraries
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Provides: lib%{name}-devel = %{version}-%{release}
|
||||
Summary: Developer files for %{name}
|
||||
Group: Development/Libraries
|
||||
Requires: %{name} = %{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)
|
||||
|
Loading…
Reference in New Issue
Block a user