On Tue, Sep 18, 2001 at 06:39:50AM +0200, Ralf Corsepius wrote:
> On Die, 2001-09-18 at 02:55, Zvezdan Petkovic wrote:
> > On Tue, Sep 18, 2001 at 01:15:07AM +0200, Lars Gullik Bjønnes wrote:
> > Exactly, but on a properly configured system RPM follows /etc/man.conf.
> This is an implementation detail and actually is completely irrelevant
> wrt. this topic.
> 

It is _very_ relevant. You might say:

%define _mandir /usr/local/share/man

to define your own place for man pages as a packager, and you are right
in that regard. Packager is the one who decides where they go.

However, I usually do _not_ want to put the man pages in some strange
place I want them where the other man pages go. On a properly configured
system /etc/man.config has this:

MANPATH /usr/share/man

and /usr/lib/rpm/macros has

%_mandir                %{_prefix}/man

where _prefix == /usr. So, that wouldn't be right for RH7.1, but it
quite right for the older systems or different architectures (e.g.
sparc)

Fortunately, /usr/lib/rpm/i386-linux/macros has this:

%_mandir                %{_prefix}/share/man                                    

which is right for i386 RH7.1.

Hence, a packager can use %{_mandir} and know that the man pages will go
in the system wide directory. Yes, I decided as a packager where to put
them, but I simply used what rpm has already provided for me.  So, the
configuration is _really_ relevant for the proper use of RPM.

Please, notice also that it would be relevant for an architecture where
man pages go in /usr/man because i386-linux subdirectory wouldn't have
been used.

Best regards,
-- 
Zvezdan Petkovic <[EMAIL PROTECTED]>
http://www.cs.wm.edu/~zvezdan/

Reply via email to