]>
Commit | Line | Data |
---|---|---|
1 | %define fversion %(echo %{version} |tr r -) | |
2 | %define modulename proto | |
3 | Summary: Prototype object-based programming | |
4 | Name: R-cran-%{modulename} | |
5 | Version: 0.3r10 | |
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: d5523943a5be6ca2f0ab557c900f8212 | |
11 | URL: http://cran.fhcrc.org/web/packages/proto/index.html | |
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 | An object oriented system using object-based, also called | |
21 | prototype-based, rather than class-based object oriented ideas. | |
22 | ||
23 | %prep | |
24 | %setup -q -c | |
25 | ||
26 | %build | |
27 | R CMD build %{modulename} | |
28 | ||
29 | %install | |
30 | rm -rf $RPM_BUILD_ROOT | |
31 | install -d $RPM_BUILD_ROOT%{_libdir}/R/library/ | |
32 | R CMD INSTALL %{modulename} --library=$RPM_BUILD_ROOT%{_libdir}/R/library/ | |
33 | ||
34 | %clean | |
35 | rm -rf $RPM_BUILD_ROOT | |
36 | ||
37 | %files | |
38 | %defattr(644,root,root,755) | |
39 | %doc %{modulename}/DESCRIPTION | |
40 | %{_libdir}/R/library/%{modulename} |