https://bugzilla.redhat.com/show_bug.cgi?id=1450679
--- Comment #3 from Richard W.M. Jones rjones@redhat.com --- You shouldn't use any of the following:
%global opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
- This has been replaced by either %ocaml_native_compiler or %ocaml_natdynlink. Please see /usr/lib/rpm/macros.d/macros.ocaml-srpm
%global debug_package %{nil}
- Debuginfo should work these days. You may need to modify the build so it passes -g option to ocamlopt.
%global _use_internal_dependency_generator 0 %global __find_requires /usr/lib/rpm/ocaml-find-requires.sh %global __find_provides /usr/lib/rpm/ocaml-find-provides.sh
- This is plain wrong nowadays. The RPM dependency generator just does the right thing.
And yes I'm aware that the OCaml packaging guidelines aren't up to date on some of these issues. Also that OCaml packages don't consistently do this -- I've been fixing those over time.