I tried that also, since I saw that on the juicer documentation, but I
still received the same error:

bash-3.2$ ls *
R-2.9.1.tar.gz  R.spec

copyright:
R.copyright
bash-3.2$ pkgtool build-only  R.spec
INFO: Copying %use'd or %include'd spec files to SPECS directory
INFO: Processing spec files
INFO: Finding sources
INFO: Hint: you need to use the --download option to enable automatic downloads
ERROR: R: Source file R.copyright not found

Summary:

                         package |      status | details
---------------------------------+-------------+-------------------------------
                               R |      FAILED | Source R.copyright not found

Brandon Barker
Phone: (607) 262-6009
brandon.barker at gmail.com
http://brandon.barker.googlepages.com/home



On Mon, Jul 27, 2009 at 4:48 AM, Gilles Dauphin<Gilles.Dauphin at enst.fr> 
wrote:
>
>
>> From: Brandon Barker <brandon.barker at gmail.com>
>>
>> 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.
>>
>> First, when trying to do a local package build, I have a directory with the 
>> following
> contents:
>>
>> bash-3.2$ ls
>> R-2.9.1.tar.gz R.copyright R.spec
>>
>> The relevant part of R.spec:
>>
>> Name: R
>> Summary: R Statistical Language
>> Version: 2.9.1
>> License: GPLv2
>> #Source: http://cran.r-project.org/src/base/R-2/%{name}-%{version}.tar.gz
>> Source: %{name}-%{version}.tar.gz
>> URL: http://www.r-project.org/
>> Group: __________
>> Distribution: OpenSolaris
>> Vendor: OpenSolaris Community
>> %include default-depend.inc
>> #BuildRequires:______________
>> #Requires: ___________________
>>
>> BuildRoot: %{_tmppath}/%{name}-%{version}-build
>> SUNW_Basedir: %{_basedir}
>> SUNW_Copyright: %{name}.copyright
>>
>> # OpenSolaris IPS Manifest Fields
>> Meta(info.upstream): Robert Gentleman, Ross Ihaka
>> Meta(info.repository_url): 
>> https://svn.r-project.org/R-dev-web/trunk/R-dev-web
>> Meta(info.maintainer): Brandon Barker brandon dot barker at gmail dot com
>>
>>
>> %description
>> R is a free software environment for statistical computing and graphics.
>>
>> %prep
>> rm -rf %name-%version
>> %setup -q -n %{name}-%{version}
>>
>>
>>
>> When I try to build I get an error that suggest the copyright file and maybe 
>> the source
> is not found:
>> ( /opt/dtbld/bin/env.sh has been run)
>> bash-3.2$ pkgtool build-only R.spec
>> INFO: Copying %use'd or %include'd spec files to SPECS directory
>> INFO: Processing spec files
>> INFO: Finding sources
>> INFO: Hint: you need to use the --download option to enable automatic 
>> downloads
>> ERROR: R: Source file R.copyright not found
>
> I think you must put the file "R.copyright" in the "copyright" directory.
>
> Cheers Gilles
>
>
>>
>> Summary:
>>
>> package | status | details
>> ---------------------------------+-------------+-----------------------------
>>  --
>> R | FAILED | Source R.copyright not found
>>
>>
>> Any suggestions?
>>
>>
>>
>>
>>
>> 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.
>>
>> Thanks,
>> Brandon
>> --
>> This message posted from opensolaris.org
>> _______________________________________________
>> desktop-discuss mailing list
>> desktop-discuss at opensolaris.org
>
>

Reply via email to