Accepting request 896958 from home:gmbr3:Active

- Use %_firmwaredir

OBS-URL: https://build.opensuse.org/request/show/896958
OBS-URL: https://build.opensuse.org/package/show/Base:System/ucode-intel?expand=0&rev=91
This commit is contained in:
Dirk Mueller 2021-06-02 18:59:18 +00:00 committed by Git OBS Bridge
parent 2655028714
commit fab1d2d39e
2 changed files with 12 additions and 5 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jun 2 16:19:32 UTC 2021 - Callum Farmer <gmbr3@opensuse.org>
- Use %_firmwaredir
-------------------------------------------------------------------
Wed Feb 17 06:14:41 UTC 2021 - Marcus Meissner <meissner@suse.com>

View File

@ -15,7 +15,9 @@
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%if %{undefined _firmwaredir}
%define _firmwaredir /lib/firmware
%endif
Name: ucode-intel
Version: 20210216
Release: 0
@ -45,11 +47,11 @@ This package contains the microcode update blobs for Intel x86 and x86-64 CPUs.
#it is closed source.. nothing to build.
%install
mkdir -p %{buildroot}/lib/firmware/intel-ucode
cp intel-ucode/* %{buildroot}/lib/firmware/intel-ucode
mkdir -p %{buildroot}%{_firmwaredir}/intel-ucode
cp intel-ucode/* %{buildroot}%{_firmwaredir}/intel-ucode
cd intel-ucode-with-caveats
for microcode in *;do
cp $microcode %{buildroot}/lib/firmware/intel-ucode/$microcode
cp $microcode %{buildroot}%{_firmwaredir}/intel-ucode/$microcode
done
%post
@ -65,6 +67,6 @@ done
%defattr(-,root,root)
%license license
%doc releasenote.md
/lib/firmware/intel-ucode/
%{_firmwaredir}/intel-ucode/
%changelog