2022-10-10 12:24:55 +00:00
|
|
|
%bcond_without bootstrap
|
|
|
|
%bcond_without network
|
2020-06-06 02:08:57 +00:00
|
|
|
|
2021-09-19 01:56:32 +00:00
|
|
|
%global packname curl
|
|
|
|
%global packver 4.3.2
|
2017-11-13 21:52:19 +00:00
|
|
|
%global rlibdir %{_libdir}/R/library
|
|
|
|
|
|
|
|
Name: R-%{packname}
|
2021-09-19 01:56:32 +00:00
|
|
|
Version: 4.3.2
|
2022-10-10 12:24:55 +00:00
|
|
|
Release: %autorelease -e 0.riscv64
|
2017-11-13 21:52:19 +00:00
|
|
|
Summary: A Modern and Flexible Web Client for R
|
|
|
|
|
|
|
|
License: MIT
|
2019-01-23 00:55:17 +00:00
|
|
|
URL: https://CRAN.R-project.org/package=%{packname}
|
2021-09-19 01:56:32 +00:00
|
|
|
Source0: https://cran.r-project.org/src/contrib/%{packname}_%{packver}.tar.gz
|
2017-11-13 21:52:19 +00:00
|
|
|
|
|
|
|
# Here's the R view of the dependencies world:
|
|
|
|
# Depends:
|
|
|
|
# Imports:
|
2019-12-03 03:08:16 +00:00
|
|
|
# Suggests: R-spelling, R-testthat >= 1.0.0, R-knitr, R-jsonlite, R-rmarkdown, R-magrittr, R-httpuv >= 1.4.4, R-webutils
|
2017-11-13 21:52:19 +00:00
|
|
|
# LinkingTo:
|
|
|
|
# Enhances:
|
|
|
|
|
2018-04-26 03:57:57 +00:00
|
|
|
BuildRequires: R-devel
|
|
|
|
BuildRequires: tex(latex)
|
2017-11-13 21:52:19 +00:00
|
|
|
BuildRequires: pkgconfig(libcurl)
|
2021-09-19 01:56:32 +00:00
|
|
|
%if %{without bootstrap}
|
2019-02-16 05:07:29 +00:00
|
|
|
BuildRequires: R-spelling
|
2018-04-26 03:57:57 +00:00
|
|
|
BuildRequires: R-testthat >= 1.0.0
|
2017-11-13 21:52:19 +00:00
|
|
|
BuildRequires: R-jsonlite
|
2019-02-16 05:07:29 +00:00
|
|
|
BuildRequires: R-httpuv >= 1.4.4
|
2017-11-13 21:52:19 +00:00
|
|
|
BuildRequires: R-knitr
|
2019-09-18 05:44:13 +00:00
|
|
|
BuildRequires: glyphicons-halflings-fonts
|
2017-11-13 21:52:19 +00:00
|
|
|
BuildRequires: R-rmarkdown
|
2019-02-16 05:07:29 +00:00
|
|
|
BuildRequires: R-magrittr
|
2021-09-19 01:56:32 +00:00
|
|
|
%if %{with network}
|
2017-11-13 21:52:19 +00:00
|
|
|
BuildRequires: R-webutils
|
|
|
|
%endif
|
2020-06-06 02:08:57 +00:00
|
|
|
%endif
|
2017-11-13 21:52:19 +00:00
|
|
|
|
|
|
|
%description
|
2019-08-19 05:04:38 +00:00
|
|
|
The curl() and curl_download() functions provide highly configurable drop-in
|
|
|
|
replacements for base url() and download.file() with better performance,
|
|
|
|
support for encryption (https, ftps), gzip compression, authentication, and
|
|
|
|
other 'libcurl' goodies. The core of the package implements a framework for
|
|
|
|
performing fully customized requests where data can be processed either in
|
|
|
|
memory, on disk, or streaming via the callback or connection interfaces. Some
|
|
|
|
knowledge of 'libcurl' is recommended; for a more-user-friendly web client see
|
|
|
|
the 'httr' package which builds on this package with http specific tools and
|
|
|
|
logic.
|
2017-11-13 21:52:19 +00:00
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -c -n %{packname}
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
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
|
2021-09-19 01:56:32 +00:00
|
|
|
%if %{without bootstrap}
|
|
|
|
export LANG=C.UTF-8
|
2019-02-16 05:15:26 +00:00
|
|
|
ARGS=
|
2021-09-19 01:56:32 +00:00
|
|
|
%if %{without network}
|
2019-02-16 05:15:26 +00:00
|
|
|
export _R_CHECK_FORCE_SUGGESTS_=0
|
2021-09-19 01:56:32 +00:00
|
|
|
ARGS="$ARGS --no-tests --no-examples --ignore-vignettes"
|
2017-11-13 21:52:19 +00:00
|
|
|
%endif
|
2019-02-16 05:15:26 +00:00
|
|
|
export _R_CHECK_FORCE_SUGGESTS_=0
|
|
|
|
ARGS="$ARGS --ignore-vignettes"
|
|
|
|
%{_bindir}/R CMD check %{packname} $ARGS
|
2020-06-06 02:08:57 +00:00
|
|
|
%endif
|
2017-11-13 21:52:19 +00:00
|
|
|
|
2021-09-19 01:56:32 +00:00
|
|
|
|
2017-11-13 21:52:19 +00:00
|
|
|
%files
|
|
|
|
%dir %{rlibdir}/%{packname}
|
|
|
|
%doc %{rlibdir}/%{packname}/doc
|
|
|
|
%doc %{rlibdir}/%{packname}/html
|
|
|
|
%license %{rlibdir}/%{packname}/LICENSE
|
|
|
|
%{rlibdir}/%{packname}/DESCRIPTION
|
|
|
|
%doc %{rlibdir}/%{packname}/NEWS
|
|
|
|
%{rlibdir}/%{packname}/INDEX
|
|
|
|
%{rlibdir}/%{packname}/NAMESPACE
|
|
|
|
%{rlibdir}/%{packname}/Meta
|
|
|
|
%{rlibdir}/%{packname}/R
|
|
|
|
%{rlibdir}/%{packname}/help
|
2018-04-26 04:40:05 +00:00
|
|
|
%{rlibdir}/%{packname}/WORDLIST
|
2018-03-10 01:09:39 +00:00
|
|
|
%dir %{rlibdir}/%{packname}/libs
|
|
|
|
%{rlibdir}/%{packname}/libs/%{packname}.so
|
2017-11-13 21:52:19 +00:00
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2021-09-18 22:48:43 +00:00
|
|
|
%autochangelog
|