]> git.pld-linux.org Git - packages/R-cran-digest.git/blob - R-cran-digest.spec
- new
[packages/R-cran-digest.git] / R-cran-digest.spec
1 %define         fversion        %(echo %{version} |tr r -)
2 %define         modulename      digest
3 Summary:        Create cryptographic hash digests of R objects
4 Name:           R-cran-%{modulename}
5 Version:        0.6.3
6 Release:        1
7 License:        GPL v2
8 Group:          Applications/Math
9 Source0:        ftp://stat.ethz.ch/R-CRAN/src/contrib/%{modulename}_%{fversion}.tar.gz
10 # Source0-md5:  d7913e8091a31885ee2ab798badd7958
11 URL:            http://cran.fhcrc.org/web/packages/digest/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 The digest package provides a function 'digest()' for the creation of
21 hash digests of arbitrary R objects (using the md5, sha-1, sha-256 and
22 crc32 algorithms) permitting easy comparison of R language objects,
23 as well as a function 'hmac()' to create hash-based message
24 authentication code.
25
26 %prep
27 %setup -q -c
28
29 %build
30 R CMD build %{modulename}
31
32 %install
33 rm -rf $RPM_BUILD_ROOT
34 install -d $RPM_BUILD_ROOT%{_libdir}/R/library/
35 R CMD INSTALL %{modulename} --library=$RPM_BUILD_ROOT%{_libdir}/R/library/
36
37 %clean
38 rm -rf $RPM_BUILD_ROOT
39
40 %files
41 %defattr(644,root,root,755)
42 %doc %{modulename}/DESCRIPTION
43 %{_libdir}/R/library/%{modulename}
This page took 0.062111 seconds and 3 git commands to generate.