R-formatR/R-formatR.spec

79 lines
2.0 KiB
RPMSpec
Raw Permalink Normal View History

2022-09-04 11:29:04 +00:00
%bcond_with bootstrap
2021-03-14 08:27:50 +00:00
%global packname formatR
2022-12-30 20:50:44 +00:00
%global packver 1.13
2018-06-10 03:35:22 +00:00
%global rlibdir %{_datadir}/R/library
Name: R-%{packname}
2022-12-30 20:50:44 +00:00
Version: %{packver}
2021-09-19 21:44:49 +00:00
Release: %autorelease
2018-06-10 03:35:22 +00:00
Summary: Format R Code Automatically
# Automatically converted from old format: GPLv2+ - review is highly recommended.
License: GPL-2.0-or-later
2019-01-23 00:55:19 +00:00
URL: https://CRAN.R-project.org/package=%{packname}
2021-03-14 08:27:50 +00:00
Source0: https://cran.r-project.org/src/contrib/%{packname}_%{packver}.tar.gz
2018-06-10 03:35:22 +00:00
# Here's the R view of the dependencies world:
# Depends:
# Imports:
# Suggests: R-codetools, R-shiny, R-testit, R-rmarkdown, R-knitr
# LinkingTo:
# Enhances:
BuildArch: noarch
BuildRequires: R-devel
BuildRequires: tex(latex)
2021-09-19 21:49:26 +00:00
%if %{without bootstrap}
BuildRequires: R-rstudioapi
2021-03-14 08:27:50 +00:00
BuildRequires: R-shiny
2018-06-10 03:35:22 +00:00
BuildRequires: R-testit
BuildRequires: R-rmarkdown
BuildRequires: R-knitr
%endif
2018-06-10 03:35:22 +00:00
%description
2019-06-13 02:00:05 +00:00
Provides a function tidy_source() to format R source code. Spaces and indent
will be added to the code automatically, and comments will be preserved under
certain conditions, so that R code will be more human-readable and tidy. There
is also a Shiny app as a user interface in this package (see tidy_app()).
2018-06-10 03:35:22 +00:00
%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
2021-09-19 21:49:26 +00:00
%if %{without bootstrap}
2023-05-12 11:39:20 +00:00
%{_bindir}/R CMD check --ignore-vignettes %{packname}
%endif
2018-06-10 03:35:22 +00:00
%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
2021-04-17 06:41:34 +00:00
%doc %{rlibdir}/%{packname}/NEWS.Rd
2018-06-10 03:35:22 +00:00
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/format
%{rlibdir}/%{packname}/shiny
%changelog
2021-09-19 21:44:49 +00:00
%autochangelog