packages: R-cran-DBI/R-cran-DBI.spec (NEW) - based on R-cran-date

wrobell wrobell at pld-linux.org
Fri Jul 30 20:54:55 CEST 2010


Author: wrobell                      Date: Fri Jul 30 18:54:55 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- based on R-cran-date

---- Files affected:
packages/R-cran-DBI:
   R-cran-DBI.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/R-cran-DBI/R-cran-DBI.spec
diff -u /dev/null packages/R-cran-DBI/R-cran-DBI.spec:1.1
--- /dev/null	Fri Jul 30 20:54:55 2010
+++ packages/R-cran-DBI/R-cran-DBI.spec	Fri Jul 30 20:54:49 2010
@@ -0,0 +1,62 @@
+# $Revision$, $Date$
+%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}
+
+%define	date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2010/07/30 18:54:49  wrobell
+- based on R-cran-date
+
================================================================


More information about the pld-cvs-commit mailing list