From 7180f9122798e542c37618305c8f97f159bc2e71 Mon Sep 17 00:00:00 2001 From: lanruo Date: Mon, 21 Aug 2023 15:41:20 +0800 Subject: [PATCH] generate ocaml sub-packages for sw_64 and loongarch64 (cherry picked from commit a31d55cd8949c3ae2045fdcf3803b4b63525f12b) --- hivex.spec | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/hivex.spec b/hivex.spec index 01e1b84..2da631e 100644 --- a/hivex.spec +++ b/hivex.spec @@ -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 - 1.3.17-6 +- generate ocaml sub-packages for sw_64 and loongarch64 + * Fri Sep 24 2021 yaoxin - 1.3.17-5 - Fix CVE-2021-3622