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

Name:             R-%{packname}
Version:          0.0.2
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)

A header-only C++ library is provided with support for dates, time zones,
ISO weeks, Julian dates, and Islamic dates. 'date' offers extensive date
and time functionality for the C++11, C++14 and C++17 standards and was
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' wrappers 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
%doc %{rlibdir}/%{packname}/NEWS.Rd

%files devel

* Sun Feb 07 2021 Elliott Sales de Andrade <> - 0.0.2-1
- Update to latest version (#1922418)

* Mon Jan 25 2021 Fedora Release Engineering <> - 0.0.1-3
- Rebuilt for

* Fri Aug 14 2020 Elliott Sales de Andrade <> - 0.0.1-2
- Rebuild to fix dist tag

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