]>
Commit | Line | Data |
---|---|---|
79e7c0ef JR |
1 | %define fversion %(echo %{version} |tr r -) |
2 | %define modulename RSQLite | |
3 | Summary: SQLite interface for R | |
4 | Name: R-cran-%{modulename} | |
fdcce5d8 | 5 | Version: 0.11.4 |
79e7c0ef JR |
6 | Release: 1 |
7 | License: GPL | |
8 | Group: Applications/Databases | |
9 | Source0: http://cran.r-project.org/src/contrib/%{modulename}_%{fversion}.tar.gz | |
fdcce5d8 | 10 | # Source0-md5: c2a1a8fca2146a910e9e13879a88cbc9 |
79e7c0ef JR |
11 | BuildRequires: R >= 2.8.1 |
12 | BuildRequires: R-cran-DBI | |
13 | BuildRequires: sqlite3-devel | |
14 | BuildRequires: texlive-fonts-cmsuper | |
15 | BuildRequires: texlive-latex-ae | |
16 | BuildRequires: texlive-latex-bibtex | |
17 | BuildRequires: texlive-xetex | |
18 | %requires_ge sqlite3 | |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
21 | %description | |
22 | Database Interface R driver for SQLite. | |
23 | This package embeds the SQLite database engine in R and provides an | |
24 | interface compliant with the DBI package. The source for the | |
25 | SQLite engine (version 3.7.14) is included. | |
26 | ||
27 | %prep | |
28 | %setup -q -c | |
29 | ||
30 | %build | |
31 | R CMD build %{modulename} | |
32 | ||
33 | %install | |
34 | rm -rf $RPM_BUILD_ROOT | |
35 | install -d $RPM_BUILD_ROOT%{_libdir}/R/library/ | |
36 | R CMD INSTALL %{modulename} --library=$RPM_BUILD_ROOT%{_libdir}/R/library/ | |
37 | ||
38 | %clean | |
39 | rm -rf $RPM_BUILD_ROOT | |
40 | ||
41 | %files | |
42 | %defattr(644,root,root,755) | |
43 | %doc %{modulename}/DESCRIPTION | |
44 | %{_libdir}/R/library/%{modulename} |