]> git.pld-linux.org Git - packages/microcode-data-intel.git/blobdiff - microcode-data-intel.spec
up to 20170511
[packages/microcode-data-intel.git] / microcode-data-intel.spec
index 5183a5741fc7844b15f6df7a370b30102ce1765c..0f3a75f86f9b480e2a266b2a05ec584703844319 100644 (file)
@@ -1,26 +1,29 @@
 Summary:       Microcode definitions for Intel processors
+Summary(pl.UTF-8):     Definicje mikrokodu dla procesorów Intela
 Name:          microcode-data-intel
-Version:       20101123
+Version:       20170511
 Release:       1
 License:       INTEL SOFTWARE LICENSE AGREEMENT
 Group:         Base
-# http://downloadcenter.intel.com/, enter "microcode" to the search
-Source0:       http://downloadmirror.intel.com/19611/eng/microcode-%{version}.tgz
-# Source0-md5: e19dd592d3357cd47e4d360ce43f4032
+# http://downloadcenter.intel.com/, enter "processor microcode data file" to the search
+Source0:       http://downloadmirror.intel.com/26798/eng/microcode-%{version}.tgz
+# Source0-md5: 167e6e1ff234567291f067f48e11d740
+# Tool for splitting Intel's microcode file. From Fedora
+Source1:       intel-microcode2ucode.c
 Provides:      microcode-data
-ExclusiveArch: i686 pentium2 pentium3 pentium4 %{x8664}
+ExclusiveArch: i686 pentium2 pentium3 pentium4 %{x8664} x32
 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.
 
+%description -l pl.UTF-8
+Te pliki danych mikrokodu dla Linuksa zawierają najnowsze definicje
+mikrokodu dla procesorów Intela.
+
 %prep
 %setup -q -c
-mv microcode*.dat microcode.dat
 
 %build
 if ! grep -q 0x00000000 microcode.dat; then
@@ -28,14 +31,20 @@ if ! grep -q 0x00000000 microcode.dat; then
        exit 1
 fi
 
+%{__cc} %{rpmcflags} %{rpmcppflags} %{rpmldflags} -Wall -o intel-microcode2ucode %{SOURCE1}
+./intel-microcode2ucode microcode.dat > /dev/null || exit 1
+
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/lib/firmware
-cp -a microcode.dat $RPM_BUILD_ROOT/lib/firmware/microcode.dat
+install -d $RPM_BUILD_ROOT{%{_sbindir},/lib/firmware}
+
+install intel-microcode2ucode $RPM_BUILD_ROOT%{_sbindir}
+mv intel-ucode $RPM_BUILD_ROOT/lib/firmware
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%attr(640,root,root) /lib/firmware/microcode.dat
+%attr(755,root,root) %{_sbindir}/intel-microcode2ucode
+/lib/firmware/intel-ucode
This page took 0.07569 seconds and 4 git commands to generate.