!11 [sync] PR-10: 增加riscv支持并使能%check
From: @openeuler-sync-bot Reviewed-by: @licunlong Signed-off-by: @licunlong
This commit is contained in:
commit
9a08f24e48
11
fix-build-error-for-riscv64.patch
Normal file
11
fix-build-error-for-riscv64.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- isomd5sum-1.2.3/Makefile 2018-04-11 01:30:32.000000000 +0800
|
||||||
|
+++ isomd5sum-1.2.3/Makefile.new 2023-02-18 19:45:13.543992122 +0800
|
||||||
|
@@ -4,7 +4,7 @@
|
||||||
|
|
||||||
|
VERSION=1.2.3
|
||||||
|
|
||||||
|
-ifneq (,$(filter sparc64 ppc64 ppc64le x86_64 s390x aarch64 loongarch64,$(shell uname -m)))
|
||||||
|
+ifneq (,$(filter sparc64 ppc64 ppc64le x86_64 s390x aarch64 loongarch64 riscv64,$(shell uname -m)))
|
||||||
|
LIBDIR = lib64
|
||||||
|
else
|
||||||
|
LIBDIR = lib
|
||||||
@ -1,19 +1,20 @@
|
|||||||
Name: isomd5sum
|
Name: isomd5sum
|
||||||
Version: 1.2.3
|
Version: 1.2.3
|
||||||
Release: 7
|
Release: 8
|
||||||
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+
|
||||||
URL: https://github.com/rhinstaller/isomd5sum
|
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
|
||||||
|
|
||||||
%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
|
||||||
area to store md5sum data about the iso. This allows you to check the
|
area to store md5sum data about the iso. This allows you to check the
|
||||||
iso given nothing more than the iso itself.}
|
iso given nothing more than the iso itself.}
|
||||||
|
|
||||||
BuildRequires: gcc popt-devel python3-devel
|
BuildRequires: gcc popt-devel python3-devel genisoimage
|
||||||
|
|
||||||
%description
|
%description
|
||||||
%{common_description}
|
%{common_description}
|
||||||
@ -47,6 +48,9 @@ PYTHON=%{__python3} make checkisomd5 implantisomd5 pyisomd5sum.so
|
|||||||
%install
|
%install
|
||||||
PYTHON=%{__python3} make DESTDIR=%{buildroot} install-bin install-devel install-python
|
PYTHON=%{__python3} make DESTDIR=%{buildroot} install-bin install-devel install-python
|
||||||
|
|
||||||
|
%check
|
||||||
|
make test
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%license COPYING
|
%license COPYING
|
||||||
%{_bindir}/*
|
%{_bindir}/*
|
||||||
@ -63,6 +67,10 @@ PYTHON=%{__python3} make DESTDIR=%{buildroot} install-bin install-devel install-
|
|||||||
%{_mandir}/man1/*
|
%{_mandir}/man1/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Feb 20 2023 laokz <zhangkai@iscas.ac.cn> - 1:1.2.3-8
|
||||||
|
- fix build error for riscv64
|
||||||
|
- add %check
|
||||||
|
|
||||||
* Wed Jan 11 2023 huajingyun <huajingyun@loongson.cn> - 1:1.2.3-7
|
* Wed Jan 11 2023 huajingyun <huajingyun@loongson.cn> - 1:1.2.3-7
|
||||||
- fix build error for loongarch64
|
- fix build error for loongarch64
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user