]> git.pld-linux.org Git - packages/R-cran-stringr.git/blob - R-cran-stringr.spec
- new
[packages/R-cran-stringr.git] / R-cran-stringr.spec
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}
5 Version:        0.6.2
6 Release:        1
7 License:        MIT
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
16 Requires:       R
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
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.
26
27 %prep
28 %setup -q -c
29
30 %build
31 R CMD build %{modulename}
32
33 %install
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/
37
38 %clean
39 rm -rf $RPM_BUILD_ROOT
40
41 %files
42 %defattr(644,root,root,755)
43 %doc %{modulename}/DESCRIPTION
44 %{_libdir}/R/library/%{modulename}
This page took 0.045144 seconds and 3 git commands to generate.