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