File R-dbplyr.spec of Package R-dbplyr

#
# spec file for package R-dbplyr
#
# Copyright (c) 2020 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#


%global packname  dbplyr
%global rlibdir   %{_libdir}/R/library
Name:           R-%{packname}
Version:        1.4.4
Release:        0
Summary:        A 'dplyr' Back End for Databases
License:        MIT + file LICENSE
Group:          Development/Libraries/Other
URL:            http://cran.r-project.org/web/packages/%{packname}
Source:         http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
BuildRequires:  R-DBI >= 1.0.0
BuildRequires:  R-R6 >= 2.2.2
BuildRequires:  R-assertthat >= 0.2.0
BuildRequires:  R-base-devel
BuildRequires:  R-blob >= 1.2.0
BuildRequires:  R-dplyr >= 0.8.0
BuildRequires:  R-glue >= 1.2.0
BuildRequires:  R-lifecycle
BuildRequires:  R-magrittr
BuildRequires:  R-methods
BuildRequires:  R-purrr >= 0.2.5
BuildRequires:  R-rlang >= 0.2.0
BuildRequires:  R-tibble >= 1.4.2
BuildRequires:  R-tidyselect >= 0.2.4
BuildRequires:  R-utils
BuildRequires:  fdupes
BuildRequires:  texinfo
Requires:       R-DBI >= 1.0.0
Requires:       R-R6 >= 2.2.2
Requires:       R-assertthat >= 0.2.0
Requires:       R-base
Requires:       R-blob >= 1.2.0
Requires:       R-dplyr >= 0.8.0
Requires:       R-glue >= 1.2.0
Requires:       R-lifecycle
Requires:       R-magrittr
Requires:       R-methods
Requires:       R-purrr >= 0.2.5
Requires:       R-rlang >= 0.2.0
Requires:       R-tibble >= 1.4.2
Requires:       R-tidyselect >= 0.2.4
Requires:       R-utils
%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

%description
A 'dplyr' back end for databases that allows you to work with remote
database tables as if they are in-memory data frames. Basic features works
with any database that has a 'DBI' back end; more advanced features
require 'SQL' translation to be provided by the package author.

%prep
%setup -q -c -n %{packname}


%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}

rm -f %{buildroot}%{rlibdir}/R.css
%fdupes %{buildroot}%{rlibdir}/%{packname}


%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/dbplyr/doc
%doc %{rlibdir}/dbplyr/html
%{rlibdir}/dbplyr/help
%{rlibdir}/dbplyr/NEWS.md
%{rlibdir}/dbplyr/R
%{rlibdir}/dbplyr/INDEX
%{rlibdir}/dbplyr/LICENSE
%{rlibdir}/dbplyr/NAMESPACE
%{rlibdir}/dbplyr/DESCRIPTION
%{rlibdir}/dbplyr/Meta

%changelog
openSUSE Build Service is sponsored by