From e89639384cc504113b313b29440ebe2fad113273 Mon Sep 17 00:00:00 2001 From: Hans Ulrich Niedermann Date: Jan 31 2011 15:24:39 +0000 Subject: Set ERL_LIBS for building/installing the docs Without setting ERL_LIBS, the "make release-docs" target cannot find the include_lib("xmerl/lib/xmerl.erl") file and thus the doc build and install fails. We should examine adding the release-docs target to the "make docs" command in the %build section, instead of having release-docs being implicitly invoked by the install-docs target in the %install section. --- diff --git a/erlang.spec b/erlang.spec index 02b5117..9a8d8b1 100644 --- a/erlang.spec +++ b/erlang.spec @@ -1093,7 +1093,7 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/erlang/man/man3/erl_set_memory_block.* rm -f $RPM_BUILD_ROOT%{_libdir}/erlang/erts-*/info rm -f $RPM_BUILD_ROOT%{_libdir}/erlang/lib/*-*/info %else -make DESTDIR=$RPM_BUILD_ROOT install-docs +env ERL_LIBS="$RPM_BUILD_ROOT%{_libdir}/erlang/lib" make DESTDIR=$RPM_BUILD_ROOT install-docs %endif %endif