diff --git a/ocaml-base64.spec b/ocaml-base64.spec index 4ad42f6..157826a 100644 --- a/ocaml-base64.spec +++ b/ocaml-base64.spec @@ -1,10 +1,10 @@ -# There's a problem building the debugsource package which I don't -# understand. This should be solvable in future. +%ifnarch %{ocaml_native_compiler} %global debug_package %{nil} +%endif Name: ocaml-base64 Version: 3.4.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Base64 library for OCaml License: ISC @@ -51,6 +51,11 @@ find %{buildroot}%{_libdir}/ocaml -name \*.ml -delete # We install the documentation with the doc macro rm -fr %{buildroot}%{_prefix}/doc +%ifarch %{ocaml_native_compiler} +# Add missing executable bits +find %{buildroot}%{_libdir}/ocaml -name \*.cmxs -exec chmod a+x {} \+ +%endif + %files %doc README.md @@ -76,6 +81,9 @@ rm -fr %{buildroot}%{_prefix}/doc %changelog +* Fri Jan 22 2021 Jerry James -3.4.0-2 +- Produce usable debuginfo + * Thu Jan 21 2021 Richard W.M. Jones - 3.4.0-1 - New upstream version 3.4.0. - Use dune to build.