!1 Init package

From: @misaka00251 
Reviewed-by: @laokz 
Signed-off-by: @laokz
This commit is contained in:
openeuler-ci-bot 2022-07-22 11:50:08 +00:00 committed by Gitee
commit 344aee9a9f
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 57 additions and 0 deletions

57
R-mime.spec Normal file
View File

@ -0,0 +1,57 @@
%global packname mime
%global packver 0.10
%global rlibdir %{_libdir}/R/library
Name: R-%{packname}
Version: 0.10
Release: 1
Summary: Map Filenames to MIME Types
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-tools
%description
Guesses the MIME type from a filename extension using the data derived from
/etc/mime.types in UNIX-type systems.
%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
%dir %{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/libs/%{packname}.so
%changelog
* Wed Jun 15 2022 misaka00251 <misaka00251@misakanet.cn> - 0.10-1
- Init package (Thanks to fedora team)

BIN
mime_0.10.tar.gz Normal file

Binary file not shown.