kernel-libre-firmware.spec 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. Name: kernel-libre-firmware
  2. Version: 1.3
  3. Release: 1%{?dist}
  4. Summary: Free firmware for use with the kernel Linux-libre.
  5. License: GPLv2 and GPLv3+ and MPLv2.0
  6. URL: https://jxself.org/firmware/
  7. Source0: https://jxself.org/firmware/linux-libre-firmware-%{version}.tar.lz
  8. Requires: kernel
  9. Conflicts: b43-openfwwf
  10. %global debug_package %{nil}
  11. %description
  12. Free firmware for use with the kernel Linux-libre.
  13. Please take some time to read The Importance Of Free Firmware <https://jxself.org/free-firmware.shtml> to learn why this is important.
  14. %prep
  15. rm -rf linux-libre-firmware-%{version}
  16. wget -O- https://jxself.org/firmware/linux-libre-firmware-%{version}.tar.lz | tar x --lzip
  17. rm -rf %{buildroot}
  18. mkdir -p %{buildroot}
  19. %build
  20. %install
  21. cd linux-libre-firmware-%{version}/bin
  22. rm -f %{_tmppath}/kernel-libre-firmware-list
  23. find -not -type d -exec echo $(realpath %{_libdir}/..)/lib/firmware/'{}' ';' | sed -e 's_/./_/_g' > %{_tmppath}/kernel-libre-firmware-list
  24. cd ../src
  25. find -not -type d -exec echo %{_datarootdir}/kernel-libre-firmware/src/'{}' ';' | sed -e 's_/./_/_g' >> %{_tmppath}/kernel-libre-firmware-list
  26. sort %{_tmppath}/kernel-libre-firmware-list -uo %{_tmppath}/kernel-libre-firmware-list
  27. cd ..
  28. mkdir -p %{buildroot}/%{_libdir}/../lib/
  29. mv bin %{buildroot}/%{_libdir}/../lib/firmware
  30. mkdir -p %{buildroot}/%{_datarootdir}/kernel-libre-firmware/
  31. mv src %{buildroot}/%{_datarootdir}/kernel-libre-firmware/
  32. %files -f %{_tmppath}/kernel-libre-firmware-list
  33. %changelog
  34. * Mon Sep 10 2018 Muhammad M. Imtiaz <muhammad.muadh@imtiaz.uk.eu.org> - 1.3-1
  35. - Upgraded to version 1.3 (automatic)
  36. * Mon Sep 10 2018 Muhammad M. Imtiaz <muhammad.muadh@imtiaz.uk.eu.org> - 1.3-1
  37. - Upgraded to version 1.3 (automatic)
  38. * Mon Sep 10 2018 Muhammad M. Imtiaz <muhammad.muadh@imtiaz.uk.eu.org> - 1.3-1
  39. - Upgraded to version 1.3 (automatic)