Re: %doc: how to specify a Source<n> for the %doc directive?

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

 



On Thu, 10 Dec 2015 14:23:06 +0100, zosrothko wrote:

> > Use a single %setup invocation only, since it tells rpmbuild the base
> > builddir to enter for every spec file section and special macros, such
> > as %doc and %license.  
> This does not satisfy the initial requirements : the doc and source are 
> produced into separate directory...

Then don't use the %setup macro, but in %prep extract the %{SOURCE1} tarball
yourself into a subdir.

> Why %doc could not have an additional parameter like the %setup one: -b 
> <n> to specify which directory to use?

And the same for every spec file section, too?

It is common to work within a single build directory and create subdirs
as needed. %doc can access all paths relative to that builddir, so the
problem really is just that you use %setup to set up two builddirs.
--
packaging mailing list
packaging@xxxxxxxxxxxxxxxxxxxxxxx
http://lists.fedoraproject.org/admin/lists/packaging@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Forum]     [KDE Users]

  Powered by Linux