]>
Commit | Line | Data |
---|---|---|
a54af15f JR |
1 | %define fversion %(echo %{version} |tr r -) |
2 | %define modulename colorspace | |
3 | Summary: Color Space Manipulation | |
4 | Name: R-cran-%{modulename} | |
5 | Version: 1.2r4 | |
6 | Release: 1 | |
7 | License: BSD | |
8 | Group: Applications/Math | |
9 | Source0: ftp://stat.ethz.ch/R-CRAN/src/contrib/%{modulename}_%{fversion}.tar.gz | |
10 | # Source0-md5: 1f9a05587ffae27fc3e4da7503d016fc | |
11 | URL: http://cran.fhcrc.org/web/packages/colorspace/index.html | |
12 | BuildRequires: R >= 2.8.1 | |
13 | Requires(post,postun): R >= 2.8.1 | |
14 | Requires(post,postun): perl-base | |
15 | Requires(post,postun): textutils | |
16 | Requires: R | |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %description | |
20 | Carries out mapping between assorted color spaces including RGB, HSV, | |
21 | HLS, CIEXYZ, CIELUV, HCL (polar CIELUV), CIELAB and polar CIELAB. | |
22 | Qualitative, sequential, and diverging color palettes based on HCL | |
23 | colors are provided. | |
24 | ||
25 | %prep | |
26 | %setup -q -c | |
27 | ||
28 | %build | |
29 | R CMD build %{modulename} --no-build-vignettes | |
30 | ||
31 | %install | |
32 | rm -rf $RPM_BUILD_ROOT | |
33 | install -d $RPM_BUILD_ROOT%{_libdir}/R/library/ | |
34 | R CMD INSTALL %{modulename} --library=$RPM_BUILD_ROOT%{_libdir}/R/library/ | |
35 | ||
36 | %clean | |
37 | rm -rf $RPM_BUILD_ROOT | |
38 | ||
39 | %files | |
40 | %defattr(644,root,root,755) | |
41 | %doc %{modulename}/DESCRIPTION | |
42 | %{_libdir}/R/library/%{modulename} |