]>
Commit | Line | Data |
---|---|---|
1 | %define fversion %(echo %{version} |tr r -) | |
2 | %define modulename latticeExtra | |
3 | Summary: Extra Graphical Utilities Based on Lattice | |
4 | Name: R-cran-%{modulename} | |
5 | Version: 0.6r26 | |
6 | Release: 1 | |
7 | License: GPL v2+ | |
8 | Group: Applications/Math | |
9 | Source0: ftp://stat.ethz.ch/R-CRAN/src/contrib/%{modulename}_%{fversion}.tar.gz | |
10 | # Source0-md5: f17954ceb5333c1a9bd7fe3f175aac6c | |
11 | URL: http://latticeextra.r-forge.r-project.org/ | |
12 | BuildRequires: R >= 2.8.1 | |
13 | Requires(post,postun): R >= 2.8.1 | |
14 | Requires(post,postun): perl-base | |
15 | Requires(post,postun): textutils | |
16 | Requires: R | |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %description | |
20 | Extra graphical utilities based on lattice. | |
21 | ||
22 | %prep | |
23 | %setup -q -c | |
24 | ||
25 | %build | |
26 | R CMD build %{modulename} | |
27 | ||
28 | %install | |
29 | rm -rf $RPM_BUILD_ROOT | |
30 | install -d $RPM_BUILD_ROOT%{_libdir}/R/library/ | |
31 | R CMD INSTALL %{modulename} --library=$RPM_BUILD_ROOT%{_libdir}/R/library/ | |
32 | ||
33 | %clean | |
34 | rm -rf $RPM_BUILD_ROOT | |
35 | ||
36 | %files | |
37 | %defattr(644,root,root,755) | |
38 | %doc %{modulename}/DESCRIPTION | |
39 | %{_libdir}/R/library/%{modulename} |