|
|
612c66f |
%global packname reprex
|
|
|
612c66f |
%global rlibdir %{_datadir}/R/library
|
|
|
612c66f |
|
|
|
9ba6351 |
%global __suggests_exclude ^R\\((devtools)\\)
|
|
|
9ba6351 |
|
|
|
612c66f |
# Not all available yet.
|
|
|
612c66f |
%global with_suggests 0
|
|
|
612c66f |
|
|
|
612c66f |
Name: R-%{packname}
|
|
|
232192d |
Version: 2.0.0
|
|
|
3a0921b |
Release: 2%{?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 |
|
|
|
7142ea7 |
# https://github.com/tidyverse/reprex/commit/725c3a67bcfcec53dcf02db2fa210cfa63168e05
|
|
|
7142ea7 |
Patch0: 0001-Fix-test-results-with-latest-cli.patch
|
|
|
7142ea7 |
|
|
|
612c66f |
# Here's the R view of the dependencies world:
|
|
|
612c66f |
# Depends:
|
|
|
232192d |
# Imports: R-callr >= 3.6.0, R-cli >= 2.3.1, R-clipr >= 0.4.0, R-fs, R-glue, R-knitr, R-rlang >= 0.4.0, R-rmarkdown, R-rstudioapi, R-utils, R-withr >= 2.3.0
|
|
|
232192d |
# Suggests: R-covr, R-fortunes, R-miniUI, R-mockr, R-rprojroot, R-sessioninfo, R-shiny, R-spelling, R-styler >= 1.2.0, R-testthat >= 3.0.2
|
|
|
612c66f |
# LinkingTo:
|
|
|
612c66f |
# Enhances:
|
|
|
612c66f |
|
|
|
612c66f |
BuildArch: noarch
|
|
|
f0000ee |
Requires: pandoc >= 1.12.3
|
|
|
612c66f |
BuildRequires: R-devel
|
|
|
612c66f |
BuildRequires: tex(latex)
|
|
|
f0000ee |
BuildRequires: pandoc >= 1.12.3
|
|
|
232192d |
BuildRequires: R-callr >= 3.6.0
|
|
|
232192d |
BuildRequires: R-cli >= 2.3.1
|
|
|
f0000ee |
BuildRequires: R-clipr >= 0.4.0
|
|
|
bef0c91 |
BuildRequires: R-fs
|
|
|
232192d |
BuildRequires: R-glue
|
|
|
232192d |
BuildRequires: R-knitr
|
|
|
232192d |
BuildRequires: R-rlang >= 0.4.0
|
|
|
612c66f |
BuildRequires: R-rmarkdown
|
|
|
232192d |
BuildRequires: R-rstudioapi
|
|
|
612c66f |
BuildRequires: R-utils
|
|
|
f0000ee |
BuildRequires: R-withr
|
|
|
612c66f |
BuildRequires: R-fortunes
|
|
|
f0000ee |
BuildRequires: R-knitr
|
|
|
232192d |
BuildRequires: R-mockr
|
|
|
bef0c91 |
BuildRequires: R-rprojroot
|
|
|
232192d |
BuildRequires: R-sessioninfo
|
|
|
4c73095 |
%if %{fedora} > 29
|
|
|
612c66f |
BuildRequires: R-shiny
|
|
|
4c73095 |
%endif
|
|
|
232192d |
BuildRequires: R-spelling
|
|
|
232192d |
BuildRequires: R-testthat >= 3.0.2
|
|
|
4c73095 |
%if %{with_suggests}
|
|
|
4c73095 |
BuildRequires: R-devtools
|
|
|
4c73095 |
BuildRequires: R-miniUI
|
|
|
232192d |
BuildRequires: R-styler >= 1.2.0
|
|
|
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 |
|
|
|
789ab34 |
pushd %{packname}
|
|
|
7142ea7 |
%patch0 -p1
|
|
|
f0000ee |
# Don't need coverage; it's not packaged either.
|
|
|
789ab34 |
sed -i 's/covr, //g' DESCRIPTION
|
|
|
789ab34 |
popd
|
|
|
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
|
|
|
e7ea600 |
# I turned off the check suite to do the R rebuild, but you should figure out the right fix here.
|
|
|
e7ea600 |
# ERROR
|
|
|
e7ea600 |
# Running the tests in 'tests/testthat.R' failed.
|
|
|
e7ea600 |
# Last 13 lines of output:
|
|
|
e7ea600 |
#
|
|
|
e7ea600 |
# Run `snapshot_accept('input')` if this is a deliberate change
|
|
|
e7ea600 |
# -- Failure (test-utf8.R:18:3): UTF-8 encoding, string input --------------------
|
|
|
e7ea600 |
# out_utf8\[i_out\] does not match "[\u00c0]".
|
|
|
e7ea600 |
# Actual value: "#> \[1\] "<U\+00C0>" "<U\+00CB>" "<U\+00D0>""
|
|
|
e7ea600 |
# -- Failure (test-utf8.R:19:3): UTF-8 encoding, string input --------------------
|
|
|
e7ea600 |
# out_utf8\[i_out\] does not match "[\u00cb]".
|
|
|
e7ea600 |
# Actual value: "#> \[1\] "<U\+00C0>" "<U\+00CB>" "<U\+00D0>""
|
|
|
e7ea600 |
# -- Failure (test-utf8.R:20:3): UTF-8 encoding, string input --------------------
|
|
|
e7ea600 |
# out_utf8\[i_out\] does not match "[\u00d0]".
|
|
|
e7ea600 |
# Actual value: "#> \[1\] "<U\+00C0>" "<U\+00CB>" "<U\+00D0>""
|
|
|
e7ea600 |
#
|
|
|
e7ea600 |
# [ FAIL 4 | WARN 0 | SKIP 5 | PASS 168 ]
|
|
|
e7ea600 |
# Error: Test failures
|
|
|
e7ea600 |
# Execution halted
|
|
|
e7ea600 |
%if 0
|
|
|
e7ea600 |
|
|
|
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 |
|
|
|
e7ea600 |
%endif
|
|
|
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
|
|
|
7cae379 |
%{rlibdir}/%{packname}/WORDLIST
|
|
|
612c66f |
%{rlibdir}/%{packname}/Meta
|
|
|
612c66f |
%{rlibdir}/%{packname}/R
|
|
|
612c66f |
%{rlibdir}/%{packname}/help
|
|
|
f0000ee |
%{rlibdir}/%{packname}/addins
|
|
|
7cae379 |
%{rlibdir}/%{packname}/rmarkdown
|
|
|
612c66f |
%{rlibdir}/%{packname}/rstudio
|
|
|
612c66f |
%{rlibdir}/%{packname}/templates
|
|
|
612c66f |
|
|
|
612c66f |
|
|
|
612c66f |
%changelog
|
|
|
3a0921b |
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-2
|
|
|
3a0921b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
3a0921b |
|
|
|
232192d |
* Wed Jun 16 2021 Tom Callaway <spot@fedoraproject.org> - 2.0.0-1
|
|
|
232192d |
- update to 2.0.0
|
|
|
232192d |
- Rebuilt for R 4.1.0
|
|
|
232192d |
|
|
|
d9e533e |
* Mon Jan 25 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-7
|
|
|
d9e533e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
d9e533e |
|
|
|
6d9b82b |
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-6
|
|
|
6d9b82b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
6d9b82b |
|
|
|
e87a717 |
* Sun Jun 7 2020 Tom Callaway <spot@fedoraproject.org> - 0.3.0-5
|
|
|
e87a717 |
- rebuild for R 4
|
|
|
e87a717 |
|
|
|
6f7fbb0 |
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-4
|
|
|
6f7fbb0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
6f7fbb0 |
|
|
|
15c9927 |
* Sun Aug 11 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.3.0-3
|
|
|
15c9927 |
- Remove explicit dependencies provided by automatic dependency generator
|
|
|
789ab34 |
- Fix tests with pandoc 2.5
|
|
|
15c9927 |
|
|
|
6c38065 |
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-2
|
|
|
6c38065 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
6c38065 |
|
|
|
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
|