diff options
author | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2021-02-21 06:15:20 +0000 |
---|---|---|
committer | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2021-02-21 06:15:20 +0000 |
commit | 216452fcae29e227d6b48bd20ef33e18a48bac3b (patch) | |
tree | d50a175c32cd91c4e96aa9f0126560b6ded0527f | |
parent | 6489109d62d4f62dc5fe63b0e5f824cd06db8128 (diff) |
automatic import of R-CRAN-ritisf34
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | R-CRAN-ritis.spec | 58 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 60 insertions, 0 deletions
@@ -0,0 +1 @@ +/ritis_1.0.0.tar.gz diff --git a/R-CRAN-ritis.spec b/R-CRAN-ritis.spec new file mode 100644 index 0000000..b38d6d7 --- /dev/null +++ b/R-CRAN-ritis.spec @@ -0,0 +1,58 @@ +%global packname ritis +%global packver 1.0.0 +%global rlibdir /usr/local/lib/R/library + +Name: R-CRAN-%{packname} +Version: 1.0.0 +Release: 1%{?dist}%{?buildtag} +Summary: Integrated Taxonomic Information System Client + +License: MIT + file LICENSE +URL: https://cran.r-project.org/package=%{packname} +Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz + + +BuildRequires: R-devel +Requires: R-core +BuildArch: noarch +BuildRequires: R-CRAN-solrium >= 1.1.4 +BuildRequires: R-CRAN-crul >= 0.9.0 +BuildRequires: R-CRAN-jsonlite +BuildRequires: R-CRAN-data.table +BuildRequires: R-CRAN-tibble +Requires: R-CRAN-solrium >= 1.1.4 +Requires: R-CRAN-crul >= 0.9.0 +Requires: R-CRAN-jsonlite +Requires: R-CRAN-data.table +Requires: R-CRAN-tibble + +%description +An interface to the Integrated Taxonomic Information System ('ITIS') +(<https://www.itis.gov>). Includes functions to work with the 'ITIS' REST +API methods (<https://www.itis.gov/ws_description.html>), as well as the +'Solr' web service (<https://www.itis.gov/solr_documentation.html>). + +%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 +# 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} @@ -0,0 +1 @@ +aa35eb23a66b7a7ea0597b239740b65a ritis_1.0.0.tar.gz |