%global __brp_check_rpaths %{nil} %global packname dundermifflin %global packver 0.1.1 %global rlibdir /usr/local/lib/R/library Name: R-CRAN-%{packname} Version: 0.1.1 Release: 3%{?dist}%{?buildtag} Summary: The Office Quotes on-Demand License: MIT + file LICENSE 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-stringi BuildRequires: R-CRAN-crayon Requires: R-CRAN-stringi Requires: R-CRAN-crayon %description Provides functions to randomly select, return, and print quotes or entire scenes from the American version of the show the Office. Receive laughs from one of of the greatest sitcoms of all time on demand. Add these functions to your '.Rprofile' to get a good laugh everytime you start a new R session. %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 %{rlibdir}/%{packname}