automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to handle documentation and move it in the right place.


From: Hans Deragon
Subject: Re: How to handle documentation and move it in the right place.
Date: Thu, 26 Feb 2004 17:29:41 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040116

SOLVED! address@hidden@. I was in the impression that one could list all the doc files one on each line after a %doc statement in the spec file. This is not the case. They have to be listed on the same line. It does not look clean when you have a lot of doc, but it works.


My bad.
Hans Deragon
--
Consultant en informatique/Software Consultant
Deragon Informatique inc.     Open source:
http://www.deragon.biz        http://autopoweroff.sourceforge.net
mailto://address@hidden     (Automatically poweroff home servers)


Hans Deragon wrote:
Bob Friesenhahn wrote:

On Wed, 25 Feb 2004, Hans Deragon wrote:


I am trying to jugle with automake and rpmbuild to get an RPM built with the documentation in the proper place. I tried many things, but I never succeded to
get my documentation installed where I want.  When the documentation is
installed in the right place using "make install", rpmbuild can't get the
documentation or complains.



The most common procedure for building RPMs appears to be to do

  make DESTDIR=/somewhere install

and then reference the installed files in /somewhere in the RPM spec
file.  This way the normal Automake install target is used and you
don't need to worry about anything but 'install' in your Makefile.am
files.

Bob
======================================
Bob Friesenhahn
address@hidden
http://www.simplesystems.org/users/bfriesen


Greetings.

I do not understand how "make DESTDIR=/somewhere install" would help. In a way, I am already doing it.

Here is a partial listing of %buildroot:

[... deleted lines ...]
.../usr/share/apt-build/doc/apt-build.html
.../usr/share/apt-build/doc/apt-build.pdf
.../usr/share/apt-build/doc/apt-build.ps
.../usr/share/apt-build/doc/apt-build.txt
.../usr/share/doc/apt-build-1.0.0/doc/apt-build.ps
.../usr/share/doc/apt-build-1.0.0/doc/apt-build.txt
.../usr/share/doc/apt-build-1.0.0/doc/apt-build.html
.../usr/share/doc/apt-build-1.0.0/doc/apt-build.pdf
[... deleted lines ...]

As you see, my document files are duplicated in the build directory. When rpmbuild calls my tarball's source with "make install", the documents are copied under:

.../usr/share/apt-build/doc/

Now when rpmbuild reads the "%doc doc" statement, it copies from the tarball the documents to:

.../usr/share/doc/apt-build-1.0.0/doc/

This directory is the right place where they should be. However, because they files under .../usr/share/apt-build/doc/ are not listed in %files, rpmbuild complains "error: Installed (but unpackaged) file(s) found:" and my rpm is not built.

How can I avoid .../usr/share/apt-build/doc/ to be created in the first place, when it is the normal spot for my documents when "make install" is called?

In other words, I want the documents be at different places when they are part of a tarball or an rpm, but this causes problem because from what I understand, rpmbuild needs them to be in the same place.


Best regards,
Hans Deragon
--
Consultant en informatique/Software Consultant
Deragon Informatique inc.     Open source:
http://www.deragon.biz        http://autopoweroff.sourceforge.net
mailto://address@hidden     (Automatically poweroff home servers)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]