[CentOS] creating RPMs from CRAN tarballs
Leon Fauster
leonfauster at googlemail.com
Thu Jun 4 09:47:04 UTC 2015
Am 03.06.2015 um 21:49 schrieb Tony Schreiner <anthony.schreiner at bc.edu>:
> I run R2spec -s tarball to create a spec file, and most of the time it
> works ok, but sometimes (RPostgresSQL, Rcpp for example) the package has
> test or example programs that start with
>
> #!/usr/bin/r
>
> with lower case r, and the resulting package then winds up with a
> dependency on /usr/bin/r, which can't be resolved.
>
> So far I have solved it by editing all the files and replacing with
> /usr/bin/R, recreating the tarball and going through the process again, but
> I have to believe there is an easier way.
>
> Is there a option to not create the dependency?
can't test it here right now - but try adding
following line at the top of your spec file:
%define __os_install_post %{nil}
--
LF
More information about the CentOS
mailing list