Add sw_64 support
(cherry picked from commit 41fb3bb34d3917710da2f13189cba053526a1360)
This commit is contained in:
parent
9a08f24e48
commit
56b36eca59
25
fix-build-error-for-sw_64.patch
Normal file
25
fix-build-error-for-sw_64.patch
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
From 9e9a6c0ed64a51498a0b48e83c88040e6aa4a36f Mon Sep 17 00:00:00 2001
|
||||||
|
From: Hailiang <mahailiang@uniontech.com>
|
||||||
|
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
|
||||||
|
|
||||||
@ -1,6 +1,6 @@
|
|||||||
Name: isomd5sum
|
Name: isomd5sum
|
||||||
Version: 1.2.3
|
Version: 1.2.3
|
||||||
Release: 8
|
Release: 9
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Summary: Utilities for working with md5sum implanted in ISO images
|
Summary: Utilities for working with md5sum implanted in ISO images
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
@ -8,6 +8,7 @@ URL: https://github.com/rhinstaller/isomd5sum
|
|||||||
Source0: https://github.com/rhinstaller/%{name}/archive/%{version}.tar.gz
|
Source0: https://github.com/rhinstaller/%{name}/archive/%{version}.tar.gz
|
||||||
Patch1: fix-build-error-for-loongarch64.patch
|
Patch1: fix-build-error-for-loongarch64.patch
|
||||||
Patch2: fix-build-error-for-riscv64.patch
|
Patch2: fix-build-error-for-riscv64.patch
|
||||||
|
Patch3: fix-build-error-for-sw_64.patch
|
||||||
|
|
||||||
%global common_description %{expand:
|
%global common_description %{expand:
|
||||||
isomd5sum provides a way of making use of the ISO9660 application data
|
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
|
%description -n python3-isomd5sum
|
||||||
%{common_description}
|
%{common_description}
|
||||||
|
|
||||||
%package_help
|
#%package_help
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n %{name}-%{version} -p1
|
%autosetup -n %{name}-%{version} -p1
|
||||||
@ -63,10 +64,13 @@ make test
|
|||||||
%files -n python3-isomd5sum
|
%files -n python3-isomd5sum
|
||||||
%{python3_sitearch}/*.so
|
%{python3_sitearch}/*.so
|
||||||
|
|
||||||
%files help
|
#%files help
|
||||||
%{_mandir}/man1/*
|
%{_mandir}/man1/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Mar 11 2025 mahailiang <mahailiang@uniontech.com> - 1:1.2.3-9
|
||||||
|
- Add sw_64 support
|
||||||
|
|
||||||
* Mon Feb 20 2023 laokz <zhangkai@iscas.ac.cn> - 1:1.2.3-8
|
* Mon Feb 20 2023 laokz <zhangkai@iscas.ac.cn> - 1:1.2.3-8
|
||||||
- fix build error for riscv64
|
- fix build error for riscv64
|
||||||
- add %check
|
- add %check
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user