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 05:54:21 -0800, Toshio Kuratomi wrote:

>   # The second time you run setup it will run inside of the directory that
>   # the first setup command created.  We must make sure that the -n
>   # parameters match, otherwise rpm will be confused about the directory to
>   # place the documentation into.
>   %setup -T -b 1 -qn %{name}-%{version}-all
>   %setup -T -D -a 1 -qn %{name}-%{version}-all

You can extract both in the same %setup call:

   %setup -T -b 0 -a 1 -qn %{name}-%{version}-all

Provided that %{SOURCE0} creates the  %name-%version-all  topdir.
And the second tarball will be extracted after changing into that topdir.

The cleaner solution would be to just use

  %setup -qc

and use the default  %{name}-%{version}  topdir, in which both tarballs
will be extracted. It only requires the source tarball contents to not
conflict in any of their top-level dirs.
--
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