-
Notifications
You must be signed in to change notification settings - Fork 1
/
R-rlecuyer.spec
58 lines (43 loc) · 1.51 KB
/
R-rlecuyer.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
%global packname rlecuyer
%global rlibdir %{_libdir}/R/library
Name: R-%{packname}
Version: 0.3.1
Release: 1%{?dist}
Summary: R interface to rng with multiple streams
Group: Applications/Engineering
License: GPLv2+
URL: http://cran.r-project.org/web/packages/rlecuyer/index.html
Source0: http://cran.r-project.org/src/contrib/rlecuyer_0.3-1.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: R-devel tex(latex)
%description
Provides an interface to the C implementation of the random number
generator with multiple independent streams developed by L'Ecuyer et al
(2002). The main purpose of this package is to enable the use of this
random number generator in parallel R applications.
%prep
%setup -q -c -n %{packname}
%build
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css
%check
%{_bindir}/R CMD check %{packname}
%clean
rm -rf %{buildroot}
%files
%defattr(-, root, root, -)
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs
%changelog
* Mon Oct 24 2011 Adam Huffman <bloch@verdurin.com> 0.3.1-1
- initial package for Fedora