Blob Blame History Raw
%global packname  reprex
%global rlibdir  %{_datadir}/R/library

# Not all available yet.
%global with_suggests 0

Name:             R-%{packname}
Version:          0.3.0
Release:          1%{?dist}
Summary:          Prepare Reproducible Example Code via the Clipboard

License:          MIT
URL:    {packname}

# Here's the R view of the dependencies world:
# Depends:
# Imports:   R-callr >= 2.0.0, R-clipr >= 0.4.0, R-fs, R-rlang, R-rmarkdown, R-utils, R-whisker, R-withr
# Suggests:  R-covr, R-devtools, R-fortunes, R-knitr, R-miniUI, R-rprojroot, R-rstudioapi, R-shiny, R-styler >= 1.0.2, R-testthat >= 2.0.0
# LinkingTo:
# Enhances:

BuildArch:        noarch
Requires:         pandoc >= 1.12.3
Requires:         R-core
Requires:         R-callr >= 2.0.0
Requires:         R-clipr >= 0.4.0
Requires:         R-fs
Requires:         R-rlang
Requires:         R-rmarkdown
Requires:         R-utils
Requires:         R-whisker
Requires:         R-withr
Suggests:         R-devtools
Suggests:         R-fortunes
Suggests:         R-knitr
Suggests:         R-miniUI
Suggests:         R-rstudioapi
Suggests:         R-shiny
Suggests:         R-styler >= 1.0.2
BuildRequires:    R-devel
BuildRequires:    tex(latex)
BuildRequires:    pandoc >= 1.12.3
BuildRequires:    R-callr >= 2.0.0
BuildRequires:    R-clipr >= 0.4.0
BuildRequires:    R-fs
BuildRequires:    R-rlang
BuildRequires:    R-rmarkdown
BuildRequires:    R-utils
BuildRequires:    R-whisker
BuildRequires:    R-withr
BuildRequires:    R-fortunes
BuildRequires:    R-knitr
BuildRequires:    R-rprojroot
BuildRequires:    R-rstudioapi
%if %{fedora} > 29
BuildRequires:    R-shiny
BuildRequires:    R-testthat >= 2.0.0
%if %{with_suggests}
BuildRequires:    R-devtools
BuildRequires:    R-miniUI
BuildRequires:    R-styler >= 1.0.2

Convenience wrapper that uses the 'rmarkdown' package to render small snippets
of code to target formats that include both code and output. The goal is to
encourage the sharing of small, reproducible, and runnable examples on
code-oriented websites, such as <> and
<>, or in email. The user's clipboard is the default source
of input code and the default target for rendered output. 'reprex' also
extracts clean, runnable R code from various common formats, such as copy/paste
from an R session.

%setup -q -c -n %{packname}

# Don't need coverage; it's not packaged either.
sed -i 's/covr, //g' %{packname}/DESCRIPTION


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

export NOT_CRAN=true
%if %{with_suggests}
%{_bindir}/R CMD check %{packname}
_R_CHECK_FORCE_SUGGESTS_=0 %{_bindir}/R CMD check %{packname}

%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/
%license %{rlibdir}/%{packname}/LICENSE

* Sun May 26 2019 Elliott Sales de Andrade <> - 0.3.0-1
- Update to latest version

* Thu Jan 31 2019 Fedora Release Engineering <> - 0.2.1-2
- Rebuilt for

* Mon Sep 24 2018 Elliott Sales de Andrade <> - 0.2.1-1
- Update to latest version

* Thu Jul 12 2018 Fedora Release Engineering <> - 0.2.0-2
- Rebuilt for

* Sun Jul 01 2018 Elliott Sales de Andrade <> - 0.2.0-1
- Update to latest version
- Enable more tests

* Tue Apr 24 2018 Elliott Sales de Andrade <> - 0.1.2-1
- initial package for Fedora