From Fedora Project Wiki

(Creation of the proposal)
 
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
- At the beginning
= Update to the R Guidelines =
 
== Additional links ==
 
Current:
* [http://www.bioconductor.org/ The bioconductor website]  
* [http://www.bioconductor.org/ The bioconductor website]  
* [http://cran.r-project.org/ The CRAN website]  
* [http://cran.r-project.org/ The CRAN website]  


becomes:
Proposed Change:
* [http://www.bioconductor.org/ The bioconductor website]  
* [http://www.bioconductor.org/ The bioconductor website]  
* [http://cran.r-project.org/ The CRAN website]  
* [http://cran.r-project.org/ The CRAN website]  
Line 9: Line 13:
* [http://www.rforge.net/ The RForge website]
* [http://www.rforge.net/ The RForge website]


- After Naming of R packages
=== R version ===
In R the package can contains '-' in their version.


"The version is a sequence of at least two (and usually three)
== New Sections ==
non-negative integers separated by single ‘.’ or ‘-’ characters. The
Everything below this text is proposed as new sections for the R Guidelines
canonical form is as shown in the example [0.5-1 - Martyn], and a
version such as ‘0.01’ or ‘0.01.0’ will be handled as if it were
‘0.1-0’."


To be consistent with the versioning system in Fedora you should just replace dashes with dots.
=== R version ===
 
Many R packages contain '-' in their version. Usually, the versioning used is a sequence of at least two (and usually three) non-negative integers separated by single '.' or '-' characters.
source: https://www.redhat.com/archives/fedora-r-devel-list/2009-June/msg00002.html


To be consistent with the versioning system used in Fedora, you should simply replace dashes with dots.


- In the tips
Example:
<pre>
Upstream tarball: Rfoo-0.5-8.tar.gz
Fedora Version: 0.5.8
</pre>


=== R documentation ===
=== R documentation ===
R documentation is written in Tex files.
R documentation is written in Tex files. rpmlint sometimes complains that these Tex files are not utf-8 files, but the encoding is normally specified in the file when needed, so this error is safe to ignore (and you should not try to re-encode the files).
rpmlint can complain about non utf-8 files but the encoding is normally specified in the file when needed, so you should not change the encoding
 
source: https://www.redhat.com/archives/fedora-devel-list/2009-January/msg00741.html


=== R headers ===
=== R headers ===
Some library have to be splitted in a main package and a sub -devel package.
R packages usually expect to find their header files in %{_libdir}/R/library/*/. rpmlint will complain that these files are misplaced, but this is safe to ignore.
While doing so rpmlint might complain about miss placed file and ask to move the file from %{_libdir} to %{_datadir}.
However doing this break the libraries using these file since the file are not where R expect them to be.


Therefore you can leave -devel in %{_libdir} in such case.
You should still separate these header files into a -devel subpackage.


source: https://www.redhat.com/archives/fedora-r-devel-list/2009-March/msg00001.html
=== R2spec ===
R2spec is an excellent little tool to assist in creating Fedora-compliant packages for R libraries. Using it as a starting point is recommended (but certainly not mandated).
More information here : https://fedorahosted.org/r2spec/


- At the end
[[Category:Archived packaging guideline drafts]]
=== R2spec ===
R2spec is an excellent little tool to assist in creating Fedora-compliant packages for R libraries. Its use as a starting point is recommended (but certainly not mandated).
More information on : https://fedorahosted.org/r2spec/

Latest revision as of 19:47, 15 September 2009

Update to the R Guidelines

Additional links

Current:

Proposed Change:


New Sections

Everything below this text is proposed as new sections for the R Guidelines

R version

Many R packages contain '-' in their version. Usually, the versioning used is a sequence of at least two (and usually three) non-negative integers separated by single '.' or '-' characters.

To be consistent with the versioning system used in Fedora, you should simply replace dashes with dots.

Example:

Upstream tarball: Rfoo-0.5-8.tar.gz
Fedora Version: 0.5.8

R documentation

R documentation is written in Tex files. rpmlint sometimes complains that these Tex files are not utf-8 files, but the encoding is normally specified in the file when needed, so this error is safe to ignore (and you should not try to re-encode the files).

R headers

R packages usually expect to find their header files in %{_libdir}/R/library/*/. rpmlint will complain that these files are misplaced, but this is safe to ignore.

You should still separate these header files into a -devel subpackage.

R2spec

R2spec is an excellent little tool to assist in creating Fedora-compliant packages for R libraries. Using it as a starting point is recommended (but certainly not mandated). More information here : https://fedorahosted.org/r2spec/