summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Rękorajski2012-10-18 11:04:25 (GMT)
committerJan Rękorajski2012-10-18 11:04:25 (GMT)
commit9622680ffe51c44e6810a6744ab7911510a3a5db (patch)
tree12cd71b9c95e9d63f8527854bf820e29d4bc1d66
downloadR-cran-RColorBrewer-9622680ffe51c44e6810a6744ab7911510a3a5db.zip
R-cran-RColorBrewer-9622680ffe51c44e6810a6744ab7911510a3a5db.tar.gz
-rw-r--r--R-cran-RColorBrewer.spec39
1 files changed, 39 insertions, 0 deletions
diff --git a/R-cran-RColorBrewer.spec b/R-cran-RColorBrewer.spec
new file mode 100644
index 0000000..5594ae0
--- /dev/null
+++ b/R-cran-RColorBrewer.spec
@@ -0,0 +1,39 @@
+%define fversion %(echo %{version} |tr r -)
+%define modulename RColorBrewer
+Summary: ColorBrewer palettes
+Name: R-cran-%{modulename}
+Version: 1.0r5
+Release: 1
+License: LGPL v2+
+Group: Applications/Math
+Source0: ftp://stat.ethz.ch/R-CRAN/src/contrib/%{modulename}_%{fversion}.tar.gz
+# Source0-md5: da52d639e105254e33346d5a39fa44d4
+BuildRequires: R >= 2.8.1
+Requires(post,postun): R >= 2.8.1
+Requires(post,postun): perl-base
+Requires(post,postun): textutils
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The packages provides palettes for drawing nice maps
+shaded according to a variable.
+
+%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}