-
Notifications
You must be signed in to change notification settings - Fork 1
/
R-RCurl.spec
66 lines (53 loc) · 2.13 KB
/
R-RCurl.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
%global packname RCurl
%global rlibdir %{_libdir}/R/library
Name: R-%{packname}
Version: 1.5.0
Release: 1%{?dist}
Summary: General network (http/ftp/...) client interface for r
Group: Applications/Engineering
License: BSD
URL: http://cran.r-project.org/web/packages/RCurl/index.html
Source0: http://cran.r-project.org/src/contrib/RCurl_1.5-0.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: R >= 2.7.0 R-methods R-bitops
Requires: R-Rcompression libcurl
#BuildRequires: R-devel tex(latex) R >= 2.7.0 R-methods R-bitops R-Rcompression
BuildRequires: R-devel tex(latex) R >= 2.7.0 R-methods R-bitops libcurl-devel
BuildRequires: R-Rcompression
%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,
%prep
%setup -q -c -n %{packname}
%build
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css
%check
%{_bindir}/R CMD check %{packname}
%clean
rm -rf %{buildroot}
%files
%defattr(-, root, root, -)
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%changelog
* Wed Apr 20 2011 Adam Huffman <[email protected]> 1.5.0-1
- initial package for Fedora