diff --git a/ocaml-findlib.spec b/ocaml-findlib.spec index 9ba165e..0950198 100644 --- a/ocaml-findlib.spec +++ b/ocaml-findlib.spec @@ -2,8 +2,6 @@ ExcludeArch: %{ix86} %ifnarch %{ocaml_native_compiler} -# Stripping the binary removes its bytecode payload -%global __strip %{_bindir}/true %global debug_package %{nil} %endif @@ -24,9 +22,9 @@ BuildRequires: ocaml-labltk-devel BuildRequires: ocaml-ocamlbuild BuildRequires: ocaml-compiler-libs BuildRequires: ocaml-ocamldoc +BuildRequires: ocaml-rpm-macros BuildRequires: m4, ncurses-devel BuildRequires: make -BuildRequires: python3 Requires: ocaml # Do not require ocaml-compiler-libs at runtime @@ -61,6 +59,9 @@ sed -i 's,/usr/local/man,%{_mandir},' configure # Configure bug? dynlink_subdir is the empty string sed -i 's/\${dynlink_subdir}/dynlink/' configure +# Build an executable that is not damaged by stripping +sed -i 's/\(custom=\)-custom/\1-output-complete-exe/' configure + %build ocamlc -version @@ -111,6 +112,9 @@ sed -i '/ocamlfind\.conf/d' .ofiles %changelog +* Wed Oct 4 2023 Jerry James - 1.9.6-5 +- Build an executable that is not damaged by stripping + * Thu Jul 20 2023 Fedora Release Engineering - 1.9.6-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild