Init package

This commit is contained in:
misaka00251 2022-07-20 18:40:17 +08:00
parent 5ac85e0a4c
commit b22dc0864f
No known key found for this signature in database
GPG Key ID: 4AA100DC964EDE26
2 changed files with 67 additions and 0 deletions

67
R-R.cache.spec Normal file
View File

@ -0,0 +1,67 @@
%global packname R.cache
%global rlibdir %{_datadir}/R/library
Name: R-%{packname}
Version: 0.15.0
Release: 1
Summary: Fast and Light-Weight Caching (Memoization) of Objects and Results
License: LGPLv2+
URL: https://CRAN.R-project.org/package=%{packname}
Source0: https://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
BuildArch: noarch
BuildRequires: R-devel
BuildRequires: tex(latex)
BuildRequires: R-utils
BuildRequires: R-R.methodsS3 >= 1.8.1
BuildRequires: R-R.oo >= 1.24.0
BuildRequires: R-R.utils >= 2.10.1
BuildRequires: R-digest >= 0.6.13
%description
Memoization can be used to speed up repetitive and computational expensive
function calls. The first time a function that implements memoization is
called the results are stored in a cache memory. The next time the
function is called with the same set of parameters, the results are
momentarily retrieved from the cache avoiding repeating the calculations.
With this package, any R object can be cached in a key-value storage where
the key can be an arbitrary set of R objects. The cache memory is
persistent (on the file system).
%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
%{_bindir}/R CMD check %{packname}
%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/_Rcache
%{rlibdir}/%{packname}/WORDLIST
%changelog
* Thu Jun 16 2022 misaka00251 <misaka00251@misakanet.cn> - 0.15.0-1
- Init package (Thanks to fedora team)

BIN
R.cache_0.15.0.tar.gz Normal file

Binary file not shown.