summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Rękorajski2013-11-29 11:23:58 (GMT)
committerJan Rękorajski2013-11-29 11:23:58 (GMT)
commita54af15fa1f4f1a3c978d183791828061fd56868 (patch)
tree7bd07a89a538dd750ddf3f073196d6c6e9334966
downloadR-cran-colorspace-a54af15fa1f4f1a3c978d183791828061fd56868.zip
R-cran-colorspace-a54af15fa1f4f1a3c978d183791828061fd56868.tar.gz
-rw-r--r--R-cran-colorspace.spec42
1 files changed, 42 insertions, 0 deletions
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}