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.
 
 
 
 

47 lines
1.8 KiB

  1. #TARBALL: ftp://sourceware.org/pub/libffi/libffi-3.3.tar.gz
  2. #MD5SUM: 6313289e32f1d38a9df4770b014a2ca7;SOURCES/libffi-3.3.tar.gz
  3. #-----------------------------------------------------------------------------
  4. Summary: The Libffi library provides a portable, high level programming interface to various calling conventions.
  5. Name: libffi
  6. Version: 3.3
  7. Release: 1
  8. License: GPLv2
  9. URL: Any
  10. Group: LFS/Base
  11. Source0: %{name}-%{version}.tar.gz
  12. Requires: filesystem
  13. %description
  14. The Libffi library provides a portable, high level programming interface to various calling conventions.
  15. This allows a programmer to call any function specified by a call interface description at run time.
  16. #-----------------------------------------------------------------------------
  17. %prep
  18. %setup -q -n %{NAME}-%{VERSION}
  19. %build
  20. ./configure \
  21. --prefix=%{_prefix} \
  22. --disable-static
  23. make %{?_smp_mflags}
  24. %install
  25. make DESTDIR=%{buildroot} install
  26. #-----------------------------------------------------------------------------
  27. # Copy license/copying file
  28. install -D -m644 LICENSE %{buildroot}/usr/share/licenses/%{name}/LICENSE
  29. #-----------------------------------------------------------------------------
  30. # Create file list
  31. rm %{buildroot}%{_infodir}/dir
  32. find %{buildroot} -name '*.la' -delete
  33. find "${RPM_BUILD_ROOT}" -not -type d -print > filelist.list
  34. sed -i "s|^${RPM_BUILD_ROOT}||" filelist.list
  35. sed -i '/man\/man/d' filelist.list
  36. sed -i '/\/usr\/share\/info/d' filelist.list
  37. #-----------------------------------------------------------------------------
  38. %files -f filelist.list
  39. %defattr(-,root,root)
  40. %{_infodir}/*
  41. %{_mandir}/man3/*
  42. #-----------------------------------------------------------------------------
  43. %changelog
  44. * Sun May 31 2020 Chris Cromer <chris@cromer.cl> 3.3-1
  45. * Fri Jul 17 2018 baho-utot <baho-utot@columbus.rr.com> 3.2.1-1
  46. - Initial build. First version