!1 Init package
From: @misaka00251 Reviewed-by: @laokz Signed-off-by: @laokz
This commit is contained in:
commit
95f0e351cc
86
R-R.devices.spec
Normal file
86
R-R.devices.spec
Normal file
@ -0,0 +1,86 @@
|
||||
%global packname R.devices
|
||||
%global packver 2.17.0
|
||||
%global rlibdir %{_datadir}/R/library
|
||||
|
||||
# R.rsp dep loop
|
||||
%global with_loop 0
|
||||
|
||||
Name: R-%{packname}
|
||||
Version: 2.17.0
|
||||
Release: 1
|
||||
Summary: Unified Handling of Graphics Devices
|
||||
|
||||
License: LGPLv2+
|
||||
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-grDevices
|
||||
BuildRequires: R-R.methodsS3 >= 1.8.1
|
||||
BuildRequires: R-R.oo >= 1.24.0
|
||||
BuildRequires: R-R.utils >= 2.10.1
|
||||
BuildRequires: R-base64enc >= 0.1.2
|
||||
BuildRequires: R-digest >= 0.6.13
|
||||
BuildRequires: R-Cairo >= 1.5.9
|
||||
%if %{with_loop}
|
||||
BuildRequires: R-R.rsp
|
||||
%endif
|
||||
|
||||
%description
|
||||
Functions for creating plots and image files in a unified way regardless of
|
||||
output format (EPS, PDF, PNG, SVG, TIFF, WMF, etc.). Default device options
|
||||
as well as scales and aspect ratios are controlled in a uniform way across
|
||||
all device types. Switching output format requires minimal changes in code.
|
||||
This package is ideal for large-scale batch processing, because it will
|
||||
never leave open graphics devices or incomplete image files behind, even on
|
||||
errors or user interrupts.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -c -n %{packname}
|
||||
|
||||
for file in %{packname}/inst/doc/R.devices-overview.tex.rsp; do
|
||||
sed "s|\r||g" ${file} > ${file}.new
|
||||
touch -r ${file} ${file}.new
|
||||
mv ${file}.new ${file}
|
||||
done
|
||||
|
||||
|
||||
%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_loop}
|
||||
%{_bindir}/R CMD check %{packname}
|
||||
%else
|
||||
_R_CHECK_FORCE_SUGGESTS_=0 %{_bindir}/R CMD check %{packname} --ignore-vignettes
|
||||
%endif
|
||||
|
||||
|
||||
%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}/WORDLIST
|
||||
%{rlibdir}/%{packname}/exdata
|
||||
|
||||
|
||||
%changelog
|
||||
* Thu Jun 16 2022 misaka00251 <misaka00251@misakanet.cn> - 2.17.0-1
|
||||
- Init package (Thanks to fedora team)
|
||||
BIN
R.devices_2.17.0.tar.gz
Normal file
BIN
R.devices_2.17.0.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user