!1 Init package

From: @misaka00251 
Reviewed-by: @laokz 
Signed-off-by: @laokz
This commit is contained in:
openeuler-ci-bot 2022-08-19 12:20:26 +00:00 committed by Gitee
commit ead2bf5f75
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 63 additions and 0 deletions

63
R-tinytex.spec Normal file
View File

@ -0,0 +1,63 @@
%global packname tinytex
%global packver 0.32
%global rlibdir %{_datadir}/R/library
Name: R-%{packname}
Version: 0.32
Release: 1
Summary: Helper Functions to Install and Maintain TeX Live, and Compile LaTeX Documents
License: MIT
URL: https://CRAN.R-project.org/package=%{packname}
Source0: https://cran.r-project.org/src/contrib/%{packname}_%{packver}.tar.gz
BuildArch: noarch
BuildRequires: R-devel
BuildRequires: tex(latex)
BuildRequires: R-xfun >= 0.23
BuildRequires: R-testit
BuildRequires: R-rstudioapi
%description
Helper functions to install and maintain the 'LaTeX' distribution named
'TinyTeX' (<https://yihui.org/tinytex/>), a lightweight, cross-platform,
portable, and easy-to-maintain version of 'TeX Live'. This package also
contains helper functions to compile 'LaTeX' documents, and install missing
'LaTeX' packages automatically.
%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.Rd
%{rlibdir}/%{packname}/INDEX
%doc %{rlibdir}/%{packname}/CITATION
%license %{rlibdir}/%{packname}/LICENSE
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%changelog
* Fri Jun 24 2022 misaka00251 <misaka00251@misakanet.cn> - 0.32-1
- Init package (Thanks to fedora team)

BIN
tinytex_0.32.tar.gz Normal file

Binary file not shown.