%global __brp_check_rpaths %{nil} %global __requires_exclude ^libmpi %global packname bibliometrix %global packver 4.2.2 %global rlibdir /usr/local/lib/R/library Name: R-CRAN-%{packname} Version: 4.2.2 Release: 1%{?dist}%{?buildtag} Summary: Comprehensive Science Mapping Analysis License: GPL-3 URL: https://cran.r-project.org/package=%{packname} Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz BuildRequires: R-devel >= 3.3.0 Requires: R-core >= 3.3.0 BuildArch: noarch BuildRequires: R-stats BuildRequires: R-grDevices BuildRequires: R-CRAN-bibliometrixData BuildRequires: R-CRAN-dimensionsR BuildRequires: R-CRAN-dplyr BuildRequires: R-CRAN-DT BuildRequires: R-CRAN-ca BuildRequires: R-CRAN-forcats BuildRequires: R-CRAN-ggplot2 BuildRequires: R-CRAN-ggrepel BuildRequires: R-CRAN-igraph BuildRequires: R-CRAN-Matrix BuildRequires: R-CRAN-plotly BuildRequires: R-CRAN-openalexR BuildRequires: R-CRAN-openxlsx BuildRequires: R-CRAN-pubmedR BuildRequires: R-CRAN-readr BuildRequires: R-CRAN-readxl BuildRequires: R-CRAN-rscopus BuildRequires: R-CRAN-shiny BuildRequires: R-CRAN-SnowballC BuildRequires: R-CRAN-stringdist BuildRequires: R-CRAN-stringi BuildRequires: R-CRAN-tidyr BuildRequires: R-CRAN-tidytext Requires: R-stats Requires: R-grDevices Requires: R-CRAN-bibliometrixData Requires: R-CRAN-dimensionsR Requires: R-CRAN-dplyr Requires: R-CRAN-DT Requires: R-CRAN-ca Requires: R-CRAN-forcats Requires: R-CRAN-ggplot2 Requires: R-CRAN-ggrepel Requires: R-CRAN-igraph Requires: R-CRAN-Matrix Requires: R-CRAN-plotly Requires: R-CRAN-openalexR Requires: R-CRAN-openxlsx Requires: R-CRAN-pubmedR Requires: R-CRAN-readr Requires: R-CRAN-readxl Requires: R-CRAN-rscopus Requires: R-CRAN-shiny Requires: R-CRAN-SnowballC Requires: R-CRAN-stringdist Requires: R-CRAN-stringi Requires: R-CRAN-tidyr Requires: R-CRAN-tidytext %description Tool for quantitative research in scientometrics and bibliometrics. It implements the comprehensive workflow for science mapping analysis proposed in Aria M. and Cuccurullo C. (2017) . 'bibliometrix' provides various routines for importing bibliographic data from 'SCOPUS', 'Clarivate Analytics Web of Science' (), 'Digital Science Dimensions' (), 'OpenAlex' (), 'Cochrane Library' (), 'Lens' (), and 'PubMed' () databases, performing bibliometric analysis and building networks for co-citation, coupling, scientific collaboration and co-word analysis. %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}