From 5e662f200f8c52a20315cbb0a4e3dc71fa496073 Mon Sep 17 00:00:00 2001 From: Wenlong Zhang Date: Mon, 28 Aug 2023 17:31:40 +0800 Subject: [PATCH] add loongarch64 support for isomd5sum --- add-loongarch64-support-for-isomd5sum.patch | 25 +++++++++++++++++++++ isomd5sum.spec | 6 ++++- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 add-loongarch64-support-for-isomd5sum.patch diff --git a/add-loongarch64-support-for-isomd5sum.patch b/add-loongarch64-support-for-isomd5sum.patch new file mode 100644 index 0000000..29d6bde --- /dev/null +++ b/add-loongarch64-support-for-isomd5sum.patch @@ -0,0 +1,25 @@ +From 464fc16af83c59e0533fb9560d9d17293af0d76f Mon Sep 17 00:00:00 2001 +From: Wenlong Zhang +Date: Mon, 28 Aug 2023 09:19:52 +0000 +Subject: [PATCH] add loongarch64 support for isomd5sum + +--- + Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile b/Makefile +index bd7683e..4ed8fa6 100644 +--- a/Makefile ++++ b/Makefile +@@ -4,7 +4,7 @@ PYTHONINCLUDE := $(shell $(PYTHON)-config --includes) + + VERSION=1.2.3 + +-ifneq (,$(filter sparc64 ppc64 ppc64le x86_64 s390x aarch64,$(shell uname -m))) ++ifneq (,$(filter sparc64 ppc64 ppc64le x86_64 s390x aarch64 loongarch64,$(shell uname -m))) + LIBDIR = lib64 + else + LIBDIR = lib +-- +2.40.1 + diff --git a/isomd5sum.spec b/isomd5sum.spec index 2cd0ffc..1586446 100644 --- a/isomd5sum.spec +++ b/isomd5sum.spec @@ -1,4 +1,4 @@ -%define anolis_release 4 +%define anolis_release 5 Summary: Utilities for working with md5sum implanted in ISO images Name: isomd5sum Version: 1.2.3 @@ -12,6 +12,7 @@ BuildRequires: gcc BuildRequires: popt-devel BuildRequires: python3-devel BuildRequires: make +Patch001: add-loongarch64-support-for-isomd5sum.patch %description The isomd5sum package contains utilities for implanting and verifying @@ -63,6 +64,9 @@ PYTHON=%{__python3} make DESTDIR=$RPM_BUILD_ROOT install-bin install-devel insta %{python3_sitearch}/pyisomd5sum.so %changelog +* Mon Aug 28 2023 Wenlong Zhang - 1.2.3-5 +- add loongarch64 support for isomd5sum + * Mon Jan 2 2023 Funda Wang - 1.2.3-4 - Fix pkgconfig file installation path -- Gitee