!1 Init package
From: @misaka00251 Reviewed-by: @laokz Signed-off-by: @laokz
This commit is contained in:
commit
28fd42a1ef
76
R-rprojroot.spec
Normal file
76
R-rprojroot.spec
Normal file
@ -0,0 +1,76 @@
|
|||||||
|
# Bootstrap
|
||||||
|
%bcond_without bootstrap
|
||||||
|
|
||||||
|
%global packname rprojroot
|
||||||
|
%global packver 2.0.2
|
||||||
|
%global rlibdir %{_datadir}/R/library
|
||||||
|
|
||||||
|
Name: R-%{packname}
|
||||||
|
Version: 2.0.2
|
||||||
|
Release: 1
|
||||||
|
Summary: Finding Files in Project Subdirectories
|
||||||
|
|
||||||
|
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)
|
||||||
|
%if %{without bootstrap}
|
||||||
|
BuildRequires: R-knitr
|
||||||
|
BuildRequires: R-lifecycle
|
||||||
|
BuildRequires: R-mockr
|
||||||
|
BuildRequires: R-rmarkdown
|
||||||
|
BuildRequires: R-testthat >= 3.0.0
|
||||||
|
BuildRequires: R-withr
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%description
|
||||||
|
Robust, reliable and flexible paths to files below a project root. The
|
||||||
|
'root' of a project is defined as a directory that matches a certain
|
||||||
|
criterion, e.g., it contains a certain regular file.
|
||||||
|
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -c -n %{packname}
|
||||||
|
sed -i 's/covr, //' %{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}
|
||||||
|
export NOT_CRAN=true
|
||||||
|
%{_bindir}/R CMD check %{packname}
|
||||||
|
%else
|
||||||
|
_R_CHECK_FORCE_SUGGESTS_=0 %{_bindir}/R CMD check %{packname} --no-tests
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
|
%files
|
||||||
|
%dir %{rlibdir}/%{packname}
|
||||||
|
%doc %{rlibdir}/%{packname}/doc
|
||||||
|
%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
|
||||||
|
%{rlibdir}/%{packname}/WORDLIST
|
||||||
|
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Wed Jun 15 2022 misaka00251 <misaka00251@misakanet.cn> - 2.0.2-1
|
||||||
|
- Init package (Thanks to fedora team)
|
||||||
BIN
rprojroot_2.0.2.tar.gz
Normal file
BIN
rprojroot_2.0.2.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user