]>
Commit | Line | Data |
---|---|---|
ec7ab2fd | 1 | %define fversion %(echo %{version} |tr r -) |
2 | %define modulename RPostgreSQL | |
850ca964 | 3 | %define _noautoreq /usr/bin/r |
ec7ab2fd | 4 | Summary: R PostgreSQL Database Interface |
5 | Name: R-cran-%{modulename} | |
850ca964 | 6 | Version: 0.3r2 |
ec7ab2fd | 7 | Release: 1 |
8 | License: GPL | |
9 | Group: Applications/Databases | |
850ca964 | 10 | Source0: http://cran.r-project.org/src/contrib/%{modulename}_%{fversion}.tar.gz |
11 | # Source0-md5: 7d5858733df613d219889ab8d40d29bb | |
ec7ab2fd | 12 | BuildRequires: R >= 2.8.1 |
ec7ab2fd | 13 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
14 | ||
15 | %description | |
16 | Database interface and PostgreSQL driver for R This version complies with | |
17 | the database interface definition as implemented in the package DBI. | |
18 | ||
19 | %prep | |
20 | %setup -q -c | |
21 | ||
22 | %build | |
23 | R CMD build %{modulename} | |
24 | ||
25 | %install | |
26 | rm -rf $RPM_BUILD_ROOT | |
27 | install -d $RPM_BUILD_ROOT%{_libdir}/R/library/ | |
28 | R CMD INSTALL %{modulename} --library=$RPM_BUILD_ROOT%{_libdir}/R/library/ | |
29 | ||
30 | %clean | |
31 | rm -rf $RPM_BUILD_ROOT | |
32 | ||
ec7ab2fd | 33 | %files |
34 | %defattr(644,root,root,755) | |
35 | %doc %{modulename}/DESCRIPTION | |
36 | %{_libdir}/R/library/%{modulename} |