]> git.pld-linux.org Git - packages/R-cran-RPostgreSQL.git/blob - R-cran-RPostgreSQL.spec
- up to 0.4
[packages/R-cran-RPostgreSQL.git] / R-cran-RPostgreSQL.spec
1 %define         fversion        %(echo %{version} | tr r -)
2 %define         modulename      RPostgreSQL
3 %define         _noautoreq      /usr/bin/r
4 Summary:        R PostgreSQL Database Interface
5 Name:           R-cran-%{modulename}
6 Version:        0.4
7 Release:        1
8 License:        GPL
9 Group:          Applications/Databases
10 Source0:        http://cran.r-project.org/src/contrib/%{modulename}_%{fversion}.tar.gz
11 # Source0-md5:  6f9e63f9f5818645171212a40324fccc
12 BuildRequires:  R >= 2.9.0
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
33 %files
34 %defattr(644,root,root,755)
35 %doc %{modulename}/DESCRIPTION
36 %{_libdir}/R/library/%{modulename}
This page took 0.087445 seconds and 3 git commands to generate.