|
|
612c66f |
%global packname reprex
|
|
|
612c66f |
%global rlibdir %{_datadir}/R/library
|
|
|
612c66f |
|
|
|
612c66f |
# Not all available yet.
|
|
|
612c66f |
%global with_suggests 0
|
|
|
612c66f |
|
|
|
612c66f |
Name: R-%{packname}
|
|
|
4c73095 |
Version: 0.3.0
|
|
|
4c73095 |
Release: 1%{?dist}
|
|
|
f0000ee |
Summary: Prepare Reproducible Example Code via the Clipboard
|
|
|
612c66f |
|
|
|
612c66f |
License: MIT
|
|
|
8c9ed56 |
URL: https://CRAN.R-project.org/package=%{packname}
|
|
|
f0000ee |
Source0: https://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
|
|
|
612c66f |
|
|
|
612c66f |
# Here's the R view of the dependencies world:
|
|
|
612c66f |
# Depends:
|
|
|
4c73095 |
# Imports: R-callr >= 2.0.0, R-clipr >= 0.4.0, R-fs, R-rlang, R-rmarkdown, R-utils, R-whisker, R-withr
|
|
|
bef0c91 |
# 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
|
|
|
612c66f |
# LinkingTo:
|
|
|
612c66f |
# Enhances:
|
|
|
612c66f |
|
|
|
612c66f |
BuildArch: noarch
|
|
|
f0000ee |
Requires: pandoc >= 1.12.3
|
|
|
612c66f |
Requires: R-core
|
|
|
f0000ee |
Requires: R-callr >= 2.0.0
|
|
|
f0000ee |
Requires: R-clipr >= 0.4.0
|
|
|
bef0c91 |
Requires: R-fs
|
|
|
f0000ee |
Requires: R-rlang
|
|
|
612c66f |
Requires: R-rmarkdown
|
|
|
612c66f |
Requires: R-utils
|
|
|
612c66f |
Requires: R-whisker
|
|
|
f0000ee |
Requires: R-withr
|
|
|
612c66f |
Suggests: R-devtools
|
|
|
612c66f |
Suggests: R-fortunes
|
|
|
f0000ee |
Suggests: R-knitr
|
|
|
612c66f |
Suggests: R-miniUI
|
|
|
612c66f |
Suggests: R-rstudioapi
|
|
|
612c66f |
Suggests: R-shiny
|
|
|
bef0c91 |
Suggests: R-styler >= 1.0.2
|
|
|
612c66f |
BuildRequires: R-devel
|
|
|
612c66f |
BuildRequires: tex(latex)
|
|
|
f0000ee |
BuildRequires: pandoc >= 1.12.3
|
|
|
f0000ee |
BuildRequires: R-callr >= 2.0.0
|
|
|
f0000ee |
BuildRequires: R-clipr >= 0.4.0
|
|
|
bef0c91 |
BuildRequires: R-fs
|
|
|
f0000ee |
BuildRequires: R-rlang
|
|
|
612c66f |
BuildRequires: R-rmarkdown
|
|
|
612c66f |
BuildRequires: R-utils
|
|
|
612c66f |
BuildRequires: R-whisker
|
|
|
f0000ee |
BuildRequires: R-withr
|
|
|
612c66f |
BuildRequires: R-fortunes
|
|
|
f0000ee |
BuildRequires: R-knitr
|
|
|
bef0c91 |
BuildRequires: R-rprojroot
|
|
|
612c66f |
BuildRequires: R-rstudioapi
|
|
|
4c73095 |
%if %{fedora} > 29
|
|
|
612c66f |
BuildRequires: R-shiny
|
|
|
4c73095 |
%endif
|
|
|
4c73095 |
BuildRequires: R-testthat >= 2.0.0
|
|
|
4c73095 |
%if %{with_suggests}
|
|
|
4c73095 |
BuildRequires: R-devtools
|
|
|
4c73095 |
BuildRequires: R-miniUI
|
|
|
bef0c91 |
BuildRequires: R-styler >= 1.0.2
|
|
|
612c66f |
%endif
|
|
|
612c66f |
|
|
|
612c66f |
%description
|
|
|
4c73095 |
Convenience wrapper that uses the 'rmarkdown' package to render small snippets
|
|
|
4c73095 |
of code to target formats that include both code and output. The goal is to
|
|
|
4c73095 |
encourage the sharing of small, reproducible, and runnable examples on
|
|
|
4c73095 |
code-oriented websites, such as <https://stackoverflow.com> and
|
|
|
4c73095 |
<https://github.com>, or in email. The user's clipboard is the default source
|
|
|
4c73095 |
of input code and the default target for rendered output. 'reprex' also
|
|
|
4c73095 |
extracts clean, runnable R code from various common formats, such as copy/paste
|
|
|
4c73095 |
from an R session.
|
|
|
612c66f |
|
|
|
612c66f |
|
|
|
612c66f |
%prep
|
|
|
612c66f |
%setup -q -c -n %{packname}
|
|
|
612c66f |
|
|
|
f0000ee |
# Don't need coverage; it's not packaged either.
|
|
|
f0000ee |
sed -i 's/covr, //g' %{packname}/DESCRIPTION
|
|
|
612c66f |
|
|
|
612c66f |
|
|
|
612c66f |
%build
|
|
|
612c66f |
|
|
|
612c66f |
|
|
|
612c66f |
%install
|
|
|
612c66f |
mkdir -p %{buildroot}%{rlibdir}
|
|
|
612c66f |
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
|
|
|
612c66f |
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
|
|
|
612c66f |
rm -f %{buildroot}%{rlibdir}/R.css
|
|
|
612c66f |
|
|
|
612c66f |
|
|
|
612c66f |
%check
|
|
|
f0000ee |
export NOT_CRAN=true
|
|
|
612c66f |
%if %{with_suggests}
|
|
|
612c66f |
%{_bindir}/R CMD check %{packname}
|
|
|
612c66f |
%else
|
|
|
612c66f |
_R_CHECK_FORCE_SUGGESTS_=0 %{_bindir}/R CMD check %{packname}
|
|
|
612c66f |
%endif
|
|
|
612c66f |
|
|
|
612c66f |
|
|
|
612c66f |
%files
|
|
|
612c66f |
%dir %{rlibdir}/%{packname}
|
|
|
f0000ee |
%doc %{rlibdir}/%{packname}/doc
|
|
|
612c66f |
%doc %{rlibdir}/%{packname}/html
|
|
|
612c66f |
%{rlibdir}/%{packname}/DESCRIPTION
|
|
|
612c66f |
%doc %{rlibdir}/%{packname}/NEWS.md
|
|
|
612c66f |
%license %{rlibdir}/%{packname}/LICENSE
|
|
|
612c66f |
%{rlibdir}/%{packname}/INDEX
|
|
|
612c66f |
%{rlibdir}/%{packname}/NAMESPACE
|
|
|
612c66f |
%{rlibdir}/%{packname}/Meta
|
|
|
612c66f |
%{rlibdir}/%{packname}/R
|
|
|
612c66f |
%{rlibdir}/%{packname}/help
|
|
|
f0000ee |
%{rlibdir}/%{packname}/addins
|
|
|
612c66f |
%{rlibdir}/%{packname}/rstudio
|
|
|
612c66f |
%{rlibdir}/%{packname}/templates
|
|
|
612c66f |
|
|
|
612c66f |
|
|
|
612c66f |
%changelog
|
|
|
4c73095 |
* Sun May 26 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.3.0-1
|
|
|
4c73095 |
- Update to latest version
|
|
|
4c73095 |
|
|
|
f30cb6e |
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.1-2
|
|
|
f30cb6e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
f30cb6e |
|
|
|
bef0c91 |
* Mon Sep 24 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.2.1-1
|
|
|
bef0c91 |
- Update to latest version
|
|
|
bef0c91 |
|
|
|
e52ce78 |
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-2
|
|
|
e52ce78 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
e52ce78 |
|
|
|
f0000ee |
* Sun Jul 01 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.2.0-1
|
|
|
f0000ee |
- Update to latest version
|
|
|
f0000ee |
- Enable more tests
|
|
|
f0000ee |
|
|
|
612c66f |
* Tue Apr 24 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.1.2-1
|
|
|
612c66f |
- initial package for Fedora
|