]> git.pld-linux.org Git - packages/R-cran-RPostgreSQL.git/blob - R-cran-RPostgreSQL.spec
bafe72add6958efa655ca86d6d9fcd2311d6ba02
[packages/R-cran-RPostgreSQL.git] / R-cran-RPostgreSQL.spec
1 %define         fversion        %(echo %{version} |tr r -)
2 %define         modulename      RPostgreSQL
3 Summary:        R PostgreSQL Database Interface
4 Name:           R-cran-%{modulename}
5 Version:        0.1r7
6 Release:        1
7 License:        GPL
8 Group:          Applications/Databases
9 Source0:        ftp://stat.ethz.ch/R-CRAN/src/contrib/%{modulename}_%{fversion}.tar.gz
10 # Source0-md5:  a847886c463df39ad17baa1a5d64d8b0
11 BuildRequires:  R >= 2.8.1
12 Requires(post,postun):  R >= 2.8.1
13 Requires(post,postun):  perl-base
14 Requires(post,postun):  textutils
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %description
18 Database interface and PostgreSQL driver for R This version complies with
19 the database interface definition as implemented in the package DBI.
20
21 %prep
22 %setup -q -c
23
24 %build
25 R CMD build %{modulename}
26
27 %install
28 rm -rf $RPM_BUILD_ROOT
29 install -d $RPM_BUILD_ROOT%{_libdir}/R/library/
30 R CMD INSTALL %{modulename} --library=$RPM_BUILD_ROOT%{_libdir}/R/library/
31
32 %clean
33 rm -rf $RPM_BUILD_ROOT
34
35 #%post
36 #(cd %{_libdir}/R/library; umask 022; cat */CONTENTS > ../doc/html/search/index.txt
37 # R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --index)
38
39 #%postun
40 #if [ -f %{_libdir}/R/bin/Rcmd ];then
41 #       (cd %{_libdir}/R/library; umask 022; cat */CONTENTS > ../doc/html/search/index.txt
42 #       R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --index)
43 #fi
44
45 %files
46 %defattr(644,root,root,755)
47 %doc %{modulename}/DESCRIPTION
48 %{_libdir}/R/library/%{modulename}
This page took 0.020735 seconds and 2 git commands to generate.