From 41fb3bb34d3917710da2f13189cba053526a1360 Mon Sep 17 00:00:00 2001 From: Hailiang Date: Tue, 11 Mar 2025 13:29:01 +0800 Subject: [PATCH] Add sw_64 support --- fix-build-error-for-sw_64.patch | 25 +++++++++++++++++++++++++ isomd5sum.spec | 10 +++++++--- 2 files changed, 32 insertions(+), 3 deletions(-) create mode 100644 fix-build-error-for-sw_64.patch diff --git a/fix-build-error-for-sw_64.patch b/fix-build-error-for-sw_64.patch new file mode 100644 index 0000000..9e0d106 --- /dev/null +++ b/fix-build-error-for-sw_64.patch @@ -0,0 +1,25 @@ +From 9e9a6c0ed64a51498a0b48e83c88040e6aa4a36f Mon Sep 17 00:00:00 2001 +From: Hailiang +Date: Mon, 17 Mar 2025 17:36:44 +0800 +Subject: [PATCH] fix build error for sw_64 + +--- + Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile b/Makefile +index 208393c..6f532ed 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 loongarch64 riscv64,$(shell uname -m))) ++ifneq (,$(filter sparc64 ppc64 ppc64le x86_64 s390x aarch64 loongarch64 riscv64 sw_64,$(shell uname -m))) + LIBDIR = lib64 + else + LIBDIR = lib +-- +2.20.1 + diff --git a/isomd5sum.spec b/isomd5sum.spec index 85851d4..50ec6d2 100644 --- a/isomd5sum.spec +++ b/isomd5sum.spec @@ -1,6 +1,6 @@ Name: isomd5sum Version: 1.2.3 -Release: 8 +Release: 9 Epoch: 1 Summary: Utilities for working with md5sum implanted in ISO images License: GPLv2+ @@ -8,6 +8,7 @@ URL: https://github.com/rhinstaller/isomd5sum Source0: https://github.com/rhinstaller/%{name}/archive/%{version}.tar.gz Patch1: fix-build-error-for-loongarch64.patch Patch2: fix-build-error-for-riscv64.patch +Patch3: fix-build-error-for-sw_64.patch %global common_description %{expand: isomd5sum provides a way of making use of the ISO9660 application data @@ -34,7 +35,7 @@ Summary: Python3 bindings for isomd5sum %description -n python3-isomd5sum %{common_description} -%package_help +#%package_help %prep %autosetup -n %{name}-%{version} -p1 @@ -63,10 +64,13 @@ make test %files -n python3-isomd5sum %{python3_sitearch}/*.so -%files help +#%files help %{_mandir}/man1/* %changelog +* Tue Mar 11 2025 mahailiang - 1:1.2.3-9 +- Add sw_64 support + * Mon Feb 20 2023 laokz - 1:1.2.3-8 - fix build error for riscv64 - add %check -- Gitee