2013-07-25 08:27:38 +02:00
|
|
|
#
|
|
|
|
# spec file for package ucode-intel
|
|
|
|
#
|
2022-02-10 14:12:51 +01:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
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.
|
|
|
|
|
2020-06-09 19:45:20 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-07-25 08:27:38 +02:00
|
|
|
#
|
|
|
|
|
2021-06-09 09:40:50 +02:00
|
|
|
|
2021-06-02 20:59:18 +02:00
|
|
|
%if %{undefined _firmwaredir}
|
|
|
|
%define _firmwaredir /lib/firmware
|
|
|
|
%endif
|
2013-07-25 08:27:38 +02:00
|
|
|
Name: ucode-intel
|
2022-11-21 16:39:58 +01:00
|
|
|
Version: 20221108
|
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
|
2020-06-09 19:45:20 +02:00
|
|
|
URL: https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files
|
2019-03-14 15:11:07 +01:00
|
|
|
Source0: https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files/archive/microcode-%version.tar.gz
|
2018-05-16 10:17:30 +02:00
|
|
|
Source1: ucode-intel-rpmlintrc
|
2013-11-27 10:08:56 +01:00
|
|
|
Supplements: modalias(x86cpu:vendor%3A0000%3Afamily%3A*%3Amodel%3A*%3Afeature%3A*)
|
2018-04-13 16:24:51 +02:00
|
|
|
# new method ... note that only 1 : might be present, otherwise libzypp misinterprets it.
|
|
|
|
Supplements: modalias(cpu:type%3Ax86*ven0000*)
|
2013-07-25 08:27:38 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2015-12-15 17:33:23 +01:00
|
|
|
Requires(post): coreutils
|
|
|
|
Requires(postun): 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
|
2019-03-14 16:46:39 +01:00
|
|
|
%setup -q -n Intel-Linux-Processor-Microcode-Data-Files-microcode-%version/
|
2013-07-25 08:27:38 +02:00
|
|
|
|
|
|
|
%build
|
2018-03-14 15:13:49 +01:00
|
|
|
#it is closed source.. nothing to build.
|
2013-07-25 08:27:38 +02:00
|
|
|
|
|
|
|
%install
|
2021-06-02 20:59:18 +02:00
|
|
|
mkdir -p %{buildroot}%{_firmwaredir}/intel-ucode
|
|
|
|
cp intel-ucode/* %{buildroot}%{_firmwaredir}/intel-ucode
|
2018-05-09 11:31:25 +02:00
|
|
|
cd intel-ucode-with-caveats
|
|
|
|
for microcode in *;do
|
2021-06-02 20:59:18 +02:00
|
|
|
cp $microcode %{buildroot}%{_firmwaredir}/intel-ucode/$microcode
|
2018-05-09 11:31:25 +02:00
|
|
|
done
|
2013-07-25 08:27:38 +02:00
|
|
|
|
|
|
|
%post
|
2014-04-10 10:14:07 +02:00
|
|
|
%{?regenerate_initrd_post}
|
2013-07-25 08:27:38 +02:00
|
|
|
|
2015-12-15 17:33:23 +01:00
|
|
|
%postun
|
|
|
|
%{?regenerate_initrd_post}
|
|
|
|
|
2014-04-10 10:14:07 +02:00
|
|
|
%posttrans
|
|
|
|
%{?regenerate_initrd_posttrans}
|
|
|
|
|
2013-07-25 08:27:38 +02:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2018-08-24 17:06:14 +02:00
|
|
|
%license license
|
2020-11-11 10:57:36 +01:00
|
|
|
%doc releasenote.md
|
2021-06-02 20:59:18 +02:00
|
|
|
%{_firmwaredir}/intel-ucode/
|
2013-07-25 08:27:38 +02:00
|
|
|
|
|
|
|
%changelog
|