generate ocaml sub-packages for sw_64 and loongarch64

(cherry picked from commit a31d55cd8949c3ae2045fdcf3803b4b63525f12b)
This commit is contained in:
lanruo 2023-08-21 15:41:20 +08:00 committed by openeuler-sync-bot
parent 9cb9f7c5c3
commit 7180f91227

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