blob: 34f995d833df6f4cc48dba4614ff96bead7d2a27 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
%define fversion %(echo %{version} |tr r -)
%define modulename dichromat
Summary: Color Schemes for Dichromats
Name: R-cran-%{modulename}
Version: 2.0r0
Release: 1
License: GPL v2
Group: Applications/Math
Source0: ftp://stat.ethz.ch/R-CRAN/src/contrib/%{modulename}_%{fversion}.tar.gz
# Source0-md5: 84e194ac95a69763d740947a7ee346a6
URL: http://socserv.socsci.mcmaster.ca/jfox/
BuildRequires: R >= 2.8.1
Requires(post,postun): R >= 2.8.1
Requires(post,postun): perl-base
Requires(post,postun): textutils
Requires: R
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
Collapse red-green or green-blue distinctions to simulate the effects
of different types of color-blindness.
%prep
%setup -q -c
%build
R CMD build %{modulename}
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_libdir}/R/library/
R CMD INSTALL %{modulename} --library=$RPM_BUILD_ROOT%{_libdir}/R/library/
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc %{modulename}/DESCRIPTION
%{_libdir}/R/library/%{modulename}
|