gnu-efi-vl.spec 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. Summary: Building EFI Applications Using the GNU Toolchain
  2. Name: gnu-efi
  3. Version: 3.0.2
  4. Release: 1%{?_dist_release}
  5. Group: System Environment/Libraries
  6. License: BSD
  7. URL: http://sourceforge.net/projects/gnu-efi/
  8. Source0: %{name}-%{version}.tar.bz2
  9. Patch0: 0001-Add-setjmp-back-once-again.patch
  10. Vendor: Project Vine
  11. Distribution: Vine Linux
  12. Packager: Takemikaduchi
  13. %global efidir vine
  14. %ifarch x86_64
  15. %global efiarch x86_64
  16. %endif
  17. %ifarch %{ix86}
  18. %global efiarch ia32
  19. %endif
  20. %description
  21. Develop EFI applications for ARM-64, ARM-32, x86_64, IA-64 (IPF),
  22. and IA-32 (x86) platforms using the GNU toolchain and the EFI
  23. development environment.
  24. %package devel
  25. Summary: Development tools for %{name}
  26. Summary(ja): %{name} の開発環境
  27. Group: Development/Libraries
  28. Requires: %{name} = %{version}-%{release}
  29. %description devel
  30. Header files and libraries for building a extension library for the %{name}.
  31. %package utils
  32. Summary: Utilities for EFI systems
  33. Group: Applications/System
  34. %description utils
  35. This package contains utilties for debugging and developing EFI systems.
  36. %prep
  37. %setup -q
  38. %patch0 -p1
  39. %build
  40. make
  41. make apps
  42. %install
  43. rm -rf $RPM_BUILD_ROOT
  44. make install INSTALLROOT=$RPM_BUILD_ROOT PREFIX=%{_prefix} LIBDIR=%{_libdir}
  45. find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
  46. mkdir -p $RPM_BUILD_ROOT%{_libdir}/gnuefi
  47. mv $RPM_BUILD_ROOT%{_libdir}/*.lds $RPM_BUILD_ROOT%{_libdir}/*.o $RPM_BUILD_ROOT%{_libdir}/gnuefi
  48. mkdir -p $RPM_BUILD_ROOT/boot/efi/EFI/%{efidir}/
  49. mv %{efiarch}/apps/{route80h.efi,modelist.efi} $RPM_BUILD_ROOT/boot/efi/EFI/%{efidir}/
  50. %post -p /sbin/ldconfig
  51. %postun -p /sbin/ldconfig
  52. %files
  53. %doc README.gnuefi README.efilib README.elilo ChangeLog
  54. %defattr(-,root,root,-)
  55. %{_libdir}/*
  56. %files devel
  57. %defattr(-,root,root,-)
  58. %{_includedir}/efi
  59. %files utils
  60. %dir /boot/efi/EFI/%{efidir}/
  61. %attr(0644,root,root) /boot/efi/EFI/%{efidir}/*.efi
  62. %changelog
  63. * Sun Aug 16 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0.2-1
  64. - initial build based on fedora