mirror of
https://github.com/YellowJacketLinux/LFS.git
synced 2025-01-23 14:32:15 +08:00
initial checkin
This commit is contained in:
parent
f58f8be12b
commit
f3bf1f5b0e
86
SPECS/mpfr.spec
Normal file
86
SPECS/mpfr.spec
Normal file
@ -0,0 +1,86 @@
|
||||
# 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
|
||||
|
||||
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
|
||||
computations with correct rounding.
|
||||
|
||||
%package devel
|
||||
Summary: Developer files for %{name}
|
||||
Group: Development/Libraries
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Provides: lib%{name}-devel = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
This package contains the files necessary to compile software that
|
||||
links against the %{name} library.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
# Fix a test case based on a bug of old Glibc releases
|
||||
sed -e 's/+01,234,567/+1,234,567 /' \
|
||||
-e 's/13.10Pd/13Pd/' \
|
||||
-i tests/tsprintf.c
|
||||
|
||||
|
||||
%build
|
||||
%configure \
|
||||
--disable-static \
|
||||
--enable-thread-safe
|
||||
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
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
%post devel
|
||||
%{_bindir}/install-info %{_infodir}/%{name}.info %{_infodir}/dir ||:
|
||||
|
||||
%preun devel
|
||||
if [ $1 = 0 ]; then
|
||||
%{_bindir}/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir ||:
|
||||
fi
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%attr(0755,root,root) %{_libdir}/libmpfr.so.6.2.0
|
||||
%{_libdir}/libmpfr.so.6
|
||||
%license COPYING COPYING.LESSER
|
||||
%doc %{name}-make.check.log
|
||||
%doc AUTHORS BUGS COPYING COPYING.LESSER NEWS TODO
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root,-)
|
||||
%attr(0644,root,root) %{_includedir}/*.h
|
||||
%{_libdir}/libmpfr.so
|
||||
%attr(0644,root,root) %{_libdir}/pkgconfig/mpfr.pc
|
||||
%attr(0644,root,root) %{_infodir}/mpfr.info*
|
||||
%exclude %{_infodir}/dir
|
||||
%doc examples doc/FAQ.html doc/mpfr.html
|
||||
|
||||
|
||||
%changelog
|
||||
* 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