1 %define fversion %(echo %{version} |tr r -)
2 %define modulename munsell
3 Summary: Munsell colour system
4 Name: R-cran-%{modulename}
8 Group: Applications/Math
9 Source0: ftp://stat.ethz.ch/R-CRAN/src/contrib/%{modulename}_%{fversion}.tar.gz
10 # Source0-md5: 45561402fe3ffb8e534a1487bb60d938
11 URL: http://cran.fhcrc.org/web/packages/munsell/index.html
12 BuildRequires: R >= 2.8.1
13 BuildRequires: R-cran-colorspace
14 Requires(post,postun): R >= 2.8.1
15 Requires(post,postun): perl-base
16 Requires(post,postun): textutils
18 Requires: R-cran-colorspace
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 Functions for exploring and using the Munsell colour system.
28 R CMD build %{modulename}
31 rm -rf $RPM_BUILD_ROOT
32 install -d $RPM_BUILD_ROOT%{_libdir}/R/library/
33 R CMD INSTALL %{modulename} --library=$RPM_BUILD_ROOT%{_libdir}/R/library/
36 rm -rf $RPM_BUILD_ROOT
39 %defattr(644,root,root,755)
40 %doc %{modulename}/DESCRIPTION
41 %{_libdir}/R/library/%{modulename}