!1 Init package
From: @misaka00251 Reviewed-by: @laokz Signed-off-by: @laokz
This commit is contained in:
commit
f59a1532b2
75
R-pkgbuild.spec
Normal file
75
R-pkgbuild.spec
Normal file
@ -0,0 +1,75 @@
|
||||
%bcond_with check
|
||||
|
||||
%global packname pkgbuild
|
||||
%global packver 1.2.0
|
||||
%global rlibdir %{_datadir}/R/library
|
||||
|
||||
Name: R-%{packname}
|
||||
Version: 1.2.0
|
||||
Release: 1
|
||||
Summary: Find Tools Needed to Build R Packages
|
||||
|
||||
License: GPLv3
|
||||
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-callr >= 3.2.0
|
||||
BuildRequires: R-cli
|
||||
BuildRequires: R-crayon
|
||||
BuildRequires: R-desc
|
||||
BuildRequires: R-prettyunits
|
||||
BuildRequires: R-R6
|
||||
BuildRequires: R-rprojroot
|
||||
BuildRequires: R-withr >= 2.1.2
|
||||
%if %{with check}
|
||||
BuildRequires: R-Rcpp
|
||||
BuildRequires: R-cpp11
|
||||
BuildRequires: R-testthat
|
||||
%endif
|
||||
|
||||
%description
|
||||
Provides functions used to build R packages. Locates compilers needed to
|
||||
build R packages on various platforms and ensures the PATH is configured
|
||||
appropriately so R can use them.
|
||||
|
||||
|
||||
%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 %{with check}
|
||||
NOT_CRAN=true %{_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
|
||||
* Wed Jun 15 2022 misaka00251 <misaka00251@misakanet.cn> - 1.2.0-1
|
||||
- Init package (Thanks to fedora team)
|
||||
BIN
pkgbuild_1.2.0.tar.gz
Normal file
BIN
pkgbuild_1.2.0.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user