[Distutils] installing man pages in bdist_rpm
Thu Dec 13 07:29:01 2001
Steven Knight wrote:
> > > In the absence of support for the commented-out "install-man" option,
> > > how can I go about arranging for bdist_rpm to install and package a man
> > > page properly?
> > >
> > > Successfull packaging in this case should result in installing a script
> > > in /usr/bin/scons, and the man page in /usr/man/man1/scons.1.gz.
> > >
> > > Here's what I've tried:
> > >
> > > data_files = [('man/man1', ["scons.1"])]
> > >
> > > This fails when the INSTALLED_FILES file lists it as
> > > /usr/man/man1/scons.1, but RPM has installed the man page as
> > > scons.1.gz.
> > If it has installed the file in man/man1 then you shouldn't
> > have a problem. man works just fine with gzip compressed
> > man pages (at least on my Linux machine).
> Yes, that would be fine, except that the discrepancy causes the *rpm*
> kicked off by bdist_rpm to fail because rpm installs it as scons.1.gz,
> but then it doesn't find the file that it expects from the MANIFEST
> file. The problem is in this section (I've appended full build output,
> edited for brevity, at the end):
> running install_data
> copying scons.1 -> /var/tmp/scons-buildroot/usr/man/man1
Hmm, why didn't this report an error then ? I'd check the
above dir for that file.
RPM is a bit quirky about doc files; could be that you have to
add a section like this to you setup.cfg file:
# Files listed here must also appear in the MANIFEST:
doc_files = man/man1/cons.1
CEO eGenix.com Software GmbH
Consulting & Company: http://www.egenix.com/
Python Software: http://www.lemburg.com/python/