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.
 
 
 
 

58 lines
2.1 KiB

  1. #TARBALL: http://ftp.gnu.org/gnu/binutils/binutils-2.34.tar.xz
  2. #MD5SUM: 664ec3a2df7805ed3464639aaae332d6;SOURCES/binutils-2.34.tar.xz
  3. #-----------------------------------------------------------------------------
  4. Summary: The Binutils package contains a linker, an assembler, and other tools for handling object files
  5. Name: binutils
  6. Version: 2.34
  7. Release: 1
  8. License: GPLv3
  9. URL: http://ftp.gnu.org
  10. Group: LFS/Base
  11. Source0: http://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz
  12. Requires: filesystem
  13. %description
  14. The Binutils package contains a linker, an assembler, and other tools for handling object files
  15. #-----------------------------------------------------------------------------
  16. %prep
  17. %setup -q -n %{NAME}-%{VERSION}
  18. %build
  19. sed -i '/@\tincremental_copy/d' gold/testsuite/Makefile.in
  20. mkdir build
  21. cd build
  22. ../configure \
  23. --prefix=%{_prefix} \
  24. --enable-gold \
  25. --enable-ld=default \
  26. --enable-plugins \
  27. --enable-shared \
  28. --disable-werror \
  29. --enable-64-bit-bfd \
  30. --with-system-zlib
  31. make %{?_smp_mflags} tooldir=/usr
  32. %install
  33. cd build
  34. make DESTDIR=%{buildroot} tooldir=/usr install
  35. cd -
  36. #-----------------------------------------------------------------------------
  37. # Copy license/copying file
  38. install -D -m644 COPYING3 %{buildroot}/usr/share/licenses/%{name}/LICENSE
  39. #-----------------------------------------------------------------------------
  40. # Create file list
  41. rm %{buildroot}%{_infodir}/dir
  42. find %{buildroot} -name '*.la' -delete
  43. find "${RPM_BUILD_ROOT}" -not -type d -print > filelist.list
  44. sed -i "s|^${RPM_BUILD_ROOT}||" filelist.list
  45. sed -i '/man\/man/d' filelist.list
  46. sed -i '/\/usr\/share\/info/d' filelist.list
  47. #-----------------------------------------------------------------------------
  48. %files -f filelist.list
  49. %defattr(-,root,root)
  50. %{_infodir}/*
  51. %{_mandir}/man1/*
  52. #-----------------------------------------------------------------------------
  53. %changelog
  54. * Sun May 31 2020 Chris Cromer <chris@cromer.cl> 2.34-1
  55. * Mon Mar 25 2019 baho-utot <baho-utot@columbus.rr.com> 2.32-1
  56. * Tue Jan 09 2018 baho-utot <baho-utot@columbus.rr.com> 2.30-1
  57. - Initial build. First version