diff --git a/flocq.changes b/flocq.changes index d7ba91f..ed1eac5 100644 --- a/flocq.changes +++ b/flocq.changes @@ -4,6 +4,9 @@ Thu Jun 2 21:40:52 UTC 2022 - Aaron Puchert - Update to version 4.1.0. * Added `Bnearbyint` and `Btrunc` in `IEEE754`. * Ensured compatibility from Coq 8.12 to 8.16. +- Fix patching of coqdoc invocation, make it more robust. +- Patch up coqdoc also for older Coq versions since they don't + understand --coqlib_url. ------------------------------------------------------------------- Fri Apr 15 16:41:08 UTC 2022 - Aaron Puchert diff --git a/flocq.spec b/flocq.spec index bd7cc90..30cf123 100644 --- a/flocq.spec +++ b/flocq.spec @@ -63,8 +63,11 @@ This package contains the HTML documentation for flocq. %setup -q # Make the documentation point to coq-doc if possible. +grep "\-\-coqlib_url http://coq.inria.fr/distrib/current/stdlib" Remakefile.in && %if %{pkg_vcmp coq >= 8.14} -sed -i "s|--coqlib http://coq.inria.fr/distrib/current/stdlib|--coqlib %{_libdir}/coq-core --coqlib_url %{_defaultdocdir}/coq/stdlib|" Remakefile.in +sed -i "s|--coqlib_url http://coq.inria.fr/distrib/current/stdlib|--coqlib %{_libdir}/coq-core --coqlib_url %{_defaultdocdir}/coq/stdlib|" Remakefile.in +%else +sed -i "s|--coqlib_url http://coq.inria.fr/distrib/current/stdlib|--coqlib %{_libdir}/coq-core|" Remakefile.in %endif %build