1 %define fversion %(echo %{version} |tr r -)
2 %define modulename colorspace
3 Summary: Color Space Manipulation
4 Name: R-cran-%{modulename}
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
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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
29 R CMD build %{modulename} --no-build-vignettes
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/
37 rm -rf $RPM_BUILD_ROOT
40 %defattr(644,root,root,755)
41 %doc %{modulename}/DESCRIPTION
42 %{_libdir}/R/library/%{modulename}