!1 Init package
From: @misaka00251 Reviewed-by: @laokz Signed-off-by: @laokz
This commit is contained in:
commit
89901e0bf5
75
R-waldo.spec
Normal file
75
R-waldo.spec
Normal file
@ -0,0 +1,75 @@
|
||||
# bootstrap
|
||||
%bcond_without bootstrap
|
||||
|
||||
%global packname waldo
|
||||
%global packver 0.2.5
|
||||
%global rlibdir %{_datadir}/R/library
|
||||
|
||||
Name: R-%{packname}
|
||||
Version: 0.2.5
|
||||
Release: 1
|
||||
Summary: Find Differences Between R Objects
|
||||
|
||||
License: MIT
|
||||
URL: https://CRAN.R-project.org/package=%{packname}
|
||||
Source0: https://cran.r-project.org/src/contrib/%{packname}_%{packver}.tar.gz
|
||||
|
||||
BuildArch: noarch
|
||||
BuildRequires: R-devel
|
||||
BuildRequires: tex(latex)
|
||||
BuildRequires: R-cli
|
||||
BuildRequires: R-diffobj
|
||||
BuildRequires: R-fansi
|
||||
BuildRequires: R-glue
|
||||
BuildRequires: R-methods
|
||||
BuildRequires: R-rematch2
|
||||
BuildRequires: R-rlang >= 0.4.10
|
||||
BuildRequires: R-tibble
|
||||
%if %{without bootstrap}
|
||||
BuildRequires: R-testthat >= 3.0.0
|
||||
BuildRequires: R-R6
|
||||
%endif
|
||||
|
||||
%description
|
||||
Compare complex R objects and reveal the key differences. Designed
|
||||
particularly for use in testing packages where being able to quickly
|
||||
isolate key differences makes understanding test failures much easier.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -c -n %{packname}
|
||||
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
|
||||
%if %{without bootstrap}
|
||||
%{_bindir}/R CMD check %{packname}
|
||||
%endif
|
||||
|
||||
|
||||
%files
|
||||
%dir %{rlibdir}/%{packname}
|
||||
%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
|
||||
|
||||
|
||||
%changelog
|
||||
* Tue Jun 14 2022 misaka00251 <misaka00251@misakanet.cn> - 0.2.5-1
|
||||
- Init package (Thanks to fedora team)
|
||||
BIN
waldo_0.2.5.tar.gz
Normal file
BIN
waldo_0.2.5.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user