%bcond_with check %global packname magrittr %global packver 2.0.3 Name: R-%{packname} Version: %{packver} Release: 1%{?dist} Source0: ftp://cran.r-project.org/pub/R/contrib/main/%{packname}_%{packver}.tar.gz License: MIT URL: http://cran.r-project.org/web/packages/magrittr/index.html Summary: Provides a mechanism for chaining commands with a new forward-pipe operator BuildRequires: R-devel >= 3.0.0, tetex-latex, gcc %if %{with check} # For tests BuildRequires: R-testthat BuildRequires: R-knitr BuildRequires: R-rlang BuildRequires: R-rmarkdown %endif %description Provides a mechanism for chaining commands with a new forward-pipe operator. This operator will forward a value, or the result of an expression, into the next function call/expression. There is flexible support for the type of right-hand side expressions. For more information, see package vignette. To quote Rene Magritte, "Ceci n'est pas un pipe." %prep %setup -q -c -n %{packname} %build %install mkdir -p $RPM_BUILD_ROOT%{_libdir}/R/library %{_bindir}/R CMD INSTALL -l $RPM_BUILD_ROOT%{_libdir}/R/library %{packname} test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so) rm -rf $RPM_BUILD_ROOT%{_libdir}/R/library/R.css %check %if %{with check} %{_bindir}/R CMD check %{packname} %endif %files %dir %{_libdir}/R/library/%{packname} %doc %{_libdir}/R/library/%{packname}/LICENSE %doc %{_libdir}/R/library/%{packname}/html %{_libdir}/R/library/%{packname}/DESCRIPTION %{_libdir}/R/library/%{packname}/INDEX %{_libdir}/R/library/%{packname}/NAMESPACE %{_libdir}/R/library/%{packname}/NEWS.md %{_libdir}/R/library/%{packname}/Meta %{_libdir}/R/library/%{packname}/R %{_libdir}/R/library/%{packname}/doc %{_libdir}/R/library/%{packname}/help %{_libdir}/R/library/%{packname}/libs/ %{_libdir}/R/library/%{packname}/logo* %changelog * Thu Aug 18 2022 Tom Callaway - 2.0.3-1 - update to 2.0.3 - rebuild for R 4.2.1 * Wed Jul 20 2022 Fedora Release Engineering - 2.0.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Wed Jan 19 2022 Fedora Release Engineering - 2.0.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Wed Jul 21 2021 Fedora Release Engineering - 2.0.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Wed Jun 9 2021 Tom Callaway - 2.0.1-2 - Rebuilt for R 4.1.0 * Thu Feb 4 2021 Tom Callaway - 2.0.1-1 - update to 2.0.1 - package is now arch-specific * Mon Jan 25 2021 Fedora Release Engineering - 1.5-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Mon Jul 27 2020 Fedora Release Engineering - 1.5-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Jun 3 2020 Tom Callaway - 1.5-10 - conditionalize check to break testthat loop - rebuild for R 4 * Tue Jan 28 2020 Fedora Release Engineering - 1.5-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Mon Aug 12 2019 Elliott Sales de Andrade - 1.5-8 - Remove explicit dependencies provided by automatic dependency generator * Wed Jul 24 2019 Fedora Release Engineering - 1.5-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Thu Jan 31 2019 Fedora Release Engineering - 1.5-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Thu Jul 12 2018 Fedora Release Engineering - 1.5-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Mar 23 2018 Tom Callaway - 1.5-4 - rebuild, enable tests * Wed Feb 07 2018 Fedora Release Engineering - 1.5-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 1.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Thu May 18 2017 Tom Callaway - 1.5-1 - initial package