diff --git a/R-RUnit-0.4.25-no-buildroot-path-in-html.patch b/R-RUnit-0.4.25-no-buildroot-path-in-html.patch new file mode 100644 index 0000000..e451776 --- /dev/null +++ b/R-RUnit-0.4.25-no-buildroot-path-in-html.patch @@ -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". + } + + diff --git a/R-RUnit.spec b/R-RUnit.spec new file mode 100644 index 0000000..9c19cf1 --- /dev/null +++ b/R-RUnit.spec @@ -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 - 0.4.32-1 +- Init package (Thanks to fedora team) diff --git a/RUnit_0.4.32.tar.gz b/RUnit_0.4.32.tar.gz new file mode 100644 index 0000000..a6a7443 Binary files /dev/null and b/RUnit_0.4.32.tar.gz differ