R-stringr/R-stringr.spec

93 lines
2.6 KiB
RPMSpec
Raw Normal View History

%bcond_with bootstrap
2021-06-10 20:00:53 +00:00
2023-01-23 02:27:11 +00:00
%global packname stringr
2023-11-21 14:33:10 +00:00
%global packver 1.5.1
2017-10-27 20:35:28 +00:00
%global rlibdir %{_datadir}/R/library
Name: R-%{packname}
2023-01-23 02:27:11 +00:00
Version: %{packver}
Release: %autorelease -e 1.riscv64
2017-10-27 20:35:28 +00:00
Summary: Simple, Consistent Wrappers for Common String Operations
2023-01-23 02:27:11 +00:00
License: MIT
2019-01-23 00:55:29 +00:00
URL: https://CRAN.R-project.org/package=%{packname}
2023-01-23 02:27:11 +00:00
Source0: https://cran.r-project.org/src/contrib/%{packname}_%{packver}.tar.gz
2017-10-27 20:35:28 +00:00
# Here's the R view of the dependencies world:
# Depends:
2023-11-21 14:33:10 +00:00
# Imports: R-cli, R-glue >= 1.6.1, R-lifecycle >= 1.0.3, R-magrittr, R-rlang >= 1.0.0, R-stringi >= 1.5.3, R-vctrs >= 0.4.0
# Suggests: R-covr, R-dplyr, R-gt, R-htmltools, R-htmlwidgets, R-knitr, R-rmarkdown, R-testthat >= 3.0.0, R-tibble
2017-10-27 20:35:28 +00:00
# LinkingTo:
# Enhances:
BuildArch: noarch
2018-06-02 22:45:19 +00:00
BuildRequires: R-devel
BuildRequires: tex(latex)
2023-01-23 02:27:11 +00:00
BuildRequires: R-cli
BuildRequires: R-glue >= 1.6.1
BuildRequires: R-lifecycle >= 1.0.3
2017-10-27 20:35:28 +00:00
BuildRequires: R-magrittr
2023-01-23 02:27:11 +00:00
BuildRequires: R-rlang >= 1.0.0
BuildRequires: R-stringi >= 1.5.3
2023-11-21 14:33:10 +00:00
BuildRequires: R-vctrs >= 0.4.0
2021-06-10 20:00:53 +00:00
%if %{without bootstrap}
2023-11-21 14:33:10 +00:00
BuildRequires: R-dplyr
# BuildRequires: R-gt
2018-06-02 22:45:19 +00:00
BuildRequires: R-htmltools
BuildRequires: R-htmlwidgets
BuildRequires: R-knitr
BuildRequires: R-rmarkdown
2023-01-23 02:27:11 +00:00
BuildRequires: R-testthat >= 3.0.0
2023-11-21 14:33:10 +00:00
BuildRequires: R-tibble
2021-06-10 20:00:53 +00:00
%endif
2017-10-27 20:35:28 +00:00
%description
A consistent, simple and easy to use set of wrappers around the fantastic
'stringi' package. All function and argument names (and positions) are
consistent, all functions deal with "NA"'s and zero length vectors in the
same way, and the output from one function is easy to feed into the input
of another.
2018-06-02 22:45:19 +00:00
2017-10-27 20:35:28 +00:00
%prep
%setup -q -c -n %{packname}
# Don't need coverage; it's not packaged either.
sed -i 's/covr, //g' %{packname}/DESCRIPTION
2018-06-02 22:45:19 +00:00
2017-10-27 20:35:28 +00:00
%build
2018-06-02 22:45:19 +00:00
2017-10-27 20:35:28 +00:00
%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
2018-06-02 22:45:19 +00:00
2017-10-27 20:35:28 +00:00
%check
2021-06-10 20:00:53 +00:00
%if %{without bootstrap}
2023-01-23 02:27:11 +00:00
export LANG=C.UTF-8
2023-11-21 14:33:10 +00:00
_R_CHECK_FORCE_SUGGESTS_=0 %{_bindir}/R CMD check --ignore-vignettes %{packname}
2021-06-10 20:00:53 +00:00
%endif
2017-10-27 20:35:28 +00:00
%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%license %{rlibdir}/%{packname}/LICENSE
%doc %{rlibdir}/%{packname}/NEWS.md
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/htmlwidgets
%changelog
2023-01-23 02:09:09 +00:00
%autochangelog