File R-readxl.spec of Package R-readxl

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


%global packname  readxl
%global rlibdir   %{_libdir}/R/library
Name:           R-%{packname}
Version:        1.3.1
Release:        0
Summary:        Read Excel Files
License:        GPL-3.0-only
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-Rcpp-devel
BuildRequires:  R-base-devel
BuildRequires:  R-cellranger
BuildRequires:  R-progress
BuildRequires:  R-tibble
BuildRequires:  R-utils
BuildRequires:  fdupes
BuildRequires:  gcc
BuildRequires:  gcc-c++
BuildRequires:  gcc-fortran
BuildRequires:  texinfo
BuildRequires:  texlive
Requires:       R-Rcpp
Requires:       R-base
Requires:       R-cellranger
Requires:       R-progress
Requires:       R-tibble
Requires:       R-utils

%description
Import excel files into R. Supports '.xls' via the embedded 'libxls' C
library <https://github.com/libxls/libxls> and '.xlsx' via the embedded
'RapidXML' C++ library <http://rapidxml.sourceforge.net>.  Works on
Windows, Mac and Linux without external dependencies.

%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
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/readxl/doc
%doc %{rlibdir}/readxl/html
%{rlibdir}/readxl/help
%{rlibdir}/readxl/libs
%{rlibdir}/readxl/Meta
%{rlibdir}/readxl/NEWS.md
%{rlibdir}/readxl/R
%{rlibdir}/readxl/DESCRIPTION
%{rlibdir}/readxl/NAMESPACE
%{rlibdir}/readxl/extdata
%{rlibdir}/readxl/INDEX

%changelog
openSUSE Build Service is sponsored by