[packages/microcode-data-intel] build noarch package

glen glen at pld-linux.org
Sat Sep 9 20:40:41 CEST 2017


commit 476af7827547d2cfda62307688a58ea2a510999f
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Sat Sep 9 21:40:03 2017 +0300

    build noarch package
    
    nobody needs the binaries, see devel-en list thread:
    http://lists.pld-linux.org/mailman/pipermail/pld-devel-en/2017-September/025420.html

 microcode-data-intel.spec | 12 +++---------
 1 file changed, 3 insertions(+), 9 deletions(-)
---
diff --git a/microcode-data-intel.spec b/microcode-data-intel.spec
index cec10eb..1633f9e 100644
--- a/microcode-data-intel.spec
+++ b/microcode-data-intel.spec
@@ -1,5 +1,3 @@
-# TODO
-# - do not package intel-microcode2ucode and make package noarch, tool doesn't seem to be used runtime
 Summary:	Microcode definitions for Intel processors
 Summary(pl.UTF-8):	Definicje mikrokodu dla procesorów Intela
 Name:		microcode-data-intel
@@ -16,7 +14,7 @@ Source1:	intel-microcode2ucode.c
 Source2:	intel-microcode2ucode-single.c
 BuildRequires:	cpio
 Provides:	microcode-data
-ExclusiveArch:	i686 pentium2 pentium3 pentium4 %{x8664} x32
+BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -39,7 +37,7 @@ Intel microcode for initrd.
 Mikrokod dla procesorów Intel dla initrd.
 
 %prep
-%setup -q -c
+%setup -qc
 
 %build
 if ! grep -q 0x00000000 microcode.dat; then
@@ -54,12 +52,10 @@ fi
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_sbindir},/lib/firmware,/boot}
+install -d $RPM_BUILD_ROOT{/lib/firmware,/boot}
 
-cp -p intel-microcode2ucode $RPM_BUILD_ROOT%{_sbindir}
 mv intel-ucode $RPM_BUILD_ROOT/lib/firmware
 
-cp -p intel-microcode2ucode-single $RPM_BUILD_ROOT%{_sbindir}
 install -d kernel/x86/microcode
 mv microcode.bin kernel/x86/microcode/GenuineIntel.bin
 echo kernel/x86/microcode/GenuineIntel.bin | cpio -o -H newc -R 0:0 > $RPM_BUILD_ROOT/boot/intel-ucode.img
@@ -69,10 +65,8 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_sbindir}/intel-microcode2ucode
 /lib/firmware/intel-ucode
 
 %files initrd
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_sbindir}/intel-microcode2ucode-single
 /boot/intel-ucode.img
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/microcode-data-intel.git/commitdiff/476af7827547d2cfda62307688a58ea2a510999f



More information about the pld-cvs-commit mailing list