Hi, On 03/18/2014 12:10 PM, Yamaban wrote:
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.
Thanks for the info. I do understand why the conflict arises, just have no idea how to avoid it.
Does that give you enough hints?
No,. Later, Robert -- Robert Schweikert MAY THE SOURCE BE WITH YOU Public Cloud Architect LINUX SUSE-IBM Software Integration Center Tech Lead rjschwei@suse.com rschweik@ca.ibm.com 781-464-8147 -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org