]> git.pld-linux.org Git - packages/R.git/blame - R.spec
- raw version from RH contrib.
[packages/R.git] / R.spec
CommitLineData
5c7326d9 1Summary: A language for data analysis and graphics
2Name: R
3Version: 0.61.1
4Release: 3
5Source0: ftp.stat.math.ethz.ch:/R-CRAN/src/base/r-0_61_1.tgz
6Source1: ftp.stat.math.ethz.ch:/R-CRAN/src/contrib/mlbench_0.2-2.tar.gz
7Source2: ftp.stat.math.ethz.ch:/R-CRAN/src/contrib/acepack_1.0-2.tar.gz
8Source3: ftp.stat.math.ethz.ch:/R-CRAN/src/contrib/bootstrap_1.0-3.tar.gz
9Source4: ftp.stat.math.ethz.ch:/R-CRAN/src/contrib/class_VR5-4.tar.gz
10Source5: ftp.stat.math.ethz.ch:/R-CRAN/src/contrib/clus_1.0-2.tar.gz
11Source6: ftp.stat.math.ethz.ch:/R-CRAN/src/contrib/ctest_0.9-1.tar.gz
12Source7: ftp.stat.math.ethz.ch:/R-CRAN/src/contrib/date_1.0-3.tar.gz
13Source8: ftp.stat.math.ethz.ch:/R-CRAN/src/contrib/e1071_0.7-3.tar.gz
14Source9: ftp.stat.math.ethz.ch:/R-CRAN/src/contrib/fracdiff_1.0-2.tar.gz
15Source10: ftp.stat.math.ethz.ch:/R-CRAN/src/contrib/gee_3.13-2.tar.gz
16Source11: ftp.stat.math.ethz.ch:/R-CRAN/src/contrib/integrate_1.0-3.tar.gz
17Source12: ftp.stat.math.ethz.ch:/R-CRAN/src/contrib/jpn_1.0-1.tar.gz
18Source13: ftp.stat.math.ethz.ch:/R-CRAN/src/contrib/leaps_1.0-3.tar.gz
19Source14: ftp.stat.math.ethz.ch:/R-CRAN/src/contrib/nnet_VR5-3.tar.gz
20Source15: ftp.stat.math.ethz.ch:/R-CRAN/src/contrib/oz_1.0-1.tar.gz
21Source16: ftp.stat.math.ethz.ch:/R-CRAN/src/contrib/polynom_1.0-3.tar.gz
22Source17: ftp.stat.math.ethz.ch:/R-CRAN/src/contrib/ratetables_1.0-2.tar.gz
23Source18: ftp.stat.math.ethz.ch:/R-CRAN/src/contrib/rational_1.0-1.tar.gz
24Source19: ftp.stat.math.ethz.ch:/R-CRAN/src/contrib/spatial_VR5-2.tar.gz
25Source20: ftp.stat.math.ethz.ch:/R-CRAN/src/contrib/splines_2.0-1.tar.gz
26Source21: ftp.stat.math.ethz.ch:/R-CRAN/src/contrib/survival4_1.0-3.tar.gz
27Source22: ftp.stat.math.ethz.ch:/R-CRAN/src/contrib/xgobi_1.0-2.tar.gz
28Source23: ftp.stat.math.ethz.ch:/R-CRAN/src/contrib/principal.curve_1.0-2.tar.gz
29Source24: ftp.stat.math.ethz.ch:/R-CRAN/src/contrib/quadprog_1.0-2.tar.gz
30Patch0: R-0.61.rpm.patch3
31Copyright: gpl
32Group: Development/Languages
33Packager: Martyn Plummer <plummer@iarc.fr>
34URL: http://stat.auckland.ac.nz/r/r.html
35Provides: R-base R-contrib
36BuildRoot: /tmp/R
37
38%description
39A system for statistical computation and graphics. R consists of a
40language plus a run-time environment with graphics, a debugger, access
41to certain system functions, and the ability to run programs stored in
42script files.
43
44The design of R has been heavily influenced by two existing languages:
45Becker, Chambers & Wilks' S and Sussman's Scheme. Whereas the resulting
46language is very similar in appearance to S, the underlying implementation
47and semantics are derived from Scheme.
48
49%package base
50Summary: The R base distribution
51Group: Development/Languages
52Version: 0.61.1
53Conflicts: R-contrib < 1998.1.1
54Provides: R-acepack R-bootstrap R-class R-clus R-ctest R-date R-e1071
55Provides: R-fracdiff R-gee R-integrate R-jpn R-leaps R-mlbench R-nnet R-oz
56Provides: R-polynom R-principal.curve R-quadprog R-ratetables R-rational
57Provides: R-spatial R-splines R-survival4 R-xgobi
58
59%description base
60R is a language and run-time environment for carrying out interactive
61statistical data analysis. It is not entirely dissimilar to the S language
62developed at AT&T Bell Laboratories (and now Lucent Technologies). Indeed,
63S users will find the environment quite familiar and a good deal of S
64software will run without change under R.
65
66%package contrib
67Summary: contributed packages for the R language
68Group: Development/Languages
69Copyright: Mixed
70URL: http://www.ci.tuwien.ac.at/R/
71Version: 1998.01.22
72Release: 3
73Requires: R-base >= 0.60
74
75%description contrib
76Packages which extend the capabilities of the R base distribution
77and are distributed on the Comprehensive R Archive Network (CRAN).
78
79%package mlbench
80Summary: Machine learning benchmarks
81Group: Development/Languages
82Copyright: GPL
83URL: http://www.ics.uci.edu/~mlearn/MLRepository.html
84Version: 0.2.2
85Release: 3
86Requires: R-base >= 0.60
87
88%description mlbench
89R package which contains a collection of real-world datasets and
90functions for creating artificial datasets that work as benchmarks
91for 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
122rm ./doc/keyword-test.orig ./etc/undoc/R-funs.orig ./etc/undoc/extrExamp.orig
123
124%build
125
126make
127make help
128make html
129make clean
130make acclean
131
132# Install contrib packages
133#
134RHOME=`pwd`;export RHOME
135cd ../R-cran
136for pkg in `ls`
137do
138 ${RHOME}/etc/INSTALL -latex ${pkg}
139done
140cd ${RHOME}
141
142# Install mlbench
143#
144${RHOME}/etc/INSTALL mlbench
145
146#Remove old template files.
147#
148for oldinfile in `find . -name '*.in' -print`
149do
150 rm ${oldinfile}
151done
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#
157mkdir ${RHOME}/contrib
158cd ${RPM_BUILD_DIR}/R-cran
159for 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
175done
176cd ${RHOME}
177
178
179%install
180install -d ${RPM_BUILD_ROOT}/usr/man/man1
181install R.1 ${RPM_BUILD_ROOT}/usr/man/man1/
182install -d ${RPM_BUILD_ROOT}/usr/lib/R
183cp -R afm bin cmd demos doc etc html include library ${RPM_BUILD_ROOT}/usr/lib/R
184install -d ${RPM_BUILD_ROOT}/usr/bin
185install -m 755 bin/R ${RPM_BUILD_ROOT}/usr/bin/R
186
187%files base
188%attr(-,root,root) /usr/man/man1/R.1
189%attr(-,root,root) /usr/bin/R
190%attr(-,root,root) %dir /usr/lib/R
191%attr(-,root,root) /usr/lib/R/afm
192%attr(-,root,root) /usr/lib/R/bin
193%attr(-,root,root) /usr/lib/R/cmd
194%attr(-,root,root) /usr/lib/R/demos
195%attr(-,root,root) /usr/lib/R/etc
196%attr(-,root,root) /usr/lib/R/html
197%attr(-,root,root) /usr/lib/R/include
198%attr(-,root,root) %dir /usr/lib/R/library
199%attr(-,root,root) /usr/lib/R/library/base/
200%attr(-,root,root) /usr/lib/R/library/eda/
201%attr(-,root,root) /usr/lib/R/library/mva/
202%attr(-,root,root) /usr/lib/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) /usr/lib/R/library/acepack
207%attr(-,root,root) %doc acepack
208%attr(-,root,root) /usr/lib/R/library/bootstrap
209%attr(-,root,root) %doc bootstrap
210%attr(-,root,root) /usr/lib/R/library/class
211%attr(-,root,root) %doc class
212%attr(-,root,root) /usr/lib/R/library/clus
213%attr(-,root,root) %doc clus
214%attr(-,root,root) /usr/lib/R/library/ctest
215%attr(-,root,root) %doc ctest
216%attr(-,root,root) /usr/lib/R/library/date
217%attr(-,root,root) %doc date
218%attr(-,root,root) /usr/lib/R/library/e1071
219%attr(-,root,root) %doc e1071
220%attr(-,root,root) /usr/lib/R/library/fracdiff
221%attr(-,root,root) %doc fracdiff
222%attr(-,root,root) /usr/lib/R/library/gee
223%attr(-,root,root) %doc gee
224%attr(-,root,root) /usr/lib/R/library/integrate
225%attr(-,root,root) %doc integrate
226%attr(-,root,root) /usr/lib/R/library/jpn
227%attr(-,root,root) %doc jpn
228%attr(-,root,root) /usr/lib/R/library/leaps
229%attr(-,root,root) %doc leaps
230%attr(-,root,root) /usr/lib/R/library/nnet
231%attr(-,root,root) %doc nnet
232%attr(-,root,root) /usr/lib/R/library/oz
233%attr(-,root,root) %doc oz
234%attr(-,root,root) /usr/lib/R/library/polynom
235%attr(-,root,root) %doc polynom
236%attr(-,root,root) /usr/lib/R/library/ratetables
237%attr(-,root,root) %doc ratetables
238%attr(-,root,root) /usr/lib/R/library/rational
239%attr(-,root,root) %doc rational
240%attr(-,root,root) /usr/lib/R/library/spatial
241%attr(-,root,root) %doc spatial
242%attr(-,root,root) /usr/lib/R/library/splines
243%attr(-,root,root) %doc splines
244%attr(-,root,root) /usr/lib/R/library/survival4
245%attr(-,root,root) %doc survival4
246%attr(-,root,root) /usr/lib/R/library/xgobi
247%attr(-,root,root) %doc xgobi
248%attr(-,root,root) /usr/lib/R/library/principal.curve
249%attr(-,root,root) %doc principal.curve
250%attr(-,root,root) /usr/lib/R/library/quadprog
251%attr(-,root,root) %doc quadprog
252
253%files mlbench
254%attr(-,root,root) /usr/lib/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.
263rm -f ${RPM_BUILD_ROOT}/usr/man/man1/R.1
264rm -f ${RPM_BUILD_ROOT}/usr/bin/R
265rm -rf ${RPM_BUILD_ROOT}/usr/lib/R
266rm -rf ${RPM_BUILD_ROOT}/usr/doc/R-*
267
268%post base
269(cd /usr/lib/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#
275if [ "$1" = 0 ];
276then
277 rm -f /usr/lib/R/library/LibIndex
278 rm -f /usr/lib/R/library/index.html
279fi
280
281%post contrib
282(cd /usr/lib/R/library; cat */TITLE > LibIndex; ../etc/build-htmlpkglist)
283
284%postun contrib
285(cd /usr/lib/R/library; cat */TITLE > LibIndex; ../etc/build-htmlpkglist)
286
287%post mlbench
288(cd /usr/lib/R/library; cat */TITLE > LibIndex; ../etc/build-htmlpkglist)
289
290%postun mlbench
291(cd /usr/lib/R/library; cat */TITLE > LibIndex; ../etc/build-htmlpkglist)
This page took 0.108586 seconds and 4 git commands to generate.