]>
Commit | Line | Data |
---|---|---|
e1baa12b | 1 | %define fversion %(echo %{version} |tr r -) |
2 | %define modulename DBI | |
3 | Summary: R Database Interface | |
4 | Name: R-cran-%{modulename} | |
a4ca7ecb JR |
5 | Version: 0.2r7 |
6 | Release: 1 | |
e1baa12b | 7 | License: GPL |
8 | Group: Applications/Databases | |
bd9d1767 | 9 | Source0: http://cran.r-project.org/src/contrib/%{modulename}_%{fversion}.tar.gz |
a4ca7ecb | 10 | # Source0-md5: 2ccd3a95e7acf29dd09ff7e23878cb9b |
e1baa12b | 11 | BuildRequires: R >= 2.8.1 |
bd9d1767 | 12 | BuildRequires: texlive-fonts-cmsuper |
13 | BuildRequires: texlive-latex-ae | |
14 | BuildRequires: texlive-latex-bibtex | |
15 | BuildRequires: texlive-xetex | |
e1baa12b | 16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
17 | ||
18 | %description | |
19 | A database interface (DBI) definition for communication between R and | |
20 | relational database management systems. All classes in this package are | |
21 | virtual and need to be extended by the various R/DBMS implementations. | |
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 | ||
e1baa12b | 37 | %files |
38 | %defattr(644,root,root,755) | |
39 | %doc %{modulename}/DESCRIPTION | |
40 | %{_libdir}/R/library/%{modulename} |