%global __brp_check_rpaths %{nil} %global packname concordance %global packver 2.0.0 %global rlibdir /usr/local/lib/R/library Name: R-CRAN-%{packname} Version: 2.0.0 Release: 3%{?dist}%{?buildtag} Summary: Product Concordance License: GPL-2 URL: https://cran.r-project.org/package=%{packname} Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz BuildRequires: R-devel >= 3.6.0 Requires: R-core >= 3.6.0 BuildArch: noarch BuildRequires: R-CRAN-tibble >= 3.0.0 BuildRequires: R-CRAN-stringr >= 1.4.0 BuildRequires: R-CRAN-tidyr >= 1.0.2 BuildRequires: R-CRAN-dplyr >= 0.8.5 BuildRequires: R-CRAN-rlang >= 0.4.5 BuildRequires: R-CRAN-purrr >= 0.3.3 Requires: R-CRAN-tibble >= 3.0.0 Requires: R-CRAN-stringr >= 1.4.0 Requires: R-CRAN-tidyr >= 1.0.2 Requires: R-CRAN-dplyr >= 0.8.5 Requires: R-CRAN-rlang >= 0.4.5 Requires: R-CRAN-purrr >= 0.3.3 %description A set of utilities for matching products in different classification codes used in international trade research. It supports concordance between the Harmonized System (HS0, HS1, HS2, HS3, HS4, HS5, HS combined), the Standard International Trade Classification (SITC1, SITC2, SITC3, SITC4), the North American Industry Classification System (NAICS combined), as well as the Broad Economic Categories (BEC), the International Standard of Industrial Classification (ISIC), and the Standard Industrial Classification (SIC). It also provides code nomenclature/descriptions look-up, Rauch classification look-up (via concordance to SITC2), and trade elasticity look-up (via concordance to HS0 or SITC3 codes). %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}