From 2791cbd9c286fad63ea5061a67021e96723ec37a Mon Sep 17 00:00:00 2001 From: Wu Zixuan Date: Mon, 28 Nov 2022 16:03:41 +0800 Subject: [PATCH] Add sw64 architecture Signed-off-by: Wu Zixuan --- python-dmidecode-3.12.2-sw.patch | 26 ++++++++++++++++++++++++++ python-dmidecode.spec | 10 ++++++++-- 2 files changed, 34 insertions(+), 2 deletions(-) create mode 100755 python-dmidecode-3.12.2-sw.patch diff --git a/python-dmidecode-3.12.2-sw.patch b/python-dmidecode-3.12.2-sw.patch new file mode 100755 index 0000000..7e384ca --- /dev/null +++ b/python-dmidecode-3.12.2-sw.patch @@ -0,0 +1,26 @@ +diff -Nuar python-dmidecode-3.12.2.org/src/dmidecode.c python-dmidecode-3.12.2.sw/src/dmidecode.c +--- python-dmidecode-3.12.2.org/src/dmidecode.c 2022-02-26 07:07:27.810000000 +0000 ++++ python-dmidecode-3.12.2.sw/src/dmidecode.c 2022-02-26 07:08:59.290000000 +0000 +@@ -2,10 +2,10 @@ + /*. ******* coding:utf-8 AUTOHEADER START v1.1 ******* + *. vim: fileencoding=utf-8 syntax=c sw=2 ts=2 et + *. +- *. © 2007-2013 Nima Talebi +- *. © 2009-2013 David Sommerseth +- *. © 2002-2010 Jean Delvare +- *. © 2000-2002 Alan Cox ++ *. © 2007-2013 Nima Talebi ++ *. © 2009-2013 David Sommerseth ++ *. © 2002-2010 Jean Delvare ++ *. © 2000-2002 Alan Cox + *. + *. This file is part of Python DMI-Decode. + *. +@@ -831,6 +831,7 @@ + { 0x2B, "Atom" }, + + { 0x30, "Alpha" }, ++ { 0x9916, "Sw_64" }, + { 0x31, "Alpha 21064" }, + { 0x32, "Alpha 21066" }, + { 0x33, "Alpha 21164" }, diff --git a/python-dmidecode.spec b/python-dmidecode.spec index 153e969..2b76422 100644 --- a/python-dmidecode.spec +++ b/python-dmidecode.spec @@ -2,12 +2,15 @@ Name: python-dmidecode Version: 3.12.2 -Release: 23 +Release: 24 Summary: Python extension module for dmidecode License: GPLv2 URL: http://projects.autonomy.net.au/python-dmidecode/ Source0: https://github.com/nima/python-dmidecode/archive/v%{version}.tar.gz +%ifarch sw_64 +Patch1: python-dmidecode-3.12.2-sw.patch +%endif BuildRequires: gcc libxml2-devel python3-libxml2 python3-devel @@ -37,7 +40,7 @@ data structures or XML data. %package_help %prep -%setup -q +%autosetup -n %{name}-%{version} -p1 sed -i 's/python2/python3/g' Makefile unit-tests/Makefile %build @@ -68,6 +71,9 @@ make -C unit-tests %doc README doc/README.upstream %changelog +* Wed Nov 23 2022 wuzx - 3.12.2-24 +- Add sw64 architecture + * Mon Jun 6 2022 yangcheng - 3.12.2-23 - Type:bugfix - CVE:NA