Hi I found this conversation about the RPM Build error with the /usr/share/doc path information. I'm trying to build the new freeradius-1.1.2 release over RHEL4 and I got the same error. I'm not an expert with Linux and I would like to know which is the best option to fix this problem. Thanks in advance Alberto Cruz Nicolas Baradakis wrote:
Duane Cox wrote:
I noticed this too, that with 1.1.1 the docs are installed to doc/freeradius and not doc/freeradius-1.1.1
It has been discussed on the freeradius-devel mailing list: the libraries and the executables are installed in version-independent directories, therefore it's more consistent to have the docs under share/doc/freeradius. BTW it's also the recommended location in the Debian policy manual.
I'm not sure why this change came about, but can't a simple sed script fix it? Then build your RPM.
sed -i 's@doc/freeradius@doc/freeradius-1.1.1@g' doc/Makefile && sed -i 's@doc/freeradius/examples@doc/freeradius-1.1.1/examples@g' doc/examples/Makefile && sed -i 's@doc/freeradius/rfc@doc/freeradius-1.1.1/rfc@g' doc/rfc/Makefile
Perhaps adding this command in freeradius.spec could fix the problem:
sed -i "s@doc/freeradius@doc/freeradius-%{version}@" doc/Makefile doc/examples/Makefile doc/rfc/Makefile
However, I think it'd be more elegant to add an option --docdir to configure and update the makefiles to use that.