Initial import (#1680254).

This commit is contained in:
Elliott Sales de Andrade 2019-02-24 15:52:35 -05:00
parent 0c5deaa7bf
commit 15d2b23ba0
3 changed files with 70 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/ellipsis_0.1.0.tar.gz

68
R-ellipsis.spec Normal file
View File

@ -0,0 +1,68 @@
%global packname ellipsis
%global rlibdir %{_libdir}/R/library
Name: R-%{packname}
Version: 0.1.0
Release: 1%{?dist}
Summary: Tools for Working with '...'
License: GPLv3
URL: https://CRAN.R-project.org/package=%{packname}
Source0: https://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
# Here's the R view of the dependencies world:
# Depends:
# Imports:
# Suggests: R-covr, R-testthat
# LinkingTo:
# Enhances:
BuildRequires: R-devel
BuildRequires: tex(latex)
BuildRequires: R-testthat
%description
In S3 generics, it's useful to take ... so that methods can have additional
argument. But this flexibility comes at a cost: misspelled arguments will be
silently ignored. The ellipsis packages is an experiment that allows a generic
to warn if any arguments passed in ... are not used.
%prep
%setup -q -c -n %{packname}
# Don't need coverage; it's not packaged either.
sed -i 's/covr, //g' %{packname}/DESCRIPTION
%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}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS.md
%{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
* Sat Feb 23 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.1.0-1
- initial package for Fedora

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (ellipsis_0.1.0.tar.gz) = 9c3276695ffb26d11a050f31276703f313f0d3b00c27889bd53d1cc13ff17296eafc2854ce3041a247612a50f6a4d5d98ab5b72ea51a707f6c4de0d2eb3b98ec