1 %define fversion %(echo %{version} |tr r -)
2 %define modulename stringr
3 Summary: Make it easier to work with strings
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: 452628504e0910c1d0b1756370716f87
11 URL: http://cran.fhcrc.org/web/packages/stringr/index.html
12 BuildRequires: R >= 2.8.1
13 Requires(post,postun): R >= 2.8.1
14 Requires(post,postun): perl-base
15 Requires(post,postun): textutils
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 stringr is a set of simple wrappers that make R's string functions
21 more consistent, simpler and easier to use. It does this by ensuring
22 that: function and argument names (and positions) are consistent,
23 all functions deal with NA's and zero length character appropriately,
24 and the output data structures from each function matches the input
25 data structures of other functions.
31 R CMD build %{modulename}
34 rm -rf $RPM_BUILD_ROOT
35 install -d $RPM_BUILD_ROOT%{_libdir}/R/library/
36 R CMD INSTALL %{modulename} --library=$RPM_BUILD_ROOT%{_libdir}/R/library/
39 rm -rf $RPM_BUILD_ROOT
42 %defattr(644,root,root,755)
43 %doc %{modulename}/DESCRIPTION
44 %{_libdir}/R/library/%{modulename}