On Mon, Jun 20, 2016 at 11:52 AM, Luigi Baldoni
Darin Perusich-3 wrote
what is the official path for noarch extensions? If I use %{_datadir}/R/library nothing detects its contents unless set via R_LIBS. Should this variable be set somewhere in the R global environment?
There is only a single path for all R libraries, %{_rlibdir}/R/library
Is that %{_rlibdir} macro defined anywhere outside of spec files?
Not at this time, it's defined as a global in each SPEC. If i were going to change that I'd create an R-rpm-macros package to define those variables. See https://build.opensuse.org/package/show/server:monitoring/nagios-rpm-macros for an example.
From what I could see each of them defines %{rlibdir} to point at %{_libdir}/R/library or %{_datadir}/R/library for noarch files (not to mention %{rdir}). The examples in the Fedora link below also show the same pattern.
Darin Perusich-3 wrote
Because the DESCRIPTION file is a %doc and we want to categorize it appropriately. Also R libraries are "self contained" which is the reason the docs reside in %{rlibdir}/%{packname} and not in %{_defaultdocdir}/%{name}.
Ok, will correct that at the earliest occasion.
Darin Perusich-3 wrote
In regard to versioning, since "-" is an illegal character, should "_" be used in its place? Or is "." better?
Nearly all the CRAN packages were created with R2spec, https://fedoraproject.org/wiki/Packaging:R?rd=Packaging/R, which substitutes "-" with "." per Fedora's versioning standard.
It seemed to me that the underscore was more frequent in the existing packages, so I used that one. Can a rule for this be inferred from other SUSE naming/versioning standards?
The usage of the underscore is probably related to the spec's having been created with an older version of R2spec, and before it aligned itself with the Fedora Versioning Standard. There isn't a hard "requirement" for version in openSUSE/SUSE, other than no dashes, that I was able to find. Personally I prefer dot separators and the semantic versioning standards, but if you want to use underscores I'll still accept your SR's ;-) And thank you for helping to package the R libraries, it's really just Detlef and I and we really appreciate it!
-- View this message in context: http://opensuse.14.x6.nabble.com/Subj-Packaging-R-extensions-tp5066428p50664... Sent from the opensuse-packaging mailing list archive at Nabble.com. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
-- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org