R-curl/R-curl.spec

170 lines
5.4 KiB
RPMSpec
Raw Normal View History

%bcond_with check
2017-11-13 21:52:19 +00:00
%global packname curl
%global rlibdir %{_libdir}/R/library
# Dependency loops and/or not yet packaged.
%global with_doc 0
2017-11-13 21:52:19 +00:00
# These all require the network at the moment + dependency loop.
%global with_test 0
Name: R-%{packname}
Version: 4.3.1
Release: 2%{?dist}
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}
2017-11-13 21:52:19 +00:00
Source0: https://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
# 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)
%if %{with check}
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
%if %{with_doc}
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
2017-11-13 21:52:19 +00:00
%endif
%if %{with_test}
BuildRequires: R-webutils
%endif
%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
%if %{with check}
2019-02-16 05:15:26 +00:00
ARGS=
%if ! %{with_test}
export _R_CHECK_FORCE_SUGGESTS_=0
ARGS="$ARGS --no-tests --no-examples"
2017-11-13 21:52:19 +00:00
%endif
2019-02-16 05:15:26 +00:00
%if ! %{with_doc}
export _R_CHECK_FORCE_SUGGESTS_=0
ARGS="$ARGS --ignore-vignettes"
2017-11-13 21:52:19 +00:00
%endif
2019-02-16 05:15:26 +00:00
%{_bindir}/R CMD check %{packname} $ARGS
%endif
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
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.3.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Mon Jun 7 2021 Tom Callaway <spot@fedoraproject.org> - 4.3.1-1
- update to 4.3.1
- disable with_doc
- Rebuilt for R 4.1.0
* Mon Jan 25 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.3-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.3-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Fri Jun 5 2020 Tom Callaway <spot@fedoraproject.org> - 4.3-3
- conditionalize check to break loop with httpuv
- rebuild for R 4
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
2019-12-03 03:08:16 +00:00
* Mon Dec 02 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 4.3-1
- Update to latest version
2019-09-27 05:58:52 +00:00
* Fri Sep 27 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 4.2-1
- Update to latest version
2019-09-18 05:44:13 +00:00
* Wed Sep 18 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 4.1-1
- Update to latest version
2019-08-19 05:04:38 +00:00
* Sat Aug 17 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 4.0-1
- Update to latest version
* Sun Aug 11 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 3.3-3
- Remove explicit dependencies provided by automatic dependency generator
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
2019-02-16 05:07:29 +00:00
* Sat Feb 16 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 3.3-1
- Update to latest version
2019-02-16 05:15:26 +00:00
- Enable documentation
2019-02-16 05:07:29 +00:00
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.2-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
2018-05-17 20:28:13 +00:00
* Thu May 17 2018 Tom Callaway <spot@fedoraproject.org> - 3.2-2
- rebuild for R 3.5.0
2018-04-26 03:57:57 +00:00
* Wed Apr 25 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 3.2-1
- New upstream release.
2018-03-10 01:09:31 +00:00
* Fri Mar 09 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> 3.1-1
- New upstream release.
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
2017-11-13 21:52:19 +00:00
* Fri Nov 10 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> 3.0-1
- New upstream release.
* Fri Aug 25 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> 2.8.1-1
- initial package for Fedora