2013-07-25 08:27:38 +02:00
|
|
|
#
|
|
|
|
# spec file for package ucode-intel
|
|
|
|
#
|
2015-03-19 10:49:40 +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-03-19 10:49:40 +01:00
|
|
|
Version: 20150121
|
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-10 10:14:07 +02:00
|
|
|
BuildRequires: suse-module-tools
|
2013-07-25 08:44:12 +02:00
|
|
|
#License is: Intel Software License Agreement
|
|
|
|
Url: http://downloadcenter.intel.com/Detail_Desc.aspx?agr=Y&DwnldID=22508&keyword=Microcode&lang=eng
|
2013-07-25 08:27:38 +02:00
|
|
|
Source0: microcode-%{version}.tgz
|
|
|
|
Source1: intel-microcode2ucode.c
|
2013-07-25 08:44:12 +02:00
|
|
|
Source2: LICENSE
|
2013-11-27 10:08:56 +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-23 18:44:13 +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.
|
|
|
|
|
|
|
|
%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
|
|
|
|
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-10 10:14:07 +02:00
|
|
|
%{?regenerate_initrd_post}
|
2013-07-25 08:27:38 +02:00
|
|
|
|
2014-04-10 10:14:07 +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
|
|
|
|
|
|
|
%changelog
|