File R-algaeClassify.spec of Package R-algaeClassify
# Automatically generated by CRAN2OBS
#
# Spec file for package algaeClassify
# This file is auto-generated using information in the package source,
# esp. Description and Summary. Improvements in that area should be
# discussed with upstream.
#
# Copyright (c) 2025 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%global packname algaeClassify
%global rlibdir %{_libdir}/R/library
Name: R-%{packname}
Version: 2.0.4
Release: 0
Summary: Tools to Query the 'Algaebase' Online Database, Standardize Phytoplankton Taxonomic Data, and Perform Functional Group Classifications
Group: Development/Libraries/Other
License: CC0
URL: http://cran.r-project.org/web/packages/%{packname}
Source: algaeClassify_2.0.4.tar.gz
Requires: R-base
Requires: R-lubridate
Requires: R-ritis
Requires: R-curl
Requires: R-jsonlite
Requires: R-RCurl
Requires: R-generics
Requires: R-timechange
Requires: R-bitops
Requires: R-solrium
Requires: R-crul
Requires: R-data.table
Requires: R-tibble
Requires: R-R6
Requires: R-urltools
Requires: R-httpcode
Requires: R-mime
Requires: R-dplyr
Requires: R-plyr
Requires: R-xml2
Requires: R-cli
Requires: R-lifecycle
Requires: R-magrittr
Requires: R-pillar
Requires: R-pkgconfig
Requires: R-rlang
Requires: R-vctrs
Requires: R-cpp11
Requires: R-glue
Requires: R-tidyselect
Requires: R-utf8
Requires: R-Rcpp
Requires: R-triebeard
Requires: R-withr
# %%if 0%%{?sle_version} > 120400 || 0%%{?is_opensuse}
# # Three others commonly needed
# BuildRequires: tex(ae.sty)
# BuildRequires: tex(fancyvrb.sty)
# BuildRequires: tex(inconsolata.sty)
# BuildRequires: tex(natbib.sty)
# %else
# BuildRequires: texlive
# %endif
# BuildRequires: texinfo
BuildRequires: fdupes
BuildRequires: R-base
BuildRequires: R-lubridate
BuildRequires: R-ritis
BuildRequires: R-curl
BuildRequires: R-jsonlite
BuildRequires: R-RCurl
BuildRequires: R-generics
BuildRequires: R-timechange
BuildRequires: R-bitops
BuildRequires: R-solrium
BuildRequires: R-crul
BuildRequires: R-data.table
BuildRequires: R-tibble
BuildRequires: R-R6
BuildRequires: R-urltools
BuildRequires: R-httpcode
BuildRequires: R-mime
BuildRequires: R-dplyr
BuildRequires: R-plyr
BuildRequires: R-xml2
BuildRequires: R-cli
BuildRequires: R-lifecycle
BuildRequires: R-magrittr
BuildRequires: R-pillar
BuildRequires: R-pkgconfig
BuildRequires: R-rlang
BuildRequires: R-vctrs
BuildRequires: R-cpp11-devel
BuildRequires: R-glue
BuildRequires: R-tidyselect
BuildRequires: R-utf8
BuildRequires: R-Rcpp-devel
BuildRequires: R-triebeard
BuildRequires: R-withr
%description
Functions that facilitate the use of accepted taxonomic nomenclature,
collection of functional trait data, and assignment of functional group
classifications to phytoplankton species. Possible classifications
include Morpho-functional group (MFG; Salmaso et al. 2015
<doi:10.1111/fwb.12520>) and CSR (Reynolds 1988; Functional morphology
and the adaptive strategies of phytoplankton. In C.D. Sandgren (ed).
Growth and reproductive strategies of freshwater phytoplankton,
388-433. Cambridge University Press, New York). Versions 2.0.0 and
later includes new functions for querying the 'algaebase' online
taxonomic database (www.algaebase.org), however these functions require
a valid API key that must be acquired from the 'algaebase'
administrators. Note that none of the 'algaeClassify' authors are
affiliated with 'algaebase' in any way. Taxonomic names can also be
checked against a variety of taxonomic databases using the 'Global
Names Resolver' service via its API
(<https://resolver.globalnames.org/api>). In addition, currently
accepted and outdated synonyms, and higher taxonomy, can be extracted
for lists of species from the 'ITIS' database using wrapper functions
for the ritis package. The 'algaeClassify' package is a product of the
GEISHA (Global Evaluation of the Impacts of Storms on freshwater
Habitat and Structure of phytoplankton Assemblages), funded by CESAB
(Centre for Synthesis and Analysis of Biodiversity) and the U.S.
Geological Survey John Wesley Powell Center for Synthesis and Analysis,
with data and other support provided by members of GLEON (Global Lake
Ecology Observation Network). DISCLAIMER: This software has been
approved for release by the U.S. Geological Survey (USGS). Although the
software has been subjected to rigorous review, the USGS reserves the
right to update the software as needed pursuant to further analysis and
review. No warranty, expressed or implied, is made by the USGS or the
U.S. Government as to the functionality of the software and related
material nor shall the fact of release constitute any such warranty.
Furthermore, the software is released on condition that neither the
USGS nor the U.S. Government shall be held liable for any damages
resulting from its authorized or unauthorized use.
%prep
%setup -q -c -n %{packname}
# the next line is needed, because we build without --clean in between two packages
rm -rf ~/.R
%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
%fdupes -s %{buildroot}%{rlibdir}
#%%check
#%%{_bindir}/R CMD check %%{packname}
%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/NAMESPACE
%doc %{rlibdir}/%{packname}/NEWS.md
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%doc %{rlibdir}/%{packname}/help
%doc %{rlibdir}/%{packname}/html
%changelog