]>
Commit | Line | Data |
---|---|---|
d77cb92b JR |
1 | %define fversion %(echo %{version} |tr r -) |
2 | %define modulename rJava | |
3 | Summary: Low-level R to Java interface | |
4 | Name: R-cran-%{modulename} | |
5 | Version: 0.9r6 | |
6 | Release: 1 | |
7 | License: GPL | |
8 | Group: Applications/Math | |
9 | Source0: http://cran.r-project.org/src/contrib/%{modulename}_%{fversion}.tar.gz | |
10 | # Source0-md5: 935d35c11f6060137ddd95784055ef4c | |
11 | URL: http://cran.r-project.org/web/packages/rJava/index.html | |
12 | BuildRequires: R >= 2.8.1 | |
13 | BuildRequires: jdk | |
14 | BuildRequires: texlive-fonts-cmsuper | |
15 | BuildRequires: texlive-latex-ae | |
16 | BuildRequires: texlive-latex-bibtex | |
17 | BuildRequires: texlive-xetex | |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
20 | %description | |
21 | Low-level interface to Java VM very much like .C/.Call and friends. | |
22 | Allows creation of objects, calling methods and accessing fields. | |
23 | ||
24 | %prep | |
25 | %setup -q -c | |
26 | ||
27 | %build | |
28 | R CMD build %{modulename} | |
29 | ||
30 | %install | |
31 | rm -rf $RPM_BUILD_ROOT | |
32 | install -d $RPM_BUILD_ROOT%{_libdir}/R/library/ | |
33 | R CMD INSTALL %{modulename} --library=$RPM_BUILD_ROOT%{_libdir}/R/library/ | |
34 | ||
35 | %clean | |
36 | rm -rf $RPM_BUILD_ROOT | |
37 | ||
38 | %files | |
39 | %defattr(644,root,root,755) | |
40 | %doc %{modulename}/DESCRIPTION | |
41 | %{_libdir}/R/library/%{modulename} |