From 8678338fc62637ac2167c83e9a9cc83842c83cc2 Mon Sep 17 00:00:00 2001 From: yangxiaoxuan Date: Tue, 31 Aug 2021 18:20:25 +0800 Subject: [PATCH] build: support loongarch64 Signed-off-by: yangxiaoxuan --- dmidecode.spec | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/dmidecode.spec b/dmidecode.spec index b4a3087..02bbee3 100644 --- a/dmidecode.spec +++ b/dmidecode.spec @@ -1,7 +1,8 @@ +%define anolis_release .0.1 Summary: Tool to analyse BIOS DMI data Name: dmidecode Version: 3.2 -Release: 10%{?dist} +Release: 10%{anolis_release}%{?dist} Epoch: 1 License: GPLv2+ Source0: http://download.savannah.gnu.org/releases/%{name}/%{name}-%{version}.tar.xz @@ -54,7 +55,7 @@ Patch43: RHELonly-Missing-comma-in-the-dmi_slot_type.patch Patch44: 0024-dmidecode-Fix-crash-with-u-option.patch BuildRequires: gcc make -ExclusiveArch: %{ix86} x86_64 ia64 aarch64 +ExclusiveArch: %{ix86} x86_64 ia64 aarch64 loongarch64 %description dmidecode reports information about x86 & ia64 hardware as described in the @@ -126,7 +127,7 @@ make %{?_smp_mflags} DESTDIR=%{buildroot} prefix=%{_prefix} install-bin install- %{!?_licensedir:%global license %%doc} %license LICENSE %{_sbindir}/dmidecode -%ifnarch ia64 aarch64 +%ifnarch ia64 aarch64 loongarch64 %{_sbindir}/vpddecode %{_sbindir}/ownership %{_sbindir}/biosdecode @@ -134,6 +135,9 @@ make %{?_smp_mflags} DESTDIR=%{buildroot} prefix=%{_prefix} install-bin install- %{_mandir}/man8/* %changelog +* Tue Aug 31 2021 yangxiaoxuan - 1:3.2-10.0.1 +- Support loongarch64 + * Fri Apr 9 2021 Coiby Xu - 1:3.2-10 - Fix crash with -u option - Resolves: rhbz#1885823 -- Gitee