packages: R-cran-RPostgreSQL/R-cran-RPostgreSQL.spec (NEW) - based on R-cra...
wrobell
wrobell at pld-linux.org
Fri Jul 30 20:55:54 CEST 2010
Author: wrobell Date: Fri Jul 30 18:55:54 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- based on R-cran-DBI
---- Files affected:
packages/R-cran-RPostgreSQL:
R-cran-RPostgreSQL.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/R-cran-RPostgreSQL/R-cran-RPostgreSQL.spec
diff -u /dev/null packages/R-cran-RPostgreSQL/R-cran-RPostgreSQL.spec:1.1
--- /dev/null Fri Jul 30 20:55:54 2010
+++ packages/R-cran-RPostgreSQL/R-cran-RPostgreSQL.spec Fri Jul 30 20:55:48 2010
@@ -0,0 +1,59 @@
+# $Revision$, $Date$
+%define fversion %(echo %{version} |tr r -)
+%define modulename RPostgreSQL
+Summary: R PostgreSQL Database Interface
+Name: R-cran-%{modulename}
+Version: 0.1r6
+Release: 1
+License: GPL
+Group: Applications/Databases
+Source0: ftp://stat.ethz.ch/R-CRAN/src/contrib/%{modulename}_%{fversion}.tar.gz
+# Source0-md5: 253a744d3a236c3146b54f50b17ca11b
+BuildRequires: R >= 2.8.1
+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
+Database interface and PostgreSQL driver for R This version complies with
+the database interface definition as implemented in the package DBI.
+
+%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:55:48 wrobell
+- based on R-cran-DBI
+
================================================================
More information about the pld-cvs-commit
mailing list