]>
Commit | Line | Data |
---|---|---|
01d912c0 | 1 | %define fversion %(echo %{version} | tr r -) |
2 | %define modulename rjags | |
3 | Summary: Interface to the JAGS MCMC library | |
4 | Name: R-cran-%{modulename} | |
3c68f2ec | 5 | Version: 3r11 |
01d912c0 | 6 | Release: 1 |
7 | License: GPL | |
8 | Group: Applications/Databases | |
9 | Source0: http://cran.r-project.org/src/contrib/%{modulename}_%{fversion}.tar.gz | |
3c68f2ec | 10 | # Source0-md5: 9a0a23154df35b5fb53c9bee2542af70 |
5afafdf1 | 11 | BuildRequires: mcmc-jags-devel >= 3.2 |
01d912c0 | 12 | BuildRequires: R >= 2.12.0 |
5afafdf1 | 13 | BuildRequires: R-cran-coda |
14 | Requires: R-cran-coda | |
01d912c0 | 15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
16 | ||
17 | %description | |
18 | Interface to the JAGS MCMC library. | |
19 | ||
20 | %prep | |
21 | %setup -q -c | |
22 | ||
23 | %build | |
24 | R CMD build %{modulename} | |
25 | ||
26 | %install | |
27 | rm -rf $RPM_BUILD_ROOT | |
28 | install -d $RPM_BUILD_ROOT%{_libdir}/R/library/ | |
29 | R CMD INSTALL %{modulename} --library=$RPM_BUILD_ROOT%{_libdir}/R/library/ | |
30 | ||
31 | %clean | |
32 | rm -rf $RPM_BUILD_ROOT | |
33 | ||
34 | %files | |
35 | %defattr(644,root,root,755) | |
36 | %doc %{modulename}/DESCRIPTION | |
37 | %{_libdir}/R/library/%{modulename} |