Init package

This commit is contained in:
misaka00251 2022-07-20 18:54:58 +08:00
parent 55fcdf6b37
commit 1391d91962
No known key found for this signature in database
GPG Key ID: 4AA100DC964EDE26
3 changed files with 78 additions and 0 deletions

View File

@ -0,0 +1,14 @@
diff -up RUnit/RUnit/man/checkFuncs.Rd.BAD RUnit/RUnit/man/checkFuncs.Rd
--- RUnit/RUnit/man/checkFuncs.Rd.BAD 2010-01-21 14:35:41.594307303 -0500
+++ RUnit/RUnit/man/checkFuncs.Rd 2010-01-21 14:36:11.952468805 -0500
@@ -117,9 +117,7 @@ DEACTIVATED(msg)
performed. This is an advise gained from the cumbersome experience:
not doing so leads to difficult to pin down error causes incurred
from previously executed test cases.
- For a simple example see the provided test cases in
- \Sexpr{file.path(system.file("examples", package="RUnit"),
- "runitVirtualClassTest.r")}.
+ For a simple example see the provided test cases in "runitVirtualClassTest.r".
}

64
R-RUnit.spec Normal file
View File

@ -0,0 +1,64 @@
%global packname RUnit
%global rlibdir %{_datadir}/R/library
Name: R-%{packname}
Version: 0.4.32
Release: 1
Summary: R Unit test framework
License: GPLv2
URL: https://CRAN.R-project.org/package=%{packname}
Source0: https://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
Patch0: R-RUnit-0.4.25-no-buildroot-path-in-html.patch
BuildArch: noarch
BuildRequires: R-devel
BuildRequires: tex(latex)
BuildRequires: R-utils >= 2.5.0
BuildRequires: R-methods >= 2.5.0
BuildRequires: R-graphics >= 2.5.0
BuildRequires: R-XML >= 3.1.0
%description
R functions implementing a standard Unit Testing framework, with additional
code inspection and report generation tools.
%prep
%setup -q -c -n %{packname}
%patch0 -p1 -b .no-buildroot-path-in-html
%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
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/examples
%{rlibdir}/%{packname}/share
%{rlibdir}/%{packname}/unitTests
%changelog
* Wed Jun 15 2022 misaka00251 <misaka00251@misakanet.cn> - 0.4.32-1
- Init package (Thanks to fedora team)

BIN
RUnit_0.4.32.tar.gz Normal file

Binary file not shown.