Blob Blame History Raw
%global packname RcppDate
%global packver  0.0.1
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          0.0.1
Release:          1%{?dist}
Summary:          'date' C++ Header Library for Date and Time Functionality

License:          GPLv2+
URL:    {packname}

# Here's the R view of the dependencies world:
# Depends:
# Imports:
# Suggests:  R-Rcpp
# LinkingTo:
# Enhances:

BuildArch:        noarch
BuildRequires:    R-devel
BuildRequires:    tex(latex)
BuildRequires:    R-Rcpp-devel

# This does not appear to be the same version as in Fedora, but I'm not sure
# what version exactly.
Provides:         bundled(date)

'date' is a C++ header library offering extensive date and time
functionality for the C++11, C++14 and C++17 standards written by Howard
Hinnant and released under the MIT license. A slightly modified version has
been accepted (along with 'tz.h') as part of C++20. This package regroups
all header files from the upstream repository by Howard Hinnant so that
other R packages can use them in their C++ code. At present, few of the
types have explicit 'Rcpp' wrapper though these may be added as needed.

%package devel
Summary:          Development files for %{name}
Requires:         %{name}%{?_isa} = %{version}-%{release}

%description devel
Development files for %{name}.

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


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

%{_bindir}/R CMD check %{packname}

%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html

%files devel

* Sat Aug 08 2020 Elliott Sales de Andrade <> - 0.0.1-1
- initial package for Fedora