%global __brp_check_rpaths %{nil} %global packname learnPopGen %global packver 1.0.4 %global rlibdir /usr/local/lib/R/library Name: R-CRAN-%{packname} Version: 1.0.4 Release: 2%{?dist}%{?buildtag} Summary: Population Genetic Simulations & Numerical Analysis License: GPL (>= 2) URL: https://cran.r-project.org/package=%{packname} Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz BuildRequires: R-devel >= 2.6 Requires: R-core >= 2.6 BuildArch: noarch BuildRequires: R-grDevices BuildRequires: R-graphics BuildRequires: R-CRAN-gtools BuildRequires: R-methods BuildRequires: R-CRAN-phytools BuildRequires: R-stats Requires: R-grDevices Requires: R-graphics Requires: R-CRAN-gtools Requires: R-methods Requires: R-CRAN-phytools Requires: R-stats %description Conducts various numerical analyses and simulations in population genetics and evolutionary theory, primarily for the purpose of teaching (and learning about) key concepts in population & quantitative genetics, and evolutionary theory. %prep %setup -q -c -n %{packname} find -type f -executable -exec grep -Iq . {} \; -exec sed -i -e '$a\' {} \; [ -d %{packname}/src ] && find %{packname}/src -type f -exec \ sed -i 's@/usr/bin/strip@/usr/bin/true@g' {} \; || true %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 %{rlibdir}/%{packname}