]>
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} | |
2a78cdbd | 5 | Version: 3r5 |
01d912c0 | 6 | Release: 1 |
7 | License: GPL | |
8 | Group: Applications/Databases | |
9 | Source0: http://cran.r-project.org/src/contrib/%{modulename}_%{fversion}.tar.gz | |
2a78cdbd | 10 | # Source0-md5: 30609db97b9f93f04fb3aa1ec52783c4 |
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 | #BuildRequires: tetex-latex-ae |
16 | #BuildRequires: tetex-latex-bibtex | |
17 | #Requires(post,postun): R >= 2.12.0 | |
18 | #Requires(post,postun): perl-base | |
19 | #Requires(post,postun): textutils | |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
22 | %description | |
23 | Interface to the JAGS MCMC library. | |
24 | ||
25 | %prep | |
26 | %setup -q -c | |
27 | ||
28 | %build | |
29 | R CMD build %{modulename} | |
30 | ||
31 | %install | |
32 | rm -rf $RPM_BUILD_ROOT | |
33 | install -d $RPM_BUILD_ROOT%{_libdir}/R/library/ | |
34 | R CMD INSTALL %{modulename} --library=$RPM_BUILD_ROOT%{_libdir}/R/library/ | |
35 | ||
36 | %clean | |
37 | rm -rf $RPM_BUILD_ROOT | |
38 | ||
39 | %files | |
40 | %defattr(644,root,root,755) | |
41 | %doc %{modulename}/DESCRIPTION | |
42 | %{_libdir}/R/library/%{modulename} |