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