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