R-chron/R-chron.spec

89 lines
2.2 KiB
RPMSpec
Raw Normal View History

2018-05-08 20:44:18 +00:00
%global packname chron
2018-09-11 04:03:57 +00:00
%global packvers 2.3-53
2018-05-08 20:44:18 +00:00
%global rlibdir %{_libdir}/R/library
# Dependency loops.
%global with_suggests 0
Name: R-%{packname}
2018-09-11 04:03:57 +00:00
Version: 2.3.53
Release: 1%{?dist}
2018-05-08 20:44:18 +00:00
Summary: Chronological Objects which can Handle Dates and Times
License: GPLv2
URL: https://cran.r-project.org/web/packages/%{packname}/index.html
Source0: https://cran.r-project.org/src/contrib/%{packname}_%{packvers}.tar.gz
# Here's the R view of the dependencies world:
# Depends:
# Imports: R-graphics, R-stats
# Suggests: R-scales, R-ggplot2
# LinkingTo:
# Enhances:
Requires: R-graphics
Requires: R-stats
Suggests: R-scales
Suggests: R-ggplot2
BuildRequires: R-devel
BuildRequires: tex(latex)
BuildRequires: R-graphics
BuildRequires: R-stats
%if %{with_suggests}
BuildRequires: R-scales
BuildRequires: R-ggplot2
%endif
%description
Provides chronological objects which can handle dates and times.
%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
%check
%if %{with_suggests}
%{_bindir}/R CMD check %{packname}
%else
_R_CHECK_FORCE_SUGGESTS_=0 %{_bindir}/R CMD check %{packname}
%endif
%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%doc %{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%dir %{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/libs/%{packname}.so
%changelog
2018-09-11 04:03:57 +00:00
* Mon Sep 10 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.3.53-1
- Update to latest version
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.52-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
2018-05-30 03:06:49 +00:00
* Tue May 29 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.3.52-2
- Rebuild for R 3.5.0
2018-05-08 20:44:18 +00:00
* Sun May 06 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.3.52-1
- initial package for Fedora