]> git.pld-linux.org Git - packages/R.git/blob - R.spec
- changed all BuildRoot definitons
[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://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
35 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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
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
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
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}
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
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}
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
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
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
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 %install
171 install -d ${RPM_BUILD_ROOT}%{_mandir}/man1
172 install R.1 ${RPM_BUILD_ROOT}%{_mandir}/man1/
173 install -d ${RPM_BUILD_ROOT}%{_libdir}/R
174 cp -R afm bin cmd demos doc etc html include library ${RPM_BUILD_ROOT}%{_libdir}/R
175 install -d ${RPM_BUILD_ROOT}%{_bindir}
176 install -m 755 bin/R ${RPM_BUILD_ROOT}%{_bindir}/R
177
178 %files base
179 %defattr(644,root,root,755)
180 %attr(-,root,root) %{_mandir}/man1/R.1
181 %attr(-,root,root) %{_bindir}/R
182 %attr(-,root,root) %dir %{_libdir}/R
183 %attr(-,root,root) %{_libdir}/R/afm
184 %attr(-,root,root) %{_libdir}/R/bin
185 %attr(-,root,root) %{_libdir}/R/cmd
186 %attr(-,root,root) %{_libdir}/R/demos
187 %attr(-,root,root) %{_libdir}/R/etc
188 %attr(-,root,root) %{_libdir}/R/html
189 %attr(-,root,root) %{_libdir}/R/include
190 %attr(-,root,root) %dir %{_libdir}/R/library
191 %attr(-,root,root) %{_libdir}/R/library/base/
192 %attr(-,root,root) %{_libdir}/R/library/eda/
193 %attr(-,root,root) %{_libdir}/R/library/mva/
194 %attr(-,root,root) %{_libdir}/R/library/stepfun/
195 %attr(-,root,root) %doc CHANGES COPYING COPYRIGHTS MIRROR-SITES PROJECTS README RESOURCES TASKS
196
197 %files contrib
198 %defattr(644,root,root,755)
199 %attr(-,root,root) %{_libdir}/R/library/acepack
200 %attr(-,root,root) %doc acepack
201 %attr(-,root,root) %{_libdir}/R/library/bootstrap
202 %attr(-,root,root) %doc bootstrap
203 %attr(-,root,root) %{_libdir}/R/library/class
204 %attr(-,root,root) %doc class
205 %attr(-,root,root) %{_libdir}/R/library/clus
206 %attr(-,root,root) %doc clus
207 %attr(-,root,root) %{_libdir}/R/library/ctest
208 %attr(-,root,root) %doc ctest
209 %attr(-,root,root) %{_libdir}/R/library/date
210 %attr(-,root,root) %doc date
211 %attr(-,root,root) %{_libdir}/R/library/e1071
212 %attr(-,root,root) %doc e1071
213 %attr(-,root,root) %{_libdir}/R/library/fracdiff
214 %attr(-,root,root) %doc fracdiff
215 %attr(-,root,root) %{_libdir}/R/library/gee
216 %attr(-,root,root) %doc gee
217 %attr(-,root,root) %{_libdir}/R/library/integrate
218 %attr(-,root,root) %doc integrate
219 %attr(-,root,root) %{_libdir}/R/library/jpn
220 %attr(-,root,root) %doc jpn
221 %attr(-,root,root) %{_libdir}/R/library/leaps
222 %attr(-,root,root) %doc leaps
223 %attr(-,root,root) %{_libdir}/R/library/nnet
224 %attr(-,root,root) %doc nnet
225 %attr(-,root,root) %{_libdir}/R/library/oz
226 %attr(-,root,root) %doc oz
227 %attr(-,root,root) %{_libdir}/R/library/polynom
228 %attr(-,root,root) %doc polynom
229 %attr(-,root,root) %{_libdir}/R/library/ratetables
230 %attr(-,root,root) %doc ratetables
231 %attr(-,root,root) %{_libdir}/R/library/rational
232 %attr(-,root,root) %doc rational
233 %attr(-,root,root) %{_libdir}/R/library/spatial
234 %attr(-,root,root) %doc spatial
235 %attr(-,root,root) %{_libdir}/R/library/splines
236 %attr(-,root,root) %doc splines
237 %attr(-,root,root) %{_libdir}/R/library/survival4
238 %attr(-,root,root) %doc survival4
239 %attr(-,root,root) %{_libdir}/R/library/xgobi
240 %attr(-,root,root) %doc xgobi
241 %attr(-,root,root) %{_libdir}/R/library/principal.curve
242 %attr(-,root,root) %doc principal.curve
243 %attr(-,root,root) %{_libdir}/R/library/quadprog
244 %attr(-,root,root) %doc quadprog
245
246 %files mlbench
247 %defattr(644,root,root,755)
248 %attr(-,root,root) %{_libdir}/R/library/mlbench
249 %attr(-,root,root) %doc mlbench/COPYRIGHT
250 %attr(-,root,root) %doc mlbench/ChangeLog
251 %attr(-,root,root) %doc mlbench/README
252
253 %clean
254 rm -rf ${RPM_BUILD_ROOT}
255
256 %post base
257 (cd %{_libdir}/R/library; cat */TITLE > LibIndex; ../etc/build-htmlpkglist)
258
259 %preun base
260 # These files are not owned by any package, so we have to remove them
261 # but only if this is the last version of R-base on the system.
262 #
263 if [ "$1" = 0 ];
264 then
265         rm -f %{_libdir}/R/library/LibIndex
266         rm -f %{_libdir}/R/library/index.html
267 fi
268
269 %post contrib
270 (cd %{_libdir}/R/library; cat */TITLE > LibIndex; ../etc/build-htmlpkglist)
271
272 %postun contrib
273 (cd %{_libdir}/R/library; cat */TITLE > LibIndex; ../etc/build-htmlpkglist)
274
275 %post mlbench
276 (cd %{_libdir}/R/library; cat */TITLE > LibIndex; ../etc/build-htmlpkglist)
277
278 %postun mlbench
279 (cd %{_libdir}/R/library; cat */TITLE > LibIndex; ../etc/build-htmlpkglist)
This page took 0.075933 seconds and 4 git commands to generate.