%global __brp_check_rpaths %{nil} %global packname urltools %global packver 1.7.3 %global rlibdir /usr/local/lib/R/library Name: R-CRAN-%{packname} Version: 1.7.3 Release: 3%{?dist}%{?buildtag} Summary: Vectorised Tools for URL Handling and Parsing 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 BuildRequires: R-CRAN-Rcpp BuildRequires: R-methods BuildRequires: R-CRAN-triebeard Requires: R-CRAN-Rcpp Requires: R-methods Requires: R-CRAN-triebeard %description A toolkit for all URL-handling needs, including encoding and decoding, parsing, parameter extraction and modification. All functions are designed to be both fast and entirely vectorised. It is intended to be useful for people dealing with web-related datasets, such as server-side logs, although may be useful for other situations involving large sets of URLs. %prep %setup -q -c -n %{packname} %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}