2021-02-08 16:44:34 +00:00
|
|
|
%global packname cachem
|
2021-06-14 18:13:02 +00:00
|
|
|
%global packver 1.0.5
|
2021-02-08 16:44:34 +00:00
|
|
|
|
|
|
|
Name: R-%{packname}
|
|
|
|
Version: %{packver}
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Source0: ftp://cran.r-project.org/pub/R/contrib/main/%{packname}_%{packver}.tar.gz
|
|
|
|
License: MIT
|
|
|
|
URL: http://cran.r-project.org/web/packages/cachem/index.html
|
|
|
|
Summary: Cache R Objects with Automatic Pruning
|
|
|
|
BuildRequires: R-devel >= 3.0.0, tetex-latex, R-rlang, R-fastmap, gcc
|
|
|
|
BuildRequires: R-testthat
|
|
|
|
|
|
|
|
%description
|
|
|
|
Key-value stores with automatic pruning. Caches can limit either their total
|
|
|
|
size or the age of the oldest object (or both), automatically pruning objects
|
|
|
|
to maintain the constraints.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -c -n %{packname}
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_libdir}/R/library
|
|
|
|
%{_bindir}/R CMD INSTALL -l $RPM_BUILD_ROOT%{_libdir}/R/library %{packname}
|
|
|
|
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
|
|
|
|
rm -rf $RPM_BUILD_ROOT%{_libdir}/R/library/R.css
|
|
|
|
|
|
|
|
%check
|
|
|
|
%{_bindir}/R CMD check %{packname}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%dir %{_libdir}/R/library/%{packname}
|
|
|
|
%doc %{_libdir}/R/library/%{packname}/LICENSE
|
|
|
|
%doc %{_libdir}/R/library/%{packname}/html
|
|
|
|
%doc %{_libdir}/R/library/%{packname}/NEWS.md
|
|
|
|
%{_libdir}/R/library/%{packname}/DESCRIPTION
|
|
|
|
%{_libdir}/R/library/%{packname}/INDEX
|
|
|
|
%{_libdir}/R/library/%{packname}/NAMESPACE
|
|
|
|
%{_libdir}/R/library/%{packname}/Meta
|
|
|
|
%{_libdir}/R/library/%{packname}/R
|
|
|
|
%{_libdir}/R/library/%{packname}/help
|
|
|
|
%{_libdir}/R/library/%{packname}/libs
|
|
|
|
|
|
|
|
%changelog
|
2021-06-14 18:13:02 +00:00
|
|
|
* Mon Jun 14 2021 Tom Callaway <spot@fedoraproject.org> - 1.0.5-1
|
|
|
|
- update to 1.0.5
|
|
|
|
- Rebuilt for R 4.1.0
|
|
|
|
|
2021-02-08 16:44:34 +00:00
|
|
|
* Thu Feb 4 2021 Tom Callaway <spot@fedoraproject.org> - 1.0.2-1
|
|
|
|
- initial package
|