%global packname qad %global packver 0.2.0 %global rlibdir /usr/local/lib/R/library Name: R-CRAN-%{packname} Version: 0.2.0 Release: 2%{?dist} Summary: Quantification of Asymmetric Dependence License: GPL-2 URL: https://cran.r-project.org/package=%{packname} Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz BuildRequires: R-devel >= 2.10 Requires: R-core >= 2.10 BuildArch: noarch BuildRequires: R-CRAN-ggplot2 BuildRequires: R-CRAN-data.table BuildRequires: R-CRAN-foreach BuildRequires: R-CRAN-doParallel BuildRequires: R-CRAN-copula BuildRequires: R-parallel BuildRequires: R-CRAN-viridis BuildRequires: R-CRAN-ggExtra BuildRequires: R-CRAN-dplyr Requires: R-CRAN-ggplot2 Requires: R-CRAN-data.table Requires: R-CRAN-foreach Requires: R-CRAN-doParallel Requires: R-CRAN-copula Requires: R-parallel Requires: R-CRAN-viridis Requires: R-CRAN-ggExtra Requires: R-CRAN-dplyr %description A copula-based measure for quantifying asymmetry in dependence and associations. %prep %setup -q -c -n %{packname} find -type f -executable -exec grep -Iq . {} \; -exec sed -i -e '$a\' {} \; %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 %files %dir %{rlibdir}/%{packname} %doc %{rlibdir}/%{packname}/html %{rlibdir}/%{packname}/Meta %{rlibdir}/%{packname}/help %{rlibdir}/%{packname}/DESCRIPTION %{rlibdir}/%{packname}/NAMESPACE %{rlibdir}/%{packname}/R %{rlibdir}/%{packname}/INDEX