!18 添加sw架构
From: @wuzx065891 Reviewed-by: @t_feng Signed-off-by: @t_feng
This commit is contained in:
commit
0f768296b0
26
python-dmidecode-3.12.2-sw.patch
Executable file
26
python-dmidecode-3.12.2-sw.patch
Executable file
@ -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 <nima@autonomy.net.au>
|
||||||
|
- *. © 2009-2013 David Sommerseth <davids@redhat.com>
|
||||||
|
- *. © 2002-2010 Jean Delvare <khali@linux-fr.org>
|
||||||
|
- *. © 2000-2002 Alan Cox <alan@redhat.com>
|
||||||
|
+ *. © 2007-2013 Nima Talebi <nima@autonomy.net.au>
|
||||||
|
+ *. © 2009-2013 David Sommerseth <davids@redhat.com>
|
||||||
|
+ *. © 2002-2010 Jean Delvare <khali@linux-fr.org>
|
||||||
|
+ *. © 2000-2002 Alan Cox <alan@redhat.com>
|
||||||
|
*.
|
||||||
|
*. 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" },
|
||||||
@ -2,12 +2,15 @@
|
|||||||
|
|
||||||
Name: python-dmidecode
|
Name: python-dmidecode
|
||||||
Version: 3.12.2
|
Version: 3.12.2
|
||||||
Release: 23
|
Release: 24
|
||||||
Summary: Python extension module for dmidecode
|
Summary: Python extension module for dmidecode
|
||||||
|
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
URL: http://projects.autonomy.net.au/python-dmidecode/
|
URL: http://projects.autonomy.net.au/python-dmidecode/
|
||||||
Source0: https://github.com/nima/python-dmidecode/archive/v%{version}.tar.gz
|
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
|
BuildRequires: gcc libxml2-devel python3-libxml2 python3-devel
|
||||||
|
|
||||||
@ -37,7 +40,7 @@ data structures or XML data.
|
|||||||
%package_help
|
%package_help
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%autosetup -n %{name}-%{version} -p1
|
||||||
sed -i 's/python2/python3/g' Makefile unit-tests/Makefile
|
sed -i 's/python2/python3/g' Makefile unit-tests/Makefile
|
||||||
|
|
||||||
%build
|
%build
|
||||||
@ -68,6 +71,9 @@ make -C unit-tests
|
|||||||
%doc README doc/README.upstream
|
%doc README doc/README.upstream
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Nov 23 2022 wuzx<wuzx1226@qq.com> - 3.12.2-24
|
||||||
|
- Add sw64 architecture
|
||||||
|
|
||||||
* Mon Jun 6 2022 yangcheng <yangcheng87@h-partners.com> - 3.12.2-23
|
* Mon Jun 6 2022 yangcheng <yangcheng87@h-partners.com> - 3.12.2-23
|
||||||
- Type:bugfix
|
- Type:bugfix
|
||||||
- CVE:NA
|
- CVE:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user