64 lines
1.7 KiB
RPMSpec
64 lines
1.7 KiB
RPMSpec
|
|
%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)
|