41072960a4
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
104 lines
2.9 KiB
RPMSpec
104 lines
2.9 KiB
RPMSpec
# When we are bootstrapping, we drop some dependencies, and/or build time tests.
|
|
%bcond_with bootstrap
|
|
|
|
%global packname purrr
|
|
%global rlibdir %{_libdir}/R/library
|
|
|
|
Name: R-%{packname}
|
|
Version: 0.3.3
|
|
Release: 2%{?dist}
|
|
Summary: Functional Programming Tools
|
|
|
|
License: GPLv3
|
|
URL: https://CRAN.R-project.org/package=%{packname}
|
|
Source0: https://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
|
|
|
|
# Here's the R view of the dependencies world:
|
|
# Depends:
|
|
# Imports: R-magrittr >= 1.5, R-rlang >= 0.3.1
|
|
# Suggests: R-covr, R-crayon, R-dplyr >= 0.7.8, R-knitr, R-rmarkdown, R-testthat, R-tibble, R-tidyselect
|
|
# LinkingTo:
|
|
# Enhances:
|
|
|
|
BuildRequires: R-devel
|
|
BuildRequires: tex(latex)
|
|
BuildRequires: R-magrittr >= 1.5
|
|
BuildRequires: R-rlang >= 0.3.1
|
|
BuildRequires: R-crayon
|
|
BuildRequires: R-knitr
|
|
BuildRequires: R-rmarkdown
|
|
BuildRequires: R-testthat
|
|
BuildRequires: R-tibble
|
|
%if %{without bootstrap}
|
|
BuildRequires: R-dplyr >= 0.7.8
|
|
BuildRequires: R-tidyselect
|
|
%endif
|
|
|
|
%description
|
|
A complete and consistent functional programming toolkit for R.
|
|
|
|
|
|
%prep
|
|
%setup -q -c -n %{packname}
|
|
|
|
# Don't need coverage; it's not packaged either.
|
|
sed -i 's/covr, //g' %{packname}/DESCRIPTION
|
|
|
|
|
|
%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
|
|
%if %{without bootstrap}
|
|
%{_bindir}/R CMD check %{packname}
|
|
%else
|
|
_R_CHECK_FORCE_SUGGESTS_=0 %{_bindir}/R CMD check %{packname} --no-examples
|
|
%endif
|
|
|
|
|
|
%files
|
|
%dir %{rlibdir}/%{packname}
|
|
%doc %{rlibdir}/%{packname}/doc
|
|
%doc %{rlibdir}/%{packname}/html
|
|
%{rlibdir}/%{packname}/DESCRIPTION
|
|
%doc %{rlibdir}/%{packname}/NEWS.md
|
|
%license %{rlibdir}/%{packname}/LICENSE
|
|
%{rlibdir}/%{packname}/INDEX
|
|
%{rlibdir}/%{packname}/NAMESPACE
|
|
%{rlibdir}/%{packname}/Meta
|
|
%{rlibdir}/%{packname}/R
|
|
%{rlibdir}/%{packname}/help
|
|
%dir %{rlibdir}/%{packname}/libs
|
|
%{rlibdir}/%{packname}/libs/%{packname}.so
|
|
|
|
|
|
%changelog
|
|
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.3-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
* Mon Oct 21 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.3.3-1
|
|
- Update to latest version
|
|
- Disable bootstrap
|
|
|
|
* Sun Aug 11 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.3.2-3
|
|
- Remove explicit dependencies provided by automatic dependency generator
|
|
|
|
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.2-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
* Sat Mar 16 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.3.2-1
|
|
- Update to latest version
|
|
|
|
* Mon Mar 04 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.3.1-1
|
|
- Update to latest version
|
|
|
|
* Fri Feb 15 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.3.0-1
|
|
- initial package for Fedora
|