2013-07-25 08:27:38 +02:00
|
|
|
#
|
|
|
|
# spec file for package ucode-intel
|
|
|
|
#
|
2015-03-19 21:24:55 +01:00
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
2013-07-25 08:27:38 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: ucode-intel
|
2015-11-12 19:40:39 +01:00
|
|
|
Version: 20151106
|
2013-07-25 08:27:38 +02:00
|
|
|
Release: 0
|
2013-07-25 08:44:12 +02:00
|
|
|
Summary: Microcode Updates for Intel x86/x86-64 CPUs
|
|
|
|
License: SUSE-Firmware
|
|
|
|
Group: Hardware/Other
|
2014-04-12 21:28:47 +02:00
|
|
|
BuildRequires: suse-module-tools
|
2013-07-25 08:44:12 +02:00
|
|
|
#License is: Intel Software License Agreement
|
2015-11-12 19:40:39 +01:00
|
|
|
Url: https://downloadcenter.intel.com/download/25512/Linux-Processor-Microcode-Data-File
|
2015-11-10 15:07:31 +01:00
|
|
|
Source0: microcode-%{version}.tgz
|
2013-07-25 08:27:38 +02:00
|
|
|
Source1: intel-microcode2ucode.c
|
2013-07-25 08:44:12 +02:00
|
|
|
Source2: LICENSE
|
2013-11-27 15:33:40 +01:00
|
|
|
Supplements: modalias(x86cpu:vendor%3A0000%3Afamily%3A*%3Amodel%3A*%3Afeature%3A*)
|
2013-07-25 08:27:38 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2015-01-24 22:20:53 +01:00
|
|
|
Requires(pre): coreutils
|
2013-07-25 08:44:12 +02:00
|
|
|
ExclusiveArch: %ix86 x86_64
|
2013-07-25 08:27:38 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
This package contains the microcode update blobs for Intel x86 and x86-64 CPUs.
|
|
|
|
|
2015-11-12 19:40:39 +01:00
|
|
|
%package blob
|
|
|
|
Summary: Latest Microcode for Intel x86/x86-64 CPUs
|
|
|
|
Group: Hardware/Other
|
|
|
|
|
|
|
|
%description blob
|
|
|
|
This package contains the microcode update for Intel x86 and x86-64 CPUs in a single blob.
|
|
|
|
|
2013-07-25 08:27:38 +02:00
|
|
|
%prep
|
|
|
|
%setup -q -c intel-ucode
|
2013-07-25 08:44:12 +02:00
|
|
|
cp %{SOURCE2} .
|
2013-07-25 08:27:38 +02:00
|
|
|
|
|
|
|
%build
|
2013-07-25 08:44:12 +02:00
|
|
|
%{__cc} -fwhole-program %{optflags} %{SOURCE1} -o generate_microcode
|
2013-07-25 08:27:38 +02:00
|
|
|
./generate_microcode microcode.dat
|
|
|
|
|
|
|
|
%install
|
2015-11-12 19:40:39 +01:00
|
|
|
install -D -m 0755 GenuineIntel.bin %{buildroot}/lib/firmware/GenuineIntel.bin
|
2013-07-25 08:27:38 +02:00
|
|
|
install -D -m 0755 generate_microcode %{buildroot}%{_bindir}/generate_microcode
|
|
|
|
for file in intel-ucode/*; do
|
|
|
|
install -D -m 0644 $file %{buildroot}/lib/firmware/$file
|
|
|
|
done
|
|
|
|
|
|
|
|
%post
|
2014-04-12 21:28:47 +02:00
|
|
|
%{?regenerate_initrd_post}
|
2014-04-10 10:14:07 +02:00
|
|
|
|
2014-04-12 21:28:47 +02:00
|
|
|
%posttrans
|
|
|
|
%{?regenerate_initrd_posttrans}
|
|
|
|
|
2013-07-25 08:27:38 +02:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc LICENSE
|
|
|
|
%{_bindir}/generate_microcode
|
2013-07-25 08:44:12 +02:00
|
|
|
/lib/firmware/intel-ucode/
|
2013-07-25 08:27:38 +02:00
|
|
|
|
2015-11-04 15:33:47 +01:00
|
|
|
%files blob
|
2015-11-12 19:40:39 +01:00
|
|
|
%defattr(-,root,root)
|
|
|
|
/lib/firmware/GenuineIntel.bin
|
2015-11-04 15:33:47 +01:00
|
|
|
|
2013-07-25 08:27:38 +02:00
|
|
|
%changelog
|