Init package
This commit is contained in:
parent
e626ffc4ad
commit
cdd0f203e3
76
R-xtable.spec
Normal file
76
R-xtable.spec
Normal file
@ -0,0 +1,76 @@
|
||||
%global packname xtable
|
||||
%global packvers 1.8-4
|
||||
%global rlibdir %{_datadir}/R/library
|
||||
|
||||
# Dep loop so not right now
|
||||
%global with_suggests 0
|
||||
|
||||
Name: R-%{packname}
|
||||
Version: 1.8.4
|
||||
Release: 1
|
||||
Summary: Export Tables to LaTeX or HTML
|
||||
|
||||
License: GPLv2+
|
||||
URL: https://CRAN.R-project.org/package=%{packname}
|
||||
Source0: https://cran.r-project.org/src/contrib/%{packname}_%{packvers}.tar.gz
|
||||
|
||||
BuildArch: noarch
|
||||
BuildRequires: R-devel >= 3.0.0
|
||||
BuildRequires: tex(latex)
|
||||
BuildRequires: tex(framed.sty)
|
||||
BuildRequires: tex(hardwrap.sty)
|
||||
BuildRequires: tex(tufte-handout.cls)
|
||||
BuildRequires: R-stats
|
||||
BuildRequires: R-utils
|
||||
BuildRequires: R-knitr
|
||||
BuildRequires: R-zoo
|
||||
BuildRequires: R-survival
|
||||
%if %{with_suggests}
|
||||
BuildRequires: R-plm
|
||||
BuildRequires: R-lsmeans
|
||||
BuildRequires: R-spdep
|
||||
%endif
|
||||
|
||||
%description
|
||||
Coerce data to LaTeX and HTML tables.
|
||||
|
||||
|
||||
%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
|
||||
%if %{with_suggests}
|
||||
%{_bindir}/R CMD check %{packname}
|
||||
%else
|
||||
_R_CHECK_FORCE_SUGGESTS_=0 %{_bindir}/R CMD check %{packname}
|
||||
%endif
|
||||
|
||||
|
||||
%files
|
||||
%dir %{rlibdir}/%{packname}
|
||||
%doc %{rlibdir}/%{packname}/doc
|
||||
%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}/data
|
||||
|
||||
|
||||
%changelog
|
||||
* Thu Jun 16 2022 misaka00251 <misaka00251@misakanet.cn> - 1.8.4-1
|
||||
- Init package (Thanks to fedora team)
|
||||
BIN
xtable_1.8-4.tar.gz
Normal file
BIN
xtable_1.8-4.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user