diff --git a/microcode_ctl-2.1-42.tar.xz b/microcode-20231114.tar.gz similarity index 41% rename from microcode_ctl-2.1-42.tar.xz rename to microcode-20231114.tar.gz index 72ed5822d3e03248023782f57e59ea9f8476c6fc..efd60327b0851ced810f43d2d233d5f6afaab245 100644 Binary files a/microcode_ctl-2.1-42.tar.xz and b/microcode-20231114.tar.gz differ diff --git a/microcode_ctl.spec b/microcode_ctl.spec index f8cbeee3d9a899b0d2e4e51386109793c2c5e374..16adaf4bc9232f53a561bae8b247916f21cf9c24 100644 --- a/microcode_ctl.spec +++ b/microcode_ctl.spec @@ -1,32 +1,37 @@ %global debug_package %{nil} -%define upstream_version 2.1-42 Name: microcode_ctl Summary: Microcode update for CPU -Version: 2.1 -Release: 42 +Version: 20231114 +Release: 1 License: GPLv2+ and Redistributable, no modification permitted -URL: https://pagure.io/microcode_ctl +URL: https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files ExclusiveArch: %{ix86} x86_64 loongarch64 -Source0: https://releases.pagure.org/microcode_ctl/%{name}-%{upstream_version}.tar.xz +Source0: https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files/archive/tags/microcode-20231114.tar.gz %description This is a tool to transform and deploy microcode update for x86 CPUs. %prep -%autosetup -n %{name}-%{upstream_version} +%autosetup -n Intel-Linux-Processor-Microcode-Data-Files-tags-microcode-%{version} +rm -rf intel-ucode intel-ucode-with-caveats %build -%{make_build} CFLAGS="$RPM_OPT_FLAGS" +tar xf %{SOURCE0} --strip 1 */intel-ucode/* */intel-ucode-with-caveats/* \ +--one-top-level=intel-ucode --strip-components=2 --backup=simple %install -make DESTDIR=%{buildroot} PREFIX=%{_prefix} INSDIR=/usr/sbin install clean +install -d %{buildroot}/lib/firmware/intel-ucode +install -m 644 intel-ucode/* %{buildroot}/lib/firmware/intel-ucode +rm -rf intel-ucode %files /lib/firmware/* -%doc /usr/share/doc/microcode_ctl/* %changelog +* Tue Jan 9 2024 liyanan - 20231114-1 +- Modify Source0 to get it form github + * Wed Nov 15 2023 lwg K - 2.1-42 - update to upstream 2.1-42. 20231114 - fix CVE-2023-23583 diff --git a/microcode_ctl.yaml b/microcode_ctl.yaml index e71bd064b3abf53a9a6a844e56b9b0a445924e52..f59f75e1424edc4fc8c4d816cbec1c6c288034e3 100644 --- a/microcode_ctl.yaml +++ b/microcode_ctl.yaml @@ -1,4 +1,4 @@ -version_control: git -src_repo: https://pagure.io/microcode_ctl.git -tag_prefix: "^v" -seperator: "." +version_control: github +src_repo: intel/Intel-Linux-Processor-Microcode-Data-Files +tag_prefix: "microcode-" +seperator: ""