%global __brp_check_rpaths %{nil} %global packname personr %global packver 1.0.0 %global rlibdir /usr/local/lib/R/library Name: R-CRAN-%{packname} Version: 1.0.0 Release: 2%{?dist}%{?buildtag} Summary: Test Your Personality 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-rlang BuildRequires: R-CRAN-rmarkdown BuildRequires: R-CRAN-shiny BuildRequires: R-stats BuildRequires: R-utils BuildRequires: R-CRAN-whisker Requires: R-CRAN-ggplot2 Requires: R-CRAN-rlang Requires: R-CRAN-rmarkdown Requires: R-CRAN-shiny Requires: R-stats Requires: R-utils Requires: R-CRAN-whisker %description An R-package-version of an open online science-based personality test from , providing a better-designed interface and a more detailed report. The core command launch_test() opens a personality test in your browser, and generates a report after you click "Submit". In this report, your results are compared with other people's, to show what these results mean. Other people's data is from . %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}