## START: Set by rpmautospec ## (rpmautospec version 0.8.1) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global packname R2HTML %global rlibdir %{_datadir}/R/library Name: R-%{packname} Version: 2.3.4 Release: %autorelease Summary: HTML Exportation for R Objects License: GPL-2.0-or-later URL: https://CRAN.R-project.org/package=%{packname} Source: %{url}&version=%{version}#/%{packname}_%{version}.tar.gz BuildArch: noarch BuildRequires: R-devel BuildRequires: tex(latex) BuildRequires: tex(inconsolata.sty) %description Includes HTML function and methods to write in an HTML file. Thus, making HTML reports is easy. Includes a function that allows redirection on the fly, which appears to be very useful for teaching purpose, as the student can keep a copy of the produced output to keep all that he did during the course. Package comes with a vignette describing how to write HTML reports for statistical analysis. Finally, a driver for 'Sweave' allows to parse HTML flat files containing R code and to automatically write the corresponding outputs (tables and graphs). %prep %setup -q -c -n %{packname} %build %install mkdir -p %{buildroot}%{rlibdir} 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 R CMD check %{packname} %files %dir %{rlibdir}/%{packname} %doc %{rlibdir}/%{packname}/demo %doc %{rlibdir}/%{packname}/doc %doc %{rlibdir}/%{packname}/html %doc %{rlibdir}/%{packname}/samples %{rlibdir}/%{packname}/CITATION %{rlibdir}/%{packname}/DESCRIPTION %doc %{rlibdir}/%{packname}/NEWS %{rlibdir}/%{packname}/INDEX %{rlibdir}/%{packname}/NAMESPACE %{rlibdir}/%{packname}/Meta %{rlibdir}/%{packname}/R %{rlibdir}/%{packname}/help %{rlibdir}/%{packname}/output %changelog ## START: Generated by rpmautospec * Fri May 09 2025 John Doe - 2.3.4-1 - Uncommitted changes ## END: Generated by rpmautospec