Blob Blame Raw
%global packname  parsedate
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.2.0
Release:          1%{?dist}
Summary:          Recognize and Parse Dates in Various Formats

License:          GPLv2
URL:    {packname}

# Here's the R view of the dependencies world:
# Depends:
# Imports:   R-rematch2
# Suggests:  R-covr, R-testthat, R-withr
# LinkingTo:
# Enhances:

Requires:         R-rematch2
Suggests:         R-testthat
Suggests:         R-withr
BuildRequires:    R-devel
BuildRequires:    tex(latex)
BuildRequires:    R-rematch2
BuildRequires:    R-testthat
BuildRequires:    R-withr

Parse dates automatically, without the need of specifying a format.  Currently
it includes the git date parser. It can also recognize and parse all ISO 8601

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

# Don't need coverage; it's not packaged either.
sed -i 's/covr, //g' %{packname}/DESCRIPTION


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}/
%doc %{rlibdir}/%{packname}/README.Rmd
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/
%dir %{rlibdir}/%{packname}/libs

* Wed May 15 2019 Elliott Sales de Andrade <> - 1.2.0-1
- initial package for Fedora