[packages/R-cran-digest] - new

baggins baggins at pld-linux.org
Fri Nov 29 13:00:10 CET 2013


commit 1e6664556cc940b7c37adc5a9ec391d91bd1ba2c
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Fri Nov 29 12:59:55 2013 +0100

    - new

 R-cran-digest.spec | 43 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)
---
diff --git a/R-cran-digest.spec b/R-cran-digest.spec
new file mode 100644
index 0000000..9994ad1
--- /dev/null
+++ b/R-cran-digest.spec
@@ -0,0 +1,43 @@
+%define		fversion	%(echo %{version} |tr r -)
+%define		modulename	digest
+Summary:	Create cryptographic hash digests of R objects
+Name:		R-cran-%{modulename}
+Version:	0.6.3
+Release:	1
+License:	GPL v2
+Group:		Applications/Math
+Source0:	ftp://stat.ethz.ch/R-CRAN/src/contrib/%{modulename}_%{fversion}.tar.gz
+# Source0-md5:	d7913e8091a31885ee2ab798badd7958
+URL:		http://cran.fhcrc.org/web/packages/digest/index.html
+BuildRequires:	R >= 2.8.1
+Requires(post,postun):	R >= 2.8.1
+Requires(post,postun):	perl-base
+Requires(post,postun):	textutils
+Requires:	R
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The digest package provides a function 'digest()' for the creation of
+hash digests of arbitrary R objects (using the md5, sha-1, sha-256 and
+crc32 algorithms) permitting easy comparison of R language objects,
+as well as a function 'hmac()' to create hash-based message
+authentication code.
+
+%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}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/R-cran-digest.git/commitdiff/1e6664556cc940b7c37adc5a9ec391d91bd1ba2c



More information about the pld-cvs-commit mailing list