On Sat, 2009-07-25 at 11:07 -0700, Brandon Barker wrote:
> I'm not very familiar with pkgtool or its cousin rpmbuild, so I have some 
> pretty basic questions (and will probably have more). I didn't see any 
> opensolaris documentation or howtos that described things in-depth, but maybe 
> I missed them.
> 
Get pkgbuild manual from http://pkgbuild.sourceforge.net/man.php

> Summary:
> 
> package | status | details
> ---------------------------------+-------------+----------------------------- 
> --
> R | FAILED | Source R.copyright not found
> 
> 
> Any suggestions?

The copyright file is defined in you spec file.
SUNW_Copyright: %{name}.copyright

To fix this issue. You either remove the aboce line or put the
R.copyright file under your sourcedirs.

Get your sourcedirs by querying 
$pkgtool --dumprc|grep sourcedirs

> Also I'm wondering about the %files section - what is the preferred method 
> for constructing it?  Installing the package in a temporary location and 
> listing all files and directories that are installed?  e.g.:
> 
> /configure --prefix=/my/temp/directory; make; make install; 
> cd /my/temp/directory
> find ./ -type d
> 
> substitute each directory with directory/* and change permissions as 
> appropriate?  I suppose one could be more precise but this seems like it 
> would do the trick - haven't tried yet though.  
Your way might work. What I usually did is
pkgbuild --short-circuit -bi SUNWxxx.spec
Then goes into /var/tmp/pkgbuild-<your-username>/SUNWxxx-build/ to get
the files list.

I would also recommend you take look at the existing examples in
spec-files, spec-files-other and spec-files-extra.

Have a nice day!

Cheers,
Halton.




Reply via email to