%global __brp_check_rpaths %{nil} %global __requires_exclude ^libmpi %global packname ggpmisc %global packver 0.6.0 %global rlibdir /usr/local/lib/R/library Name: R-CRAN-%{packname} Version: 0.6.0 Release: 1%{?dist}%{?buildtag} Summary: Miscellaneous Extensions to 'ggplot2' License: GPL (>= 2) URL: https://cran.r-project.org/package=%{packname} Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz BuildRequires: R-devel >= 4.0.0 Requires: R-core >= 4.0.0 BuildArch: noarch BuildRequires: R-CRAN-MASS >= 7.3.60.0.1 BuildRequires: R-CRAN-quantreg >= 5.97 BuildRequires: R-CRAN-ggplot2 >= 3.5.0 BuildRequires: R-CRAN-tibble >= 3.2.1 BuildRequires: R-CRAN-lubridate >= 1.9.3 BuildRequires: R-CRAN-plyr >= 1.8.9 BuildRequires: R-CRAN-lmodel2 >= 1.7.3 BuildRequires: R-CRAN-multcomp >= 1.4.25 BuildRequires: R-CRAN-polynom >= 1.4.1 BuildRequires: R-CRAN-splus2R >= 1.3.5 BuildRequires: R-CRAN-scales >= 1.3.0 BuildRequires: R-CRAN-dplyr >= 1.1.4 BuildRequires: R-CRAN-rlang >= 1.1.3 BuildRequires: R-CRAN-confintr >= 1.0.2 BuildRequires: R-CRAN-ggpp >= 0.5.8 BuildRequires: R-CRAN-generics >= 0.1.3 BuildRequires: R-CRAN-multcompView >= 0.1.10 BuildRequires: R-grid BuildRequires: R-stats Requires: R-CRAN-MASS >= 7.3.60.0.1 Requires: R-CRAN-quantreg >= 5.97 Requires: R-CRAN-ggplot2 >= 3.5.0 Requires: R-CRAN-tibble >= 3.2.1 Requires: R-CRAN-lubridate >= 1.9.3 Requires: R-CRAN-plyr >= 1.8.9 Requires: R-CRAN-lmodel2 >= 1.7.3 Requires: R-CRAN-multcomp >= 1.4.25 Requires: R-CRAN-polynom >= 1.4.1 Requires: R-CRAN-splus2R >= 1.3.5 Requires: R-CRAN-scales >= 1.3.0 Requires: R-CRAN-dplyr >= 1.1.4 Requires: R-CRAN-rlang >= 1.1.3 Requires: R-CRAN-confintr >= 1.0.2 Requires: R-CRAN-ggpp >= 0.5.8 Requires: R-CRAN-generics >= 0.1.3 Requires: R-CRAN-multcompView >= 0.1.10 Requires: R-grid Requires: R-stats %description Extensions to 'ggplot2' respecting the grammar of graphics paradigm. Statistics: locate and tag peaks and valleys; label plot with the equation of a fitted polynomial or other types of models; labels with P-value, R^2 or adjusted R^2 or information criteria for fitted models; label with ANOVA table for fitted models; label with summary for fitted models. Model fit classes for which suitable methods are provided by package 'broom' and 'broom.mixed' are supported. Scales and stats to build volcano and quadrant plots based on outcomes, fold changes, p-values and false discovery rates. %prep %setup -q -c -n %{packname} # fix end of executable files find -type f -executable -exec grep -Iq . {} \; -exec sed -i -e '$a\' {} \; # prevent binary stripping [ -d %{packname}/src ] && find %{packname}/src -type f -exec \ sed -i 's@/usr/bin/strip@/usr/bin/true@g' {} \; || true [ -d %{packname}/src ] && find %{packname}/src/Make* -type f -exec \ sed -i 's@-g0@@g' {} \; || true # don't allow local prefix in executable scripts find -type f -executable -exec sed -Ei 's@#!( )*/usr/local/bin@#!/usr/bin@g' {} \; %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 # remove buildroot from installed files find %{buildroot}%{rlibdir} -type f -exec sed -i "s@%{buildroot}@@g" {} \; %files %{rlibdir}/%{packname}