On Tue, 18 Mar 2014 16:48, Robert Schweikert <rjschwei@...> wrote:
Working on a package that creates a -doc package and includes the files in docdir via:
%files doc %defattr(-,root,root) %doc %{docdir}
I'd like to get the LICENSE file from the source into the main package via
%files %doc LICENSE
But when I do this I get complaints about the doc files being packaged twice.
How do I solve this puzzle?
IMHO the LICENSE file has it's place in the main package (as per the 'rules') To pack the LICENSE file AGAIN in the -doc package makes no sense to me. There could be made a case for including a LICENSE file into a -doc package IF the -doc package does NOT depend on the main package, but in that case the %{docdir} of the -doc package should be different from the %{docdir} of the main package. E.g. php and php-doc whre php-doc contains a primer, examples, guides, etc in that case %{docdir} of the main package has to contain the LICENSE file for php it self (e.g. GPL), whereas %{docdir} of the php-doc (e.g. /usr/share/doc/packges/php-doc) has the LICENSE file for the documentation, (e.g. CC or OpenDoc) If the seperate -doc package makes sense (e.g. package-size), and still uses the same %{docdir} as the main package, the LICENSE / COPYING file should packaged with the main package and excluded from the -doc package. Does that give you enough hints? Other voices? Please speak up. - Yamaban. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org