Modify Source0 to get it form github

This commit is contained in:
lyn1001 2024-01-09 17:29:58 +08:00
parent ffe2e1a647
commit 3fe73a8c83
4 changed files with 18 additions and 13 deletions

BIN
microcode-20231114.tar.gz Normal file

Binary file not shown.

Binary file not shown.

View File

@ -1,32 +1,37 @@
%global debug_package %{nil} %global debug_package %{nil}
%define upstream_version 2.1-42
Name: microcode_ctl Name: microcode_ctl
Summary: Microcode update for CPU Summary: Microcode update for CPU
Version: 2.1 Version: 20231114
Release: 42 Release: 1
License: GPLv2+ and Redistributable, no modification permitted 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 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 %description
This is a tool to transform and deploy microcode update for x86 CPUs. This is a tool to transform and deploy microcode update for x86 CPUs.
%prep %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 %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 %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 %files
/lib/firmware/* /lib/firmware/*
%doc /usr/share/doc/microcode_ctl/*
%changelog %changelog
* Tue Jan 9 2024 liyanan <liyanan61@h-partners.com> - 20231114-1
- Modify Source0 to get it form github
* Wed Nov 15 2023 lwg K <weigangli99@gmail.com> - 2.1-42 * Wed Nov 15 2023 lwg K <weigangli99@gmail.com> - 2.1-42
- update to upstream 2.1-42. 20231114 - update to upstream 2.1-42. 20231114
- fix CVE-2023-23583 - fix CVE-2023-23583

View File

@ -1,4 +1,4 @@
version_control: git version_control: github
src_repo: https://pagure.io/microcode_ctl.git src_repo: intel/Intel-Linux-Processor-Microcode-Data-Files
tag_prefix: "^v" tag_prefix: "microcode-"
seperator: "." seperator: ""