!21 [sync] PR-20: generate ocaml sub-packages for sw_64 and loongarch64

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:31:31 +00:00 committed by Gitee
commit ea4b7d438a
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,4 +1,4 @@
%ifarch %{ocaml_native_compiler}
%ifarch %{ocaml_native_compiler} loongarch64 sw_64
%bcond_without ocaml
%else
%bcond_with ocaml
@ -6,7 +6,7 @@
Name: hivex
Version: 1.3.17
Release: 5
Release: 6
Summary: Windows Registry "hive" extraction library
License: LGPLv2
URL: http://libguestfs.org/
@ -137,6 +137,10 @@ cd python3
cd ..
%make_install INSTALLDIRS=vendor
%ifarch sw_64
chmod 644 %{buildroot}%{_libdir}/perl5/vendor_perl/auto/Win/Hivex/Hivex.so
%endif
%find_lang %{name}
@ -189,8 +193,10 @@ cd python3 && make check && cd ..
%files -n ocaml-%{name}-devel
%{_libdir}/ocaml/hivex/*.a
%ifnarch loongarch64 sw_64
%{_libdir}/ocaml/hivex/*.cmxa
%{_libdir}/ocaml/hivex/*.cmx
%endif
%{_libdir}/ocaml/hivex/*.mli
%endif
@ -211,6 +217,9 @@ cd python3 && make check && cd ..
%changelog
* Mon May 29 2023 guoqinglan <guoqinglan@kylinsec.com.cn> - 1.3.17-6
- generate ocaml sub-packages for sw_64 and loongarch64
* Fri Sep 24 2021 yaoxin <yaoxin30@huawei.com> - 1.3.17-5
- Fix CVE-2021-3622