On Tue, 2011-04-12 at 15:10 -0400, Allen S. Rout wrote:
When I try to build from a local source, it fails to find the source
file.
[...]
[root@troll-2 cran]# R2rpm -s /var/tmp/cran/plyr_1.2.1.tar.gz
(Do you always build as root ? I was always told that it should be
avoided)
[...]
* Building the rpm (this may take some time)
LANG=C rpmbuild -ba R-plyr.spec > build-R-plyr.spec.log 2>&1
An error occured during the build
'An error occured at build time, see the log
in /usr/src/redhat/SPECS/build-R-plyr.spec.log'
If I copy the file somewhere else and reference it as a URL, it
works.
Check the log file ;-)
That is simply because calling R2rpm -s without specifying --bioc or
--cran leads to 'URL' tag in the spec.
Best regards,
Pierre