]> git.pld-linux.org Git - packages/microcode-data-intel.git/commitdiff
- restore gibberish check from microcode_ctl.spec
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 17 Aug 2009 12:27:10 +0000 (12:27 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    microcode-data-intel.spec -> 1.3

microcode-data-intel.spec

index 1d8eae9434991ee50a1c466e86b44c956bdff2bd..405d989761bb8aa0f107339047fed183c181ae11 100644 (file)
@@ -11,19 +11,27 @@ Provides:   microcode-data
 ExclusiveArch: i686 pentium2 pentium3 pentium4 x86_64 ia32e
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+# nothing to put there
+%define                _enable_debug_packages  0
+
 %description
 The microcode data file for Linux contains the latest microcode
 definitions for all Intel processors.
 
 %prep
 %setup -q -c
+mv microcode*.dat microcode.dat
 
 %build
+if ! grep -q 0x00000000 microcode.dat; then
+       echo >&2 microcode.dat contains giberrish
+       exit 1
+fi
+
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT/lib/firmware
-
-install microcode*.dat $RPM_BUILD_ROOT/lib/firmware/microcode.dat
+cp -a microcode.dat $RPM_BUILD_ROOT/lib/firmware/microcode.dat
 
 %clean
 rm -rf $RPM_BUILD_ROOT
This page took 0.145688 seconds and 4 git commands to generate.