From 4bc51fafcea07a3332048798dc0ccdb4fdb442cf Mon Sep 17 00:00:00 2001 From: David Abdurachmanov Date: Mon, 17 Apr 2023 15:56:07 +0300 Subject: [PATCH] Add support for riscv64 Signed-off-by: David Abdurachmanov --- isomd5sum-1.2.3-add-riscv64.patch | 13 +++++++++++++ isomd5sum.spec | 7 ++++++- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 isomd5sum-1.2.3-add-riscv64.patch diff --git a/isomd5sum-1.2.3-add-riscv64.patch b/isomd5sum-1.2.3-add-riscv64.patch new file mode 100644 index 0000000..32853ca --- /dev/null +++ b/isomd5sum-1.2.3-add-riscv64.patch @@ -0,0 +1,13 @@ +diff --git a/Makefile b/Makefile +index c98cf35..a601e78 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 riscv64,$(shell uname -m))) + LIBDIR = lib64 + else + LIBDIR = lib diff --git a/isomd5sum.spec b/isomd5sum.spec index 864537e..613ea5f 100644 --- a/isomd5sum.spec +++ b/isomd5sum.spec @@ -1,13 +1,15 @@ Summary: Utilities for working with md5sum implanted in ISO images Name: isomd5sum Version: 1.2.3 -Release: 19%{?dist} +Release: 19.0.riscv64%{?dist} Epoch: 1 License: GPL-2.0-or-later Url: https://github.com/rhinstaller/isomd5sum Source0: https://github.com/rhinstaller/%{name}/archive/%{version}.tar.gz +Patch0: isomd5sum-1.2.3-add-riscv64.patch + BuildRequires: gcc BuildRequires: popt-devel BuildRequires: python3-devel @@ -63,6 +65,9 @@ PYTHON=%{__python3} make DESTDIR=$RPM_BUILD_ROOT install-bin install-devel insta %{python3_sitearch}/pyisomd5sum.so %changelog +* Mon Apr 17 2023 David Abdurachmanov - 1.2.3-19.0.riscv64 +- Add support for riscv64 + * Mon Jan 30 2023 Brian C. Lane - 1.2.3-19 - SPDX migration