From 9622680ffe51c44e6810a6744ab7911510a3a5db Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Thu, 18 Oct 2012 13:04:25 +0200 Subject: [PATCH] - new --- R-cran-RColorBrewer.spec | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 R-cran-RColorBrewer.spec 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} -- 2.43.0