Hi Alex,

The %doc lines in the spec file is to generate the copyright/license 
information for the SVr4 package as I understand. Usually all the 
copyright/license related files (COPYING, AUTHORS, ChangeLog for 
example) in the source tarball will be explicitly included here. And 
when you install the package, these files will go to 
/usr/share/doc/PACKAGE_NAME.

Alexander Gnodtke wrote:
> Hi, I am trying to build Filezilla from spec files extra and I get the
> following error.
>
> Debug: Collecting SVr4 proto information
> pkgbuild: Documentation (%doc) file not found: COPYING
> pkgbuild: Documentation (%doc) file not found: GPL.html
> pkgbuild: Documentation (%doc) file not found: NEWS
> pkgbuild: Documentation (%doc) file not found: AUTHORS
> pkgbuild: Documentation (%doc) file not found: README
> pkgbuild: Documentation (%doc) file not found: ChangeLog
> ERROR: SFEfilezilla FAILED
>
> commenting out the %doc lines in the spec file allows the package to build:
>
> %files
> %defattr (-, root, other)
> #%doc(bzip2) -d filezilla-%{filezilla.version} COPYING GPL.html NEWS
> AUTHORS README
> #%doc -d filezilla-%{filezilla.version} ChangeLog
>   
What's the version for your CBE? I'm using CBE 1.6.2 and it supports 
%doc key word. Not sure this is supported in early releases. BTW, to 
comment out the lines is also fine as the copyright/license information 
is only necessary for distribution purpose.
> Still out of curiosity I have been trying to adapt the spec files but
> I am out of ideas.
> What is the "-d" option?  I have not been able to find documentation for it
>   
Normally pkgbuild will only search the ".../packages/BUILD/SUNWfoo" 
directory for the files. "-d dir" can change the root of relative paths 
to the "dir" subdirectory
> Why is there (bzip2) specified on line 1 and not on line 2 if both are
> seemingly trying to extract from the zipped source file?
> Why are these doc files not simply copied from the extracted directory?
>   
Some copyright/license files are big. COPYING in FileZilla source is 
about 18K. So we choose to compress it. And some are small. ChangeLog is 
only 85bytes for FileZilla.

BTW, as Glynn pointed out a while ago 
(http://sourceforge.net/mailarchive/forum.php?thread_name=7E3BB966-01A7-479C-87E6-F016EE38B6A5%40sun.com&forum_name=pkgbuild-sfe-devel),
 
it's appreciated to contribute to this copyright efforts if anyone is 
interested ;-)

Hope this helpful,

-Alfred
> Thank you for a hint on how you would fix this,
> Alex
> _______________________________________________
> desktop-discuss mailing list
> desktop-discuss at opensolaris.org
>   


Reply via email to