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