49 lines
1.5 KiB
RPMSpec
49 lines
1.5 KiB
RPMSpec
|
%global packname cachem
|
||
|
%global packver 1.0.2
|
||
|
|
||
|
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
|
||
|
* Thu Feb 4 2021 Tom Callaway <spot@fedoraproject.org> - 1.0.2-1
|
||
|
- initial package
|