72 lines
1.7 KiB
RPMSpec
72 lines
1.7 KiB
RPMSpec
%global packname lifecycle
|
|
%global packver 1.0.1
|
|
%global rlibdir %{_datadir}/R/library
|
|
|
|
%bcond_with check
|
|
|
|
Name: R-%{packname}
|
|
Version: 1.0.1
|
|
Release: 1
|
|
Summary: Manage the Life Cycle of your Package Functions
|
|
|
|
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-glue
|
|
BuildRequires: R-rlang >= 0.4.10
|
|
%if %{with check}
|
|
BuildRequires: R-crayon
|
|
BuildRequires: R-knitr
|
|
BuildRequires: R-rmarkdown
|
|
BuildRequires: R-testthat >= 3.0.1
|
|
BuildRequires: R-tibble
|
|
%endif
|
|
|
|
%description
|
|
Manage the life cycle of your exported functions with shared conventions,
|
|
documentation badges, and user-friendly deprecation warnings.
|
|
|
|
|
|
%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}
|
|
%{_bindir}/R CMD check %{packname}
|
|
%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
|
|
|
|
|
|
%changelog
|
|
* Tue Jun 14 2022 misaka00251 <misaka00251@misakanet.cn> - 1.0.1-1
|
|
- Init package (Thanks to fedora team)
|