File R-RcppArmadillo.spec of Package R-RcppArmadillo
#
# spec file for package R-RcppArmadillo
#
# 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 RcppArmadillo
%global rlibdir %{_libdir}/R/library
Name: R-%{packname}
Version: 0.9.900.2.0
Release: 0
Summary: Rcpp integration for Armadillo templated linear algebra library
License: GPL-2.0-or-later
Group: Development/Libraries/Other
URL: http://cran.r-project.org/web/packages/%{packname}/index.html
Source: http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
BuildRequires: R-RUnit
BuildRequires: R-Rcpp-devel
BuildRequires: R-pkgKitten
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: gcc-fortran
BuildRequires: texinfo
%if 0%{?sle_version} > 120400 || 0%{?is_opensuse}
BuildRequires: tex(ae.sty)
BuildRequires: tex(inconsolata.sty)
%else
BuildRequires: texlive
%endif
Requires: R-Rcpp
%description
R and Armadillo integration using Rcpp Armadillo is a templated C++ linear
algebra library (by Conrad Sanderson) that aims towards a good balance
between speed and ease of use. Integer, floating point and complex numbers
are supported, as well as a subset of trigonometric and statistics
functions. Various matrix decompositions are provided through optional
integration with LAPACK and ATLAS libraries. . A delayed evaluation
approach is employed (during compile time) to combine several operations
into one, and to reduce (or eliminate) the need for temporaries. This is
accomplished through recursive templates and template meta-programming. .
This library is useful if C++ has been decided as the language of choice
(due to speed and/or integration capabilities), rather than another
language. The RcppArmadillo package includes the header files from the
templated Armadillo library. This Armadillo integration
provides a nice illustration of the capabilities of the Rcpp package for
seamless R and C++ integration.
%package devel
Summary: Development files for %{name}
Group: Development/Libraries/Other
Requires: %{name} = %{version}
Requires: R-Rcpp-devel
%description devel
Development files and headers needed to build software using %{name}.
%package doc
Summary: Documentation for %{name}
Group: Documentation/Other
Requires: %{name} = %{version}
%description doc
Documentation, help files, and examples for %{name}.
%prep
%setup -q -c -n %{packname}
#sed -i '1{/^#!/d}' %{packname}/inst/unitTests/*.* %{packname}/inst/unitTests/*/*.*
%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 %{buildroot}%{rlibdir}/%{packname}
%check
export LANG=en_US.UTF-8
export _R_CHECK_FORCE_SUGGESTS_=false
%{_bindir}/R CMD check %{packname} --ignore-vignettes
%files
%dir %{rlibdir}/%{packname}
%license %{rlibdir}/%{packname}/CITATION
%license %{rlibdir}/%{packname}/AUTHORS
%license %{rlibdir}/%{packname}/COPYRIGHTS
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs
%files devel
%{rlibdir}/%{packname}/include
%{rlibdir}/%{packname}/skeleton
%{rlibdir}/%{packname}/tinytest
%files doc
%doc %{rlibdir}/%{packname}/announce
%doc %{rlibdir}/%{packname}/doc/
%doc %{rlibdir}/%{packname}/examples/
%doc %{rlibdir}/%{packname}/html/
%doc %{rlibdir}/%{packname}/NEWS.Rd
%changelog