Produce usable debuginfo

This commit is contained in:
Jerry James 2021-01-22 09:12:08 -07:00
parent c3564dc8d6
commit 8c6cc1d197
1 changed files with 11 additions and 3 deletions

View File

@ -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 <loganjerry@gmail.com> -3.4.0-2
- Produce usable debuginfo
* Thu Jan 21 2021 Richard W.M. Jones <rjones@redhat.com> - 3.4.0-1
- New upstream version 3.4.0.
- Use dune to build.