]> git.pld-linux.org Git - packages/R-cran-DBI.git/commitdiff
- based on R-cran-date
authorwrobell <wrobell@pld-linux.org>
Fri, 30 Jul 2010 18:54:49 +0000 (18:54 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    R-cran-DBI.spec -> 1.1

R-cran-DBI.spec [new file with mode: 0644]

diff --git a/R-cran-DBI.spec b/R-cran-DBI.spec
new file mode 100644 (file)
index 0000000..6fd5331
--- /dev/null
@@ -0,0 +1,51 @@
+%define                fversion        %(echo %{version} |tr r -)
+%define                modulename      DBI
+Summary:       R Database Interface
+Name:          R-cran-%{modulename}
+Version:       0.2r5
+Release:       1
+License:       GPL
+Group:         Applications/Databases
+Source0:       ftp://stat.ethz.ch/R-CRAN/src/contrib/%{modulename}_%{fversion}.tar.gz
+# Source0-md5: 84e598c205ef7c97e16feaf5d11798a3
+BuildRequires: R >= 2.8.1
+BuildRequires: tetex-latex-ae
+BuildRequires: tetex-latex-bibtex
+Requires(post,postun): R >= 2.8.1
+Requires(post,postun): perl-base
+Requires(post,postun): textutils
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+A database interface (DBI) definition for communication between R and
+relational database management systems. All classes in this package are
+virtual and need to be extended by the various R/DBMS implementations.
+
+%prep
+%setup -q -c
+
+%build
+R CMD build %{modulename}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_libdir}/R/library/
+R CMD INSTALL %{modulename} --library=$RPM_BUILD_ROOT%{_libdir}/R/library/
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+#%post
+#(cd %{_libdir}/R/library; umask 022; cat */CONTENTS > ../doc/html/search/index.txt
+# R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --index)
+
+#%postun
+#if [ -f %{_libdir}/R/bin/Rcmd ];then
+#      (cd %{_libdir}/R/library; umask 022; cat */CONTENTS > ../doc/html/search/index.txt
+#      R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --index)
+#fi
+
+%files
+%defattr(644,root,root,755)
+%doc %{modulename}/DESCRIPTION
+%{_libdir}/R/library/%{modulename}
This page took 0.061159 seconds and 4 git commands to generate.