!77 [sync] PR-76: Add loongarch64 and sw_64 support

From: @openeuler-sync-bot 
Reviewed-by: @Charlie_li 
Signed-off-by: @Charlie_li
This commit is contained in:
openeuler-ci-bot 2023-09-21 12:32:18 +00:00 committed by Gitee
commit 0f90c6d555
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -4,7 +4,7 @@
Name: libguestfs
Version: 1.40.2
Release: 18
Release: 19
Epoch: 1
Summary: A set of tools for accessing and modifying virtual machine (VM) disk images
License: LGPLv2+
@ -273,6 +273,10 @@ install -m 0644 utils/boot-analysis/boot-analysis.1 $RPM_BUILD_ROOT%{_mandir}/ma
install -m 0644 utils/boot-benchmark/boot-benchmark.1 $RPM_BUILD_ROOT%{_mandir}/man1/libguestfs-boot-benchmark.1
%endif
%ifarch sw_64
chmod 644 %{buildroot}%{_libdir}/perl5/vendor_perl/auto/Sys/Guestfs/Guestfs.so
%endif
%find_lang %{name}
%files -f %{name}.lang
@ -320,8 +324,10 @@ install -m 0644 utils/boot-benchmark/boot-benchmark.1 $RPM_BUILD_ROOT%{_mandir}/
%files -n ocaml-%{name}-devel
%doc ocaml/examples/*.ml ocaml/html
%{_libdir}/ocaml/guestfs/*.a
%ifnarch loongarch64 sw_64
%{_libdir}/ocaml/guestfs/*.cmxa
%{_libdir}/ocaml/guestfs/*.cmx
%endif
%{_libdir}/ocaml/guestfs/*.mli
%files -n perl-Sys-Guestfs
@ -372,6 +378,9 @@ install -m 0644 utils/boot-benchmark/boot-benchmark.1 $RPM_BUILD_ROOT%{_mandir}/
%exclude %{_mandir}/man1/virt-tar.1*
%changelog
* Mon Aug 14 2023 suwei <suwei@kylinsec.com.cn> - - 1.40.2-19
- Add loongarch64 and sw_64 support
* Tue Dec 13 2022 wulei <wulei80@h-partners.com> - 1:1.40.2-18
- add some packages to fix libguestfs-test-tool error