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: https://ftp.gnu.org/gnu/mpc/mpc-1.1.0.tar.gz
  2. #MD5SUM: 4125404e41e482ec68282a2e687f6c73;SOURCES/mpc-1.1.0.tar.gz
  3. #-----------------------------------------------------------------------------
  4. Summary: The MPC package contains a library for the arithmetic of complex numbers
  5. Name: mpc
  6. Version: 1.1.0
  7. Release: 2
  8. License: LGPLv3
  9. URL: Any
  10. Group: LFS/Base
  11. Source0: http://www.multiprecision.org/%{name}/download/%{name}-%{version}.tar.gz
  12. Requires: filesystem
  13. %description
  14. The MPC package contains a library for the arithmetic of
  15. complex numbers with arbitrarily high precision and correct
  16. rounding of the result.
  17. #-----------------------------------------------------------------------------
  18. %prep
  19. %setup -q -n %{NAME}-%{VERSION}
  20. %build
  21. ./configure \
  22. --prefix=%{_prefix} \
  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.LESSER %{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> 1.1.0-2
  48. * Tue Jan 09 2018 baho-utot <baho-utot@columbus.rr.com> 1.1.0-1
  49. - Initial build. First version