|
|
7f26da5 |
%global packname httr
|
|
|
7f26da5 |
%global rlibdir %{_datadir}/R/library
|
|
|
7f26da5 |
|
|
|
7f26da5 |
# Not yet available.
|
|
|
7f26da5 |
%global with_suggests 0
|
|
|
7f26da5 |
# Tests check many external URLs.
|
|
|
7f26da5 |
%global with_network 0
|
|
|
7f26da5 |
|
|
|
7f26da5 |
Name: R-%{packname}
|
|
|
1f47c79 |
Version: 1.4.1
|
|
|
592249c |
Release: 3%{?dist}
|
|
|
7f26da5 |
Summary: Tools for Working with URLs and HTTP
|
|
|
7f26da5 |
|
|
|
7f26da5 |
License: MIT
|
|
|
bff54aa |
URL: https://CRAN.R-project.org/package=%{packname}
|
|
|
7f26da5 |
Source0: https://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
|
|
|
7f26da5 |
|
|
|
7f26da5 |
# Here's the R view of the dependencies world:
|
|
|
7f26da5 |
# Depends:
|
|
|
1f47c79 |
# Imports: R-curl >= 3.0.0, R-jsonlite, R-mime, R-openssl >= 0.8, R-R6
|
|
|
8f585db |
# Suggests: R-covr, R-httpuv, R-jpeg, R-knitr, R-png, R-readr, R-rmarkdown, R-testthat >= 0.8.0, R-xml2
|
|
|
7f26da5 |
# LinkingTo:
|
|
|
7f26da5 |
# Enhances:
|
|
|
7f26da5 |
|
|
|
7f26da5 |
BuildArch: noarch
|
|
|
7f26da5 |
BuildRequires: R-devel
|
|
|
7f26da5 |
BuildRequires: tex(latex)
|
|
|
1f47c79 |
BuildRequires: R-curl >= 3.0.0
|
|
|
7f26da5 |
BuildRequires: R-jsonlite
|
|
|
7f26da5 |
BuildRequires: R-mime
|
|
|
7f26da5 |
BuildRequires: R-openssl >= 0.8
|
|
|
7f26da5 |
BuildRequires: R-R6
|
|
|
7f26da5 |
BuildRequires: R-httpuv
|
|
|
7f26da5 |
BuildRequires: R-jpeg
|
|
|
7f26da5 |
BuildRequires: R-knitr
|
|
|
7f26da5 |
BuildRequires: R-png
|
|
|
7f26da5 |
%if %{with_suggests}
|
|
|
7f26da5 |
BuildRequires: R-readr
|
|
|
7f26da5 |
%endif
|
|
|
7f26da5 |
BuildRequires: R-rmarkdown
|
|
|
8f585db |
BuildRequires: R-testthat >= 0.8.0
|
|
|
8f585db |
BuildRequires: R-xml2
|
|
|
7f26da5 |
|
|
|
7f26da5 |
%description
|
|
|
7f26da5 |
Useful tools for working with HTTP organised by HTTP verbs (GET(), POST(),
|
|
|
7f26da5 |
etc). Configuration functions make it easy to control additional request
|
|
|
7f26da5 |
components (authenticate(), add_headers() and so on).
|
|
|
7f26da5 |
|
|
|
7f26da5 |
|
|
|
7f26da5 |
%prep
|
|
|
7f26da5 |
%setup -q -c -n %{packname}
|
|
|
7f26da5 |
|
|
|
7f26da5 |
# Don't need coverage; it's not packaged either.
|
|
|
8f585db |
sed -i 's/covr, //g' %{packname}/DESCRIPTION
|
|
|
7f26da5 |
|
|
|
7f26da5 |
|
|
|
7f26da5 |
%build
|
|
|
7f26da5 |
|
|
|
7f26da5 |
|
|
|
7f26da5 |
%install
|
|
|
7f26da5 |
mkdir -p %{buildroot}%{rlibdir}
|
|
|
7f26da5 |
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
|
|
|
7f26da5 |
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
|
|
|
7f26da5 |
rm -f %{buildroot}%{rlibdir}/R.css
|
|
|
7f26da5 |
|
|
|
7f26da5 |
|
|
|
7f26da5 |
%check
|
|
|
7f26da5 |
%if !%{with_network}
|
|
|
7f26da5 |
ARGS="--no-examples --no-tests --no-vignettes"
|
|
|
7f26da5 |
%endif
|
|
|
7f26da5 |
%if %{with_suggests}
|
|
|
7f26da5 |
%{_bindir}/R CMD check %{packname} $ARGS
|
|
|
7f26da5 |
%else
|
|
|
7f26da5 |
_R_CHECK_FORCE_SUGGESTS_=0 %{_bindir}/R CMD check %{packname} $ARGS
|
|
|
7f26da5 |
%endif
|
|
|
7f26da5 |
|
|
|
7f26da5 |
|
|
|
7f26da5 |
%files
|
|
|
7f26da5 |
%dir %{rlibdir}/%{packname}
|
|
|
7f26da5 |
%doc %{rlibdir}/%{packname}/doc
|
|
|
7f26da5 |
%doc %{rlibdir}/%{packname}/html
|
|
|
7f26da5 |
%{rlibdir}/%{packname}/DESCRIPTION
|
|
|
7f26da5 |
%doc %{rlibdir}/%{packname}/NEWS.md
|
|
|
7f26da5 |
%license %{rlibdir}/%{packname}/LICENSE
|
|
|
7f26da5 |
%{rlibdir}/%{packname}/INDEX
|
|
|
7f26da5 |
%{rlibdir}/%{packname}/NAMESPACE
|
|
|
7f26da5 |
%{rlibdir}/%{packname}/Meta
|
|
|
7f26da5 |
%{rlibdir}/%{packname}/R
|
|
|
7f26da5 |
%{rlibdir}/%{packname}/help
|
|
|
7f26da5 |
%{rlibdir}/%{packname}/demo
|
|
|
7f26da5 |
|
|
|
7f26da5 |
|
|
|
7f26da5 |
%changelog
|
|
|
592249c |
* Sun Jun 7 2020 Tom Callaway <spot@fedoraproject.org> - 1.4.1-3
|
|
|
592249c |
- rebuild for R 4
|
|
|
592249c |
|
|
|
9242cce |
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.1-2
|
|
|
9242cce |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
9242cce |
|
|
|
1f47c79 |
* Sat Aug 17 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.4.1-1
|
|
|
1f47c79 |
- Update to latest version
|
|
|
1f47c79 |
|
|
|
312f45c |
* Sun Aug 11 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.4.0-3
|
|
|
312f45c |
- Remove explicit dependencies provided by automatic dependency generator
|
|
|
312f45c |
|
|
|
5595e19 |
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-2
|
|
|
5595e19 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
5595e19 |
|
|
|
8f585db |
* Wed Feb 20 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.4.0-1
|
|
|
8f585db |
- Update to latest version
|
|
|
8f585db |
|
|
|
4c113e3 |
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-3
|
|
|
4c113e3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
4c113e3 |
|
|
|
4c7fc21 |
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-2
|
|
|
4c7fc21 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
4c7fc21 |
|
|
|
7f26da5 |
* Mon Apr 30 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.3.1-1
|
|
|
7f26da5 |
- initial package for Fedora
|