Init package
This commit is contained in:
parent
9a4d6fc526
commit
080992bfa6
55
R-dichromat.spec
Normal file
55
R-dichromat.spec
Normal file
@ -0,0 +1,55 @@
|
||||
%global packname dichromat
|
||||
%global rlibdir %{_datadir}/R/library
|
||||
|
||||
|
||||
Name: R-%{packname}
|
||||
Version: 2.0.0
|
||||
Release: 1
|
||||
Summary: Color Schemes for Dichromats
|
||||
|
||||
License: GPLv2
|
||||
URL: https://CRAN.R-project.org/package=%{packname}
|
||||
Source0: https://cran.r-project.org/src/contrib/%{packname}_2.0-0.tar.gz
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: R-devel tex(latex) R-stats
|
||||
|
||||
%description
|
||||
Collapse red-green or green-blue distinctions to simulate the effects of
|
||||
different types of color-blindness.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -c -n %{packname}
|
||||
|
||||
|
||||
%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}/html
|
||||
%{rlibdir}/%{packname}/DESCRIPTION
|
||||
%{rlibdir}/%{packname}/INDEX
|
||||
%{rlibdir}/%{packname}/NAMESPACE
|
||||
%{rlibdir}/%{packname}/Meta
|
||||
%{rlibdir}/%{packname}/R
|
||||
%{rlibdir}/%{packname}/help
|
||||
%{rlibdir}/%{packname}/data
|
||||
|
||||
|
||||
%changelog
|
||||
* Thu Jun 16 2022 misaka00251 <misaka00251@misakanet.cn> - 2.0.0-1
|
||||
- Init package (Thanks to fedora team)
|
||||
BIN
dichromat_2.0-0.tar.gz
Normal file
BIN
dichromat_2.0-0.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user