From a54af15fa1f4f1a3c978d183791828061fd56868 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Fri, 29 Nov 2013 12:23:58 +0100 Subject: [PATCH 1/1] - new --- R-cran-colorspace.spec | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 R-cran-colorspace.spec diff --git a/R-cran-colorspace.spec b/R-cran-colorspace.spec new file mode 100644 index 0000000..930434d --- /dev/null +++ b/R-cran-colorspace.spec @@ -0,0 +1,42 @@ +%define fversion %(echo %{version} |tr r -) +%define modulename colorspace +Summary: Color Space Manipulation +Name: R-cran-%{modulename} +Version: 1.2r4 +Release: 1 +License: BSD +Group: Applications/Math +Source0: ftp://stat.ethz.ch/R-CRAN/src/contrib/%{modulename}_%{fversion}.tar.gz +# Source0-md5: 1f9a05587ffae27fc3e4da7503d016fc +URL: http://cran.fhcrc.org/web/packages/colorspace/index.html +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 +Carries out mapping between assorted color spaces including RGB, HSV, +HLS, CIEXYZ, CIELUV, HCL (polar CIELUV), CIELAB and polar CIELAB. +Qualitative, sequential, and diverging color palettes based on HCL +colors are provided. + +%prep +%setup -q -c + +%build +R CMD build %{modulename} --no-build-vignettes + +%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} -- 2.43.0