RPM packaging (was: Last set of changes for 1.1.3)

Nicolas Baradakis nbk at sitadelle.com
Wed Aug 30 12:15:52 CEST 2006

Sandworm wrote:

> The RPM build process does use the Makefile. It does a complete
> build and install, but does the install in the environment of
> the "build root", which has a usr, etc, bin, and so on. The built
> directory is then used to construct the packaged binary RPM
> (and source RPM, if requested). However, it needs to distinguish
> between different types of files. This is why files are tagged as
> "%doc", because these need to be located in what is designated as
> the documentation directory.
> So, regardless of the original directory that the Makefile
> installed them in, they get moved into the documentation
> directory, sort of relative to the way they are specified in
> the %doc directives.
> If you're interested, see "The %doc Directive" at
> http://www.rpm.org/max-rpm/s1-rpm-inside-files-list-directives.html

Thanks for the pointer. I'm reading this document, and it looks like
the %docdir directive is exactly what we need. What do you think?

%docdir /usr/share/doc/freeradius-1.1.3

Nicolas Baradakis

More information about the Freeradius-Devel mailing list