This repo contains software to build linux from scratch and package it into rpm files.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

50 lines
1.9 KiB

  1. #TARBALL: http://ftp.gnu.org/gnu/gmp/gmp-6.2.0.tar.xz
  2. #MD5SUM: a325e3f09e6d91e62101e59f9bda3ec1;SOURCES/gmp-6.2.0.tar.xz
  3. #-----------------------------------------------------------------------------
  4. Summary: The GMP package contains math libraries.
  5. Name: gmp
  6. Version: 6.2.0
  7. Release: 1
  8. License: GPLv3
  9. URL: Any
  10. Group: LFS/Base
  11. Source0: http://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz
  12. Requires: filesystem
  13. %description
  14. The GMP package contains math libraries. These have useful functions for arbitrary precision arithmetic.
  15. #-----------------------------------------------------------------------------
  16. %prep
  17. %setup -q -n %{NAME}-%{VERSION}
  18. cp -v configfsf.guess config.guess
  19. cp -v configfsf.sub config.sub
  20. %build
  21. ./configure --prefix=%{_prefix} \
  22. --enable-cxx \
  23. --disable-static \
  24. --docdir=%{_docdir}/%{NAME}-%{VERSION}
  25. make %{?_smp_mflags}
  26. make %{?_smp_mflags} html
  27. %install
  28. make DESTDIR=%{buildroot} install
  29. make DESTDIR=%{buildroot} install-html
  30. #-----------------------------------------------------------------------------
  31. # Copy license/copying file
  32. install -D -m644 COPYING %{buildroot}/usr/share/licenses/%{name}/LICENSE
  33. #-----------------------------------------------------------------------------
  34. # Create file list
  35. rm %{buildroot}%{_infodir}/dir
  36. find %{buildroot} -name '*.la' -delete
  37. find "${RPM_BUILD_ROOT}" -not -type d -print > filelist.list
  38. sed -i "s|^${RPM_BUILD_ROOT}||" filelist.list
  39. sed -i '/man\/man/d' filelist.list
  40. sed -i '/\/usr\/share\/info/d' filelist.list
  41. #-----------------------------------------------------------------------------
  42. %files -f filelist.list
  43. %defattr(-,root,root)
  44. %{_infodir}/*
  45. #-----------------------------------------------------------------------------
  46. %changelog
  47. * Sun May 31 2020 Chris Cromer <chris@cromer.cl> 6.2.0-1
  48. * Tue Jan 09 2018 baho-utot <baho-utot@columbus.rr.com> 6.1.2-1
  49. - Initial build. First version