[R-RCurl] initial commit

Tom Callaway spot at fedoraproject.org
Mon Nov 14 20:37:53 UTC 2011


commit e7e2dce374819c85737fb06a9c76355de8394132
Author: Tom "spot" Callaway <tcallawa at redhat.com>
Date:   Mon Nov 14 15:37:50 2011 -0500

    initial commit

 .gitignore   |    1 +
 R-RCurl.spec |   62 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources      |    1 +
 3 files changed, 64 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..f8e76be 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/RCurl_1.7-0.tar.gz
diff --git a/R-RCurl.spec b/R-RCurl.spec
new file mode 100644
index 0000000..8021729
--- /dev/null
+++ b/R-RCurl.spec
@@ -0,0 +1,62 @@
+%global packname  RCurl
+%global packver   1.7
+%global packrel   0
+
+Name:             R-%{packname}
+Version:          %{packver}.%{packrel}
+Release:          1%{?dist}
+Summary:          General network (HTTP/FTP) client interface for R
+Group:            Applications/Productivity
+License:          BSD
+URL:              http://cran.r-project.org/web/packages/RCurl/index.html
+Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{packver}-%{packrel}.tar.gz
+Requires:         R-core, texlive-latex, R-bitops, R-methods
+BuildRequires:    R-devel, R-bitops, R-methods, libcurl-devel
+BuildRequires:    R-Rcompression, R-XML
+
+%description
+The package allows one to compose general HTTP requests and provides convenient 
+functions to fetch URIs, get & post forms, etc. and process the results 
+returned by the Web server. This provides a great deal of control over the 
+HTTP/FTP/... connection and the form of the request while providing a 
+higher-level interface than is available just using R socket connections. 
+Additionally, the underlying implementation is robust and extensive, supporting 
+FTP/FTPS/TFTP (uploads and downloads), SSL/HTTPS, telnet, dict, ldap, and also 
+supports cookies, redirects, authentication, etc.
+
+%prep
+%setup -c -q -n %{packname}
+chmod -x RCurl/src/curl_base64.c
+
+%build
+
+%install
+mkdir -p %{buildroot}%{_libdir}/R/library
+%{_bindir}/R CMD INSTALL %{packname} -l %{buildroot}%{_libdir}/R/library 
+# Clean up in advance of check
+test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
+rm -rf %{buildroot}%{_libdir}/R/library/R.css
+
+%check
+%{_bindir}/R CMD check %{packname}
+
+%files
+%dir %{_libdir}/R/library/%{packname}
+%doc %{_libdir}/R/library/%{packname}/html
+%doc %{_libdir}/R/library/%{packname}/DESCRIPTION
+%doc %{_libdir}/R/library/%{packname}/doc/
+%{_libdir}/R/library/%{packname}/INDEX
+%{_libdir}/R/library/%{packname}/NAMESPACE
+%{_libdir}/R/library/%{packname}/Meta
+%{_libdir}/R/library/%{packname}/R
+%{_libdir}/R/library/%{packname}/help
+%{_libdir}/R/library/%{packname}/libs/
+%{_libdir}/R/library/%{packname}/CurlSSL/
+%{_libdir}/R/library/%{packname}/HTTPErrors/
+%{_libdir}/R/library/%{packname}/data/
+%{_libdir}/R/library/%{packname}/enums/
+%{_libdir}/R/library/%{packname}/examples/
+
+%changelog
+* Thu Nov 10 2011 Tom "spot" Callaway <tcallawa at redhat.com> 1.7.0-1
+- initial package for Fedora
diff --git a/sources b/sources
index e69de29..114f6cc 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+80fb6987faea0c611d3d7d38aab80b8f  RCurl_1.7-0.tar.gz


More information about the scm-commits mailing list