85 lines
2.3 KiB
RPMSpec
85 lines
2.3 KiB
RPMSpec
%global packname promises
|
|
%global rlibdir %{_libdir}/R/library
|
|
|
|
Name: R-%{packname}
|
|
Version: 1.0.1
|
|
Release: 1%{?dist}
|
|
Summary: Abstractions for Promise-Based Asynchronous Programming
|
|
|
|
License: MIT
|
|
URL: https://cran.r-project.org/web/packages/%{packname}/index.html
|
|
Source0: https://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
|
|
|
|
# Here's the R view of the dependencies world:
|
|
# Depends:
|
|
# Imports: R-R6, R-Rcpp, R-later, R-rlang, R-stats, R-magrittr
|
|
# Suggests: R-testthat, R-future, R-knitr, R-rmarkdown
|
|
# LinkingTo:
|
|
# Enhances:
|
|
|
|
Requires: R-R6
|
|
Requires: R-Rcpp
|
|
Requires: R-later
|
|
Requires: R-rlang
|
|
Requires: R-stats
|
|
Requires: R-magrittr
|
|
Suggests: R-future
|
|
BuildRequires: R-devel
|
|
BuildRequires: tex(latex)
|
|
BuildRequires: R-R6
|
|
BuildRequires: R-Rcpp-devel
|
|
BuildRequires: R-later-devel
|
|
BuildRequires: R-rlang
|
|
BuildRequires: R-stats
|
|
BuildRequires: R-magrittr
|
|
BuildRequires: R-testthat
|
|
BuildRequires: R-future
|
|
BuildRequires: R-knitr
|
|
BuildRequires: R-rmarkdown
|
|
|
|
%description
|
|
Provides fundamental abstractions for doing asynchronous programming in R using
|
|
promises. Asynchronous programming is useful for allowing a single R process to
|
|
orchestrate multiple tasks in the background while also attending to something
|
|
else. Semantics are similar to 'JavaScript' promises, but with a syntax that is
|
|
idiomatic R.
|
|
|
|
|
|
%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
|
|
%{_bindir}/R CMD check %{packname}
|
|
|
|
|
|
%files
|
|
%dir %{rlibdir}/%{packname}
|
|
%doc %{rlibdir}/%{packname}/doc
|
|
%doc %{rlibdir}/%{packname}/html
|
|
%{rlibdir}/%{packname}/DESCRIPTION
|
|
%doc %{rlibdir}/%{packname}/NEWS.md
|
|
%license %{rlibdir}/%{packname}/LICENSE
|
|
%{rlibdir}/%{packname}/INDEX
|
|
%{rlibdir}/%{packname}/NAMESPACE
|
|
%{rlibdir}/%{packname}/Meta
|
|
%{rlibdir}/%{packname}/R
|
|
%{rlibdir}/%{packname}/help
|
|
%dir %{rlibdir}/%{packname}/libs
|
|
%{rlibdir}/%{packname}/libs/%{packname}.so
|
|
|
|
|
|
%changelog
|
|
* Thu Apr 26 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.0.1-1
|
|
- initial package for Fedora
|