]> git.pld-linux.org Git - packages/R-cran-DBI.git/blob - R-cran-DBI.spec
6fd53319d86ecdef2be5d39365fc28dfad1c769e
[packages/R-cran-DBI.git] / R-cran-DBI.spec
1 %define         fversion        %(echo %{version} |tr r -)
2 %define         modulename      DBI
3 Summary:        R Database Interface
4 Name:           R-cran-%{modulename}
5 Version:        0.2r5
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:  84e598c205ef7c97e16feaf5d11798a3
11 BuildRequires:  R >= 2.8.1
12 BuildRequires:  tetex-latex-ae
13 BuildRequires:  tetex-latex-bibtex
14 Requires(post,postun):  R >= 2.8.1
15 Requires(post,postun):  perl-base
16 Requires(post,postun):  textutils
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 A database interface (DBI) definition for communication between R and
21 relational database management systems. All classes in this package are
22 virtual and need to be extended by the various R/DBMS implementations.
23
24 %prep
25 %setup -q -c
26
27 %build
28 R CMD build %{modulename}
29
30 %install
31 rm -rf $RPM_BUILD_ROOT
32 install -d $RPM_BUILD_ROOT%{_libdir}/R/library/
33 R CMD INSTALL %{modulename} --library=$RPM_BUILD_ROOT%{_libdir}/R/library/
34
35 %clean
36 rm -rf $RPM_BUILD_ROOT
37
38 #%post
39 #(cd %{_libdir}/R/library; umask 022; cat */CONTENTS > ../doc/html/search/index.txt
40 # R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --index)
41
42 #%postun
43 #if [ -f %{_libdir}/R/bin/Rcmd ];then
44 #       (cd %{_libdir}/R/library; umask 022; cat */CONTENTS > ../doc/html/search/index.txt
45 #       R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --index)
46 #fi
47
48 %files
49 %defattr(644,root,root,755)
50 %doc %{modulename}/DESCRIPTION
51 %{_libdir}/R/library/%{modulename}
This page took 0.028511 seconds and 2 git commands to generate.