1 %define fversion %(echo %{version} |tr r -)
2 %define modulename RCurl
3 Summary: General network (HTTP/FTP/...) client interface for R
4 Name: R-cran-%{modulename}
8 Group: Applications/Network
9 Source0: http://cran.r-project.org/src/contrib/%{modulename}_%{fversion}.tar.gz
10 # Source0-md5: ae05762f9dceb92e9aa95417399ce931
11 BuildRequires: R >= 2.8.1
12 BuildRequires: R-cran-bitops
13 BuildRequires: texlive-fonts-cmsuper
14 BuildRequires: texlive-latex-ae
15 BuildRequires: texlive-latex-bibtex
16 BuildRequires: texlive-xetex
17 BuildRequires: curl-devel
18 Requires: R-cran-bitops
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 The package allows one to compose general HTTP requests and provides
23 convenient functions to fetch URIs, get & post forms, etc. and process
24 the results returned by the Web server. This provides a great deal of
25 control over the HTTP/FTP/... connection and the form of the request
26 while providing a higher-level interface than is available just using
27 R socket connections. Additionally, the underlying implementation is
28 robust and extensive, supporting FTP/FTPS/TFTP (uploads and
29 downloads), SSL/HTTPS, telnet, dict, ldap, and also supports cookies,
30 redirects, authentication, etc.
36 R CMD build %{modulename}
39 rm -rf $RPM_BUILD_ROOT
40 install -d $RPM_BUILD_ROOT%{_libdir}/R/library/
41 R CMD INSTALL %{modulename} --library=$RPM_BUILD_ROOT%{_libdir}/R/library/
44 rm -rf $RPM_BUILD_ROOT
47 %defattr(644,root,root,755)
48 %doc %{modulename}/DESCRIPTION
49 %{_libdir}/R/library/%{modulename}