!1 Init package

From: @misaka00251 
Reviewed-by: @laokz 
Signed-off-by: @laokz
This commit is contained in:
openeuler-ci-bot 2022-07-25 13:10:04 +00:00 committed by Gitee
commit 141a203036
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 67 additions and 0 deletions

67
R-filehash.spec Normal file
View File

@ -0,0 +1,67 @@
%global packname filehash
%global packver 2.4-2
%global rlibdir %{_libdir}/R/library
Name: R-%{packname}
Version: 2.4.2
Release: 1
Summary: Simple Key-Value Database
License: GPLv2+
URL: https://CRAN.R-project.org/package=%{packname}
Source0: https://cran.r-project.org/src/contrib/%{packname}_%{packver}.tar.gz
BuildRequires: R-devel
BuildRequires: tex(latex)
BuildRequires: R-methods
%description
Implements a simple key-value style database where character string keys
are associated with data values that are stored on the disk. A simple
interface is provided for inserting, retrieving, and deleting data from
the database. Utilities are provided that allow 'filehash' databases to be
treated much like environments and lists are already used in R. These
utilities are provided to encourage interactive and exploratory analysis
on large datasets. Three different file formats for representing the
database are currently available and new formats can easily be
incorporated by third parties for use in the 'filehash' framework.
%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}/doc
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/CITATION
%license %{rlibdir}/%{packname}/COPYING
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%dir %{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/libs/%{packname}.so
%changelog
* Fri Jun 24 2022 misaka00251 <misaka00251@misakanet.cn> - 2.4.2-1
- Init package (Thanks to fedora team)

BIN
filehash_2.4-2.tar.gz Normal file

Binary file not shown.