From: Jan Rękorajski Date: Thu, 18 Oct 2012 11:04:25 +0000 (+0200) Subject: - new X-Git-Tag: auto/th/R-cran-RColorBrewer-1.0r5-1 X-Git-Url: http://git.pld-linux.org/?p=packages%2FR-cran-RColorBrewer.git;a=commitdiff_plain;h=9622680ffe51c44e6810a6744ab7911510a3a5db - new --- 9622680ffe51c44e6810a6744ab7911510a3a5db 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}