]>
Commit | Line | Data |
---|---|---|
8325eaaa JR |
1 | Summary: A language for data analysis and graphics |
2 | Name: R | |
3 | Version: 0.61.1 | |
4 | Release: 3 | |
5 | Source0: ftp://ftp.stat.math.ethz.ch/R-CRAN/src/base/r-0_61_1.tgz | |
6 | Source1: ftp://ftp.stat.math.ethz.ch/R-CRAN/src/contrib/mlbench_0.2-2.tar.gz | |
7 | Source2: ftp://ftp.stat.math.ethz.ch/R-CRAN/src/contrib/acepack_1.0-2.tar.gz | |
8 | Source3: ftp://ftp.stat.math.ethz.ch/R-CRAN/src/contrib/bootstrap_1.0-3.tar.gz | |
9 | Source4: ftp://ftp.stat.math.ethz.ch/R-CRAN/src/contrib/class_VR5-4.tar.gz | |
10 | Source5: ftp://ftp.stat.math.ethz.ch/R-CRAN/src/contrib/clus_1.0-2.tar.gz | |
11 | Source6: ftp://ftp.stat.math.ethz.ch/R-CRAN/src/contrib/ctest_0.9-1.tar.gz | |
12 | Source7: ftp://ftp.stat.math.ethz.ch/R-CRAN/src/contrib/date_1.0-3.tar.gz | |
13 | Source8: ftp://ftp.stat.math.ethz.ch/R-CRAN/src/contrib/e1071_0.7-3.tar.gz | |
14 | Source9: ftp://ftp.stat.math.ethz.ch/R-CRAN/src/contrib/fracdiff_1.0-2.tar.gz | |
15 | Source10: ftp://ftp.stat.math.ethz.ch/R-CRAN/src/contrib/gee_3.13-2.tar.gz | |
16 | Source11: ftp://ftp.stat.math.ethz.ch/R-CRAN/src/contrib/integrate_1.0-3.tar.gz | |
17 | Source12: ftp://ftp.stat.math.ethz.ch/R-CRAN/src/contrib/jpn_1.0-1.tar.gz | |
18 | Source13: ftp://ftp.stat.math.ethz.ch/R-CRAN/src/contrib/leaps_1.0-3.tar.gz | |
19 | Source14: ftp://ftp.stat.math.ethz.ch/R-CRAN/src/contrib/nnet_VR5-3.tar.gz | |
20 | Source15: ftp://ftp.stat.math.ethz.ch/R-CRAN/src/contrib/oz_1.0-1.tar.gz | |
21 | Source16: ftp://ftp.stat.math.ethz.ch/R-CRAN/src/contrib/polynom_1.0-3.tar.gz | |
22 | Source17: ftp://ftp.stat.math.ethz.ch/R-CRAN/src/contrib/ratetables_1.0-2.tar.gz | |
23 | Source18: ftp://ftp.stat.math.ethz.ch/R-CRAN/src/contrib/rational_1.0-1.tar.gz | |
24 | Source19: ftp://ftp.stat.math.ethz.ch/R-CRAN/src/contrib/spatial_VR5-2.tar.gz | |
25 | Source20: ftp://ftp.stat.math.ethz.ch/R-CRAN/src/contrib/splines_2.0-1.tar.gz | |
26 | Source21: ftp://ftp.stat.math.ethz.ch/R-CRAN/src/contrib/survival4_1.0-3.tar.gz | |
27 | Source22: ftp://ftp.stat.math.ethz.ch/R-CRAN/src/contrib/xgobi_1.0-2.tar.gz | |
28 | Source23: ftp://ftp.stat.math.ethz.ch/R-CRAN/src/contrib/principal.curve_1.0-2.tar.gz | |
29 | Source24: ftp://ftp.stat.math.ethz.ch/R-CRAN/src/contrib/quadprog_1.0-2.tar.gz | |
30 | Patch0: R-0.61.rpm.patch3 | |
31 | Copyright: GPL | |
32 | Group: Development/Languages | |
33 | URL: http://stat.auckland.ac.nz/r/r.html | |
34 | Provides: R-base R-contrib | |
f3ba7b8e | 35 | BuildRoot: /tmp/%{name}-%{version}-root |
5c7326d9 | 36 | |
37 | %description | |
38 | A system for statistical computation and graphics. R consists of a | |
39 | language plus a run-time environment with graphics, a debugger, access | |
40 | to certain system functions, and the ability to run programs stored in | |
41 | script files. | |
42 | ||
43 | The design of R has been heavily influenced by two existing languages: | |
44 | Becker, Chambers & Wilks' S and Sussman's Scheme. Whereas the resulting | |
45 | language is very similar in appearance to S, the underlying implementation | |
46 | and semantics are derived from Scheme. | |
47 | ||
48 | %package base | |
8325eaaa JR |
49 | Summary: The R base distribution |
50 | Group: Development/Languages | |
51 | Provides: R-acepack R-bootstrap R-class R-clus R-ctest R-date R-e1071 | |
52 | Provides: R-fracdiff R-gee R-integrate R-jpn R-leaps R-mlbench R-nnet R-oz | |
53 | Provides: R-polynom R-principal.curve R-quadprog R-ratetables R-rational | |
54 | Provides: R-spatial R-splines R-survival4 R-xgobi | |
5c7326d9 | 55 | |
56 | %description base | |
57 | R is a language and run-time environment for carrying out interactive | |
58 | statistical data analysis. It is not entirely dissimilar to the S language | |
59 | developed at AT&T Bell Laboratories (and now Lucent Technologies). Indeed, | |
60 | S users will find the environment quite familiar and a good deal of S | |
61 | software will run without change under R. | |
62 | ||
63 | %package contrib | |
8325eaaa JR |
64 | Summary: contributed packages for the R language |
65 | Group: Development/Languages | |
66 | Copyright: Mixed | |
67 | URL: http://www.ci.tuwien.ac.at/R/ | |
68 | Requires: R-base >= %{version} | |
5c7326d9 | 69 | |
70 | %description contrib | |
71 | Packages which extend the capabilities of the R base distribution | |
72 | and are distributed on the Comprehensive R Archive Network (CRAN). | |
73 | ||
74 | %package mlbench | |
8325eaaa JR |
75 | Summary: Machine learning benchmarks |
76 | Group: Development/Languages | |
77 | Copyright: GPL | |
78 | URL: http://www.ics.uci.edu/~mlearn/MLRepository.html | |
79 | Requires: R-base >= %{version} | |
5c7326d9 | 80 | |
81 | %description mlbench | |
82 | R package which contains a collection of real-world datasets and | |
83 | functions for creating artificial datasets that work as benchmarks | |
84 | for machine learning methods. | |
85 | ||
86 | %prep | |
8325eaaa JR |
87 | %setup -q -c -n R-cran -T -b 2 |
88 | %setup -q -c -n R-cran -T -D -b 3 | |
89 | %setup -q -c -n R-cran -T -D -b 4 | |
90 | %setup -q -c -n R-cran -T -D -b 5 | |
91 | %setup -q -c -n R-cran -T -D -b 6 | |
92 | %setup -q -c -n R-cran -T -D -b 7 | |
93 | %setup -q -c -n R-cran -T -D -b 8 | |
94 | %setup -q -c -n R-cran -T -D -b 9 | |
95 | %setup -q -c -n R-cran -T -D -b 10 | |
96 | %setup -q -c -n R-cran -T -D -b 11 | |
97 | %setup -q -c -n R-cran -T -D -b 12 | |
98 | %setup -q -c -n R-cran -T -D -b 13 | |
99 | %setup -q -c -n R-cran -T -D -b 14 | |
100 | %setup -q -c -n R-cran -T -D -b 15 | |
101 | %setup -q -c -n R-cran -T -D -b 16 | |
102 | %setup -q -c -n R-cran -T -D -b 17 | |
103 | %setup -q -c -n R-cran -T -D -b 18 | |
104 | %setup -q -c -n R-cran -T -D -b 19 | |
105 | %setup -q -c -n R-cran -T -D -b 20 | |
106 | %setup -q -c -n R-cran -T -D -b 21 | |
107 | %setup -q -c -n R-cran -T -D -b 22 | |
108 | %setup -q -c -n R-cran -T -D -b 23 | |
109 | %setup -q -c -n R-cran -T -D -b 24 | |
110 | %setup -q | |
111 | %setup -q -T -D -a 1 | |
5c7326d9 | 112 | %patch0 -p1 |
113 | # These files have the path for PERL hard-coded as /usr/local/bin/perl | |
114 | # We need to remove them to avoid dependency problems | |
115 | rm ./doc/keyword-test.orig ./etc/undoc/R-funs.orig ./etc/undoc/extrExamp.orig | |
116 | ||
117 | %build | |
5c7326d9 | 118 | make |
119 | make help | |
120 | make html | |
121 | make clean | |
122 | make acclean | |
123 | ||
124 | # Install contrib packages | |
125 | # | |
126 | RHOME=`pwd`;export RHOME | |
127 | cd ../R-cran | |
128 | for pkg in `ls` | |
129 | do | |
130 | ${RHOME}/etc/INSTALL -latex ${pkg} | |
131 | done | |
132 | cd ${RHOME} | |
133 | ||
134 | # Install mlbench | |
135 | # | |
136 | ${RHOME}/etc/INSTALL mlbench | |
137 | ||
138 | #Remove old template files. | |
139 | # | |
140 | for oldinfile in `find . -name '*.in' -print` | |
141 | do | |
142 | rm ${oldinfile} | |
143 | done | |
144 | ||
145 | # Gather documentation from contrib packages in one directory | |
146 | # Assume that anything not in one of the standard directories is | |
147 | # documentation, and copy it. | |
148 | # | |
149 | mkdir ${RHOME}/contrib | |
150 | cd ${RPM_BUILD_DIR}/R-cran | |
151 | for pkg in `ls`; do | |
152 | if [ -d ${pkg} ]; then | |
153 | mkdir ${RHOME}/${pkg} | |
154 | for docfile in `ls ${pkg}`; do | |
155 | case $docfile in | |
156 | INDEX) ;; | |
157 | TITLE) ;; | |
158 | R) ;; | |
159 | man) ;; | |
160 | src) ;; | |
161 | src-c) ;; | |
162 | data) ;; | |
163 | *) cp -R -P ${pkg}/${docfile} ${RHOME};; | |
164 | esac | |
165 | done | |
166 | fi | |
167 | done | |
168 | cd ${RHOME} | |
169 | ||
170 | ||
171 | %install | |
3ffc4e62 | 172 | install -d ${RPM_BUILD_ROOT}%{_mandir}/man1 |
173 | install R.1 ${RPM_BUILD_ROOT}%{_mandir}/man1/ | |
1d8caf0e | 174 | install -d ${RPM_BUILD_ROOT}%{_libdir}/R |
175 | cp -R afm bin cmd demos doc etc html include library ${RPM_BUILD_ROOT}%{_libdir}/R | |
16e7eb03 | 176 | install -d ${RPM_BUILD_ROOT}%{_bindir} |
177 | install -m 755 bin/R ${RPM_BUILD_ROOT}%{_bindir}/R | |
5c7326d9 | 178 | |
179 | %files base | |
8325eaaa | 180 | %defattr(644,root,root,755) |
3ffc4e62 | 181 | %attr(-,root,root) %{_mandir}/man1/R.1 |
16e7eb03 | 182 | %attr(-,root,root) %{_bindir}/R |
1d8caf0e | 183 | %attr(-,root,root) %dir %{_libdir}/R |
184 | %attr(-,root,root) %{_libdir}/R/afm | |
185 | %attr(-,root,root) %{_libdir}/R/bin | |
186 | %attr(-,root,root) %{_libdir}/R/cmd | |
187 | %attr(-,root,root) %{_libdir}/R/demos | |
188 | %attr(-,root,root) %{_libdir}/R/etc | |
189 | %attr(-,root,root) %{_libdir}/R/html | |
190 | %attr(-,root,root) %{_libdir}/R/include | |
191 | %attr(-,root,root) %dir %{_libdir}/R/library | |
192 | %attr(-,root,root) %{_libdir}/R/library/base/ | |
193 | %attr(-,root,root) %{_libdir}/R/library/eda/ | |
194 | %attr(-,root,root) %{_libdir}/R/library/mva/ | |
195 | %attr(-,root,root) %{_libdir}/R/library/stepfun/ | |
5c7326d9 | 196 | %attr(-,root,root) %doc CHANGES COPYING COPYRIGHTS MIRROR-SITES PROJECTS README RESOURCES TASKS |
197 | ||
198 | %files contrib | |
8325eaaa | 199 | %defattr(644,root,root,755) |
1d8caf0e | 200 | %attr(-,root,root) %{_libdir}/R/library/acepack |
5c7326d9 | 201 | %attr(-,root,root) %doc acepack |
1d8caf0e | 202 | %attr(-,root,root) %{_libdir}/R/library/bootstrap |
5c7326d9 | 203 | %attr(-,root,root) %doc bootstrap |
1d8caf0e | 204 | %attr(-,root,root) %{_libdir}/R/library/class |
5c7326d9 | 205 | %attr(-,root,root) %doc class |
1d8caf0e | 206 | %attr(-,root,root) %{_libdir}/R/library/clus |
5c7326d9 | 207 | %attr(-,root,root) %doc clus |
1d8caf0e | 208 | %attr(-,root,root) %{_libdir}/R/library/ctest |
5c7326d9 | 209 | %attr(-,root,root) %doc ctest |
1d8caf0e | 210 | %attr(-,root,root) %{_libdir}/R/library/date |
5c7326d9 | 211 | %attr(-,root,root) %doc date |
1d8caf0e | 212 | %attr(-,root,root) %{_libdir}/R/library/e1071 |
5c7326d9 | 213 | %attr(-,root,root) %doc e1071 |
1d8caf0e | 214 | %attr(-,root,root) %{_libdir}/R/library/fracdiff |
5c7326d9 | 215 | %attr(-,root,root) %doc fracdiff |
1d8caf0e | 216 | %attr(-,root,root) %{_libdir}/R/library/gee |
5c7326d9 | 217 | %attr(-,root,root) %doc gee |
1d8caf0e | 218 | %attr(-,root,root) %{_libdir}/R/library/integrate |
5c7326d9 | 219 | %attr(-,root,root) %doc integrate |
1d8caf0e | 220 | %attr(-,root,root) %{_libdir}/R/library/jpn |
5c7326d9 | 221 | %attr(-,root,root) %doc jpn |
1d8caf0e | 222 | %attr(-,root,root) %{_libdir}/R/library/leaps |
5c7326d9 | 223 | %attr(-,root,root) %doc leaps |
1d8caf0e | 224 | %attr(-,root,root) %{_libdir}/R/library/nnet |
5c7326d9 | 225 | %attr(-,root,root) %doc nnet |
1d8caf0e | 226 | %attr(-,root,root) %{_libdir}/R/library/oz |
5c7326d9 | 227 | %attr(-,root,root) %doc oz |
1d8caf0e | 228 | %attr(-,root,root) %{_libdir}/R/library/polynom |
5c7326d9 | 229 | %attr(-,root,root) %doc polynom |
1d8caf0e | 230 | %attr(-,root,root) %{_libdir}/R/library/ratetables |
5c7326d9 | 231 | %attr(-,root,root) %doc ratetables |
1d8caf0e | 232 | %attr(-,root,root) %{_libdir}/R/library/rational |
5c7326d9 | 233 | %attr(-,root,root) %doc rational |
1d8caf0e | 234 | %attr(-,root,root) %{_libdir}/R/library/spatial |
5c7326d9 | 235 | %attr(-,root,root) %doc spatial |
1d8caf0e | 236 | %attr(-,root,root) %{_libdir}/R/library/splines |
5c7326d9 | 237 | %attr(-,root,root) %doc splines |
1d8caf0e | 238 | %attr(-,root,root) %{_libdir}/R/library/survival4 |
5c7326d9 | 239 | %attr(-,root,root) %doc survival4 |
1d8caf0e | 240 | %attr(-,root,root) %{_libdir}/R/library/xgobi |
5c7326d9 | 241 | %attr(-,root,root) %doc xgobi |
1d8caf0e | 242 | %attr(-,root,root) %{_libdir}/R/library/principal.curve |
5c7326d9 | 243 | %attr(-,root,root) %doc principal.curve |
1d8caf0e | 244 | %attr(-,root,root) %{_libdir}/R/library/quadprog |
5c7326d9 | 245 | %attr(-,root,root) %doc quadprog |
246 | ||
247 | %files mlbench | |
8325eaaa | 248 | %defattr(644,root,root,755) |
1d8caf0e | 249 | %attr(-,root,root) %{_libdir}/R/library/mlbench |
5c7326d9 | 250 | %attr(-,root,root) %doc mlbench/COPYRIGHT |
251 | %attr(-,root,root) %doc mlbench/ChangeLog | |
252 | %attr(-,root,root) %doc mlbench/README | |
253 | ||
254 | %clean | |
8325eaaa | 255 | rm -rf ${RPM_BUILD_ROOT} |
5c7326d9 | 256 | |
257 | %post base | |
1d8caf0e | 258 | (cd %{_libdir}/R/library; cat */TITLE > LibIndex; ../etc/build-htmlpkglist) |
5c7326d9 | 259 | |
260 | %preun base | |
261 | # These files are not owned by any package, so we have to remove them | |
262 | # but only if this is the last version of R-base on the system. | |
263 | # | |
264 | if [ "$1" = 0 ]; | |
265 | then | |
1d8caf0e | 266 | rm -f %{_libdir}/R/library/LibIndex |
267 | rm -f %{_libdir}/R/library/index.html | |
5c7326d9 | 268 | fi |
269 | ||
270 | %post contrib | |
1d8caf0e | 271 | (cd %{_libdir}/R/library; cat */TITLE > LibIndex; ../etc/build-htmlpkglist) |
5c7326d9 | 272 | |
273 | %postun contrib | |
1d8caf0e | 274 | (cd %{_libdir}/R/library; cat */TITLE > LibIndex; ../etc/build-htmlpkglist) |
5c7326d9 | 275 | |
276 | %post mlbench | |
1d8caf0e | 277 | (cd %{_libdir}/R/library; cat */TITLE > LibIndex; ../etc/build-htmlpkglist) |
5c7326d9 | 278 | |
279 | %postun mlbench | |
1d8caf0e | 280 | (cd %{_libdir}/R/library; cat */TITLE > LibIndex; ../etc/build-htmlpkglist) |