]> git.pld-linux.org Git - packages/microcode-data-intel.git/commitdiff
build noarch package
authorElan Ruusamäe <glen@pld-linux.org>
Sat, 9 Sep 2017 18:40:03 +0000 (21:40 +0300)
committerElan Ruusamäe <glen@pld-linux.org>
Sat, 9 Sep 2017 18:40:03 +0000 (21:40 +0300)
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

index cec10eb1467ddc60bc2cfb1a74f44a17f220bf62..1633f9ecd395d857009b1d09386f709fc3c0c22d 100644 (file)
@@ -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
This page took 0.204248 seconds and 4 git commands to generate.