1 %define fversion %(echo %{version} |tr r -)
2 %define modulename RSQLite
3 Summary: SQLite interface for R
4 Name: R-cran-%{modulename}
8 Group: Applications/Databases
9 Source0: http://cran.r-project.org/src/contrib/%{modulename}_%{fversion}.tar.gz
10 # Source0-md5: c2a1a8fca2146a910e9e13879a88cbc9
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
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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.
31 R CMD build %{modulename}
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/
39 rm -rf $RPM_BUILD_ROOT
42 %defattr(644,root,root,755)
43 %doc %{modulename}/DESCRIPTION
44 %{_libdir}/R/library/%{modulename}