Compare commits
10 Commits
b9a4f22a94
...
1d2d40a00d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1d2d40a00d | ||
|
|
31a05ec1e0 | ||
|
|
9fb7126b6e | ||
|
|
b56332ba11 | ||
|
|
32aab5bc83 | ||
|
|
421cfdc511 | ||
|
|
285583a2f5 | ||
|
|
fde92e9f01 | ||
|
|
6ed81b1af9 | ||
|
|
ce6f569af8 |
25
0001-isomd5sum-1.2.3-add-loongarch64-support.patch
Normal file
25
0001-isomd5sum-1.2.3-add-loongarch64-support.patch
Normal file
@ -0,0 +1,25 @@
|
||||
From 42ebb67d30d95ace5d9f4caa43320001dd6c7c35 Mon Sep 17 00:00:00 2001
|
||||
From: Huang Yang <huangyang@loongson.cn>
|
||||
Date: Tue, 7 Mar 2023 09:36:05 +0800
|
||||
Subject: [PATCH] add loongarch64 support
|
||||
|
||||
---
|
||||
Makefile | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index c98cf35..346e028 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.33.0
|
||||
|
||||
11
0002-fix-build-error-for-riscv64.patch
Normal file
11
0002-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
|
||||
25
0003-fix-sw_64-build-error.patch
Normal file
25
0003-fix-sw_64-build-error.patch
Normal file
@ -0,0 +1,25 @@
|
||||
From 870e7c48c64897522b7368ae2fa283d6387890c5 Mon Sep 17 00:00:00 2001
|
||||
From: maqi <maqi@uniontech.com>
|
||||
Date: Mon, 3 Mar 2025 15:24:22 +0800
|
||||
Subject: [PATCH] fix sw_64 build error
|
||||
|
||||
---
|
||||
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.39.3
|
||||
|
||||
@ -1,18 +1,22 @@
|
||||
Name: isomd5sum
|
||||
Version: 1.2.3
|
||||
Release: 4
|
||||
Release: 9
|
||||
Epoch: 1
|
||||
Summary: Utilities for working with md5sum implanted in ISO images
|
||||
License: GPLv2+
|
||||
URL: https://github.com/rhinstaller/isomd5sum
|
||||
Source0: https://github.com/rhinstaller/%{name}/archive/%{version}.tar.gz
|
||||
|
||||
Patch0001: 0001-isomd5sum-1.2.3-add-loongarch64-support.patch
|
||||
Patch0002: 0002-fix-build-error-for-riscv64.patch
|
||||
Patch0003: 0003-fix-sw_64-build-error.patch
|
||||
|
||||
%global common_description %{expand:
|
||||
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
|
||||
iso given nothing more than the iso itself.}
|
||||
|
||||
BuildRequires: gcc popt-devel python2-devel python3-devel
|
||||
BuildRequires: gcc popt-devel python3-devel genisoimage
|
||||
|
||||
%description
|
||||
%{common_description}
|
||||
@ -25,13 +29,6 @@ Provides: %{name}-static = %{epoch}:%{version}-%{release}
|
||||
%description devel
|
||||
Development headers and libraries for %{name}
|
||||
|
||||
%package -n python2-isomd5sum
|
||||
Summary: Python2 bindings for isomd5sum
|
||||
%{?python_provide:%python_provide python2-isomd5sum}
|
||||
|
||||
%description -n python2-isomd5sum
|
||||
%{common_description}
|
||||
|
||||
%package -n python3-isomd5sum
|
||||
Summary: Python3 bindings for isomd5sum
|
||||
%{?python_provide:%python_provide python3-isomd5sum}
|
||||
@ -44,33 +41,17 @@ Summary: Python3 bindings for isomd5sum
|
||||
%prep
|
||||
%autosetup -n %{name}-%{version} -p1
|
||||
|
||||
rm -rf %{py3dir}
|
||||
cp -a . %{py3dir}
|
||||
|
||||
%build
|
||||
CFLAGS="$RPM_OPT_FLAGS -Wno-strict-aliasing"; export CFLAGS
|
||||
LDFLAGS="$RPM_LD_FLAGS"; export LDFLAGS
|
||||
|
||||
PYTHON=%{__python2} make checkisomd5 implantisomd5 pyisomd5sum.so
|
||||
|
||||
pushd %{py3dir}
|
||||
PYTHON=%{__python3} make checkisomd5 implantisomd5 pyisomd5sum.so
|
||||
popd
|
||||
|
||||
%install
|
||||
PYTHON=%{__python2} make DESTDIR=%{buildroot} install-bin install-devel install-python
|
||||
|
||||
pushd %{py3dir}
|
||||
PYTHON=%{__python3} make DESTDIR=%{buildroot} install-bin install-devel install-python
|
||||
popd
|
||||
|
||||
%pre
|
||||
|
||||
%preun
|
||||
|
||||
%post
|
||||
|
||||
%postun
|
||||
%check
|
||||
make test
|
||||
|
||||
%files
|
||||
%license COPYING
|
||||
@ -81,9 +62,6 @@ popd
|
||||
%{_libdir}/*.a
|
||||
%{_datadir}/pkgconfig/isomd5sum.pc
|
||||
|
||||
%files -n python2-isomd5sum
|
||||
%{python2_sitearch}/*.so
|
||||
|
||||
%files -n python3-isomd5sum
|
||||
%{python3_sitearch}/*.so
|
||||
|
||||
@ -91,5 +69,21 @@ popd
|
||||
%{_mandir}/man1/*
|
||||
|
||||
%changelog
|
||||
* Mon Mar 03 2025 maqi <maqi@uniontech.com> - 1:1.2.3-9
|
||||
- Add sw_64 support
|
||||
|
||||
* Thu Mar 16 2023 laokz <zhangkai@iscas.ac.cn> - 1:1.2.3-8
|
||||
- fix build error for riscv64
|
||||
- add %check
|
||||
|
||||
* Tue Mar 7 2023 HuangYang <huangyang@loongson.cn> - 1:1.2.3-7
|
||||
- add loongarch64 support
|
||||
|
||||
* Wed Oct 19 2022 zhangruifang <zhangruifang1@h-partners.com> - 1:1.2.3-6
|
||||
- remove redundant macros
|
||||
|
||||
* Thu Oct 29 2020 wangchen <wangchen137@huawei.com> - 1:1.2.3-5
|
||||
- Remove python2
|
||||
|
||||
* Mon Oct 14 2019 openEuler Buildteam <buildteam@openeuler.org> - 1:1.2.3-4
|
||||
- Package init
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user