!1 Init package
From: @misaka00251 Reviewed-by: @laokz Signed-off-by: @laokz
This commit is contained in:
commit
e09b80fce6
55
R-R6.spec
Normal file
55
R-R6.spec
Normal file
@ -0,0 +1,55 @@
|
|||||||
|
%global packname R6
|
||||||
|
%global packver 2.5.1
|
||||||
|
|
||||||
|
%global __suggests_exclude ^R\\((pryr)\\)
|
||||||
|
|
||||||
|
Name: R-%{packname}
|
||||||
|
Version: %{packver}
|
||||||
|
Release: 1
|
||||||
|
Source0: ftp://cran.r-project.org/pub/R/contrib/main/%{packname}_%{packver}.tar.gz
|
||||||
|
License: MIT
|
||||||
|
URL: http://cran.r-project.org/web/packages/R6/index.html
|
||||||
|
Summary: Classes with Reference Semantics
|
||||||
|
BuildRequires: R-devel >= 3.0.0, tetex-latex
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description
|
||||||
|
The R6 package allows the creation of classes with reference semantics,
|
||||||
|
similar to R's built-in reference classes. Compared to reference classes,
|
||||||
|
R6 classes are simpler and lighter-weight, and they are not built on S4
|
||||||
|
classes so they do not require the methods package. These classes allow
|
||||||
|
public and private members, and they support inheritance, even when the
|
||||||
|
classes are defined in different packages.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -c -n %{packname}
|
||||||
|
|
||||||
|
%build
|
||||||
|
|
||||||
|
%install
|
||||||
|
mkdir -p $RPM_BUILD_ROOT%{_datadir}/R/library
|
||||||
|
%{_bindir}/R CMD INSTALL -l $RPM_BUILD_ROOT%{_datadir}/R/library %{packname}
|
||||||
|
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
|
||||||
|
rm -rf $RPM_BUILD_ROOT%{_datadir}/R/library/R.css
|
||||||
|
|
||||||
|
%check
|
||||||
|
# Missing deps so not this time
|
||||||
|
%if 0
|
||||||
|
%{_bindir}/R CMD check %%{packname}
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%files
|
||||||
|
%dir %{_datadir}/R/library/%{packname}
|
||||||
|
%doc %{_datadir}/R/library/%{packname}/LICENSE
|
||||||
|
%doc %{_datadir}/R/library/%{packname}/html
|
||||||
|
%doc %{_datadir}/R/library/%{packname}/NEWS.md
|
||||||
|
%{_datadir}/R/library/%{packname}/DESCRIPTION
|
||||||
|
%{_datadir}/R/library/%{packname}/INDEX
|
||||||
|
%{_datadir}/R/library/%{packname}/NAMESPACE
|
||||||
|
%{_datadir}/R/library/%{packname}/Meta
|
||||||
|
%{_datadir}/R/library/%{packname}/R
|
||||||
|
%{_datadir}/R/library/%{packname}/help
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Tue Jun 14 2022 misaka00251 <misaka00251@misakanet.cn> - 2.5.1-1
|
||||||
|
- Init package (Thanks to fedora team)
|
||||||
BIN
R6_2.5.1.tar.gz
Normal file
BIN
R6_2.5.1.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user