]> git.pld-linux.org Git - packages/R.git/blob - R.spec
eb38c33219a912a47ca9fbc74e16a8a541aa3249
[packages/R.git] / R.spec
1 #
2 # Conditional build:
3 # _without_gnome        - without gnome support
4 #
5 Summary:        A language for data analysis and graphics
6 Summary(pl):    Jêzyk do analizy danych oraz grafiki
7 Name:           R
8 Version:        1.5.0
9 Release:        2
10 Source0:        ftp://stat.ethz.ch/R-CRAN/src/base/%{name}-%{version}.tgz
11 Source1:        ftp://stat.ethz.ch/R-CRAN/src/contrib/KernSmooth_2.22-7.tar.gz
12 Source2:        ftp://stat.ethz.ch/R-CRAN/src/contrib/VR_7.0-1.tar.gz
13 Source3:        ftp://stat.ethz.ch/R-CRAN/src/contrib/acepack_1.3.tar.gz
14 Source4:        ftp://stat.ethz.ch/R-CRAN/src/contrib/boot_1.2-8.tar.gz
15 Source5:        ftp://stat.ethz.ch/R-CRAN/src/contrib/bootstrap_1.0-9.tar.gz
16 Source6:        ftp://stat.ethz.ch/R-CRAN/src/contrib/cluster_1.4-2.tar.gz
17 Source7:        ftp://stat.ethz.ch/R-CRAN/src/contrib/date_1.2-12.tar.gz
18 Source8:        ftp://stat.ethz.ch/R-CRAN/src/contrib/e1071_1.2-1.tar.gz
19 Source9:        ftp://stat.ethz.ch/R-CRAN/src/contrib/foreign_0.5-3.tar.gz
20 Source10:       ftp://stat.ethz.ch/R-CRAN/src/contrib/fracdiff_1.0-7.tar.gz
21 Source11:       ftp://stat.ethz.ch/R-CRAN/src/contrib/gee_4.13-7.tar.gz
22 Source12:       ftp://stat.ethz.ch/R-CRAN/src/contrib/grid_0.6.tar.gz
23 Source13:       ftp://stat.ethz.ch/R-CRAN/src/contrib/lattice_0.5-1.tar.gz
24 Source14:       ftp://stat.ethz.ch/R-CRAN/src/contrib/leaps_2.4.tar.gz
25 Source15:       ftp://stat.ethz.ch/R-CRAN/src/contrib/mgcv_0.7-2.tar.gz
26 Source16:       ftp://stat.ethz.ch/R-CRAN/src/contrib/mlbench_0.5-4.tar.gz
27 Source17:       ftp://stat.ethz.ch/R-CRAN/src/contrib/nlme_3.1-27.tar.gz
28 Source18:       ftp://stat.ethz.ch/R-CRAN/src/contrib/oz_1.0-6.tar.gz
29 Source19:       ftp://stat.ethz.ch/R-CRAN/src/contrib/polynom_1.1-9.tar.gz
30 Source20:       ftp://stat.ethz.ch/R-CRAN/src/contrib/princurve_1.1-3.tar.gz
31 Source21:       ftp://stat.ethz.ch/R-CRAN/src/contrib/quadprog_1.4-4.tar.gz
32 Source22:       ftp://stat.ethz.ch/R-CRAN/src/contrib/rpart_3.1-6.tar.gz
33 Source23:       ftp://stat.ethz.ch/R-CRAN/src/contrib/survival_2.9-1.tar.gz
34 Source24:       ftp://stat.ethz.ch/R-CRAN/src/contrib/xgobi_1.2-5.tar.gz
35 Source25:       ftp://stat.ethz.ch/R-CRAN/src/contrib/Archive/integrate_2.2-3.tar.gz
36 License:        Mixed (distributable), mostly GPL
37 Group:          Development/Languages
38 URL:            http://stat.auckland.ac.nz/r/r.html
39 Provides:       R-base R-contrib
40 BuildRequires:  autoconf
41 BuildRequires:  automake
42 BuildRequires:  libstdc++-devel
43 BuildRequires:  gcc-c++
44 BuildRequires:  gcc-g77
45 BuildRequires:  perl >= 5.004
46 BuildRequires:  libtool
47 BuildRequires:  tetex-latex
48 BuildRequires:  tetex-dvips
49 BuildRequires:  tetex-pdftex
50 BuildRequires:  zip
51 BuildRequires:  XFree86-devel
52 BuildRequires:  libpng-devel >= 1.0.5
53 BuildRequires:  libjpeg-devel >= 6b
54 BuildRequires:  libxml-devel
55 BuildRequires:  zlib >= 1.1.3
56 BuildRequires:  readline-devel
57 #BuildRequires: lpr
58 %{!?_without_gnome:BuildRequires:       gnome-libs-devel}
59 %{!?_without_gnome:BuildRequires:       ORBit-devel}
60 %{!?_without_gnome:BuildRequires:       libglade-devel}
61 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
62
63 %description
64 A system for statistical computation and graphics. R consists of a
65 language plus a run-time environment with graphics, a debugger, access
66 to certain system functions, and the ability to run programs stored in
67 script files.
68
69 The design of R has been heavily influenced by two existing languages:
70 Becker, Chambers & Wilks' S and Sussman's Scheme. Whereas the
71 resulting language is very similar in appearance to S, the underlying
72 implementation and semantics are derived from Scheme.
73
74 %description -l pl
75 System do obliczeñ statystycznych i grafiki. R sk³ada siê z jêzyka
76 oraz ¶rodowiska uruchomieniowego z grafik±, debuggerem, dostêpem do
77 niektórych funkcji systemowych oraz mo¿liwo¶ci± uruchamiania programów
78 zapisanych w skryptach.
79
80 Jêzyk R by³ zainspirowany dwoma istniej±cymi jêzykami: S (Beckera,
81 Chambersa i Wilksa) oraz Scheme (Sussmana). R jest podobny do S, ale
82 implementacja i semantyka wywodzi siê ze Scheme.
83
84 %package base
85 Summary:        The R base distribution
86 Summary(pl):    Podstawowa dystrybucja R
87 Group:          Development/Languages
88 Provides:       R-ctest R-eda R-lqs R-methods R-modreg R-mva R-nls R-splines
89 Provides:       R-stepfun R-tcltk R-tools R-ts
90 License:        GPL v2 / LGPL
91
92 %description base
93 R is a language and run-time environment for carrying out interactive
94 statistical data analysis. It is not entirely dissimilar to the S
95 language developed at AT&T Bell Laboratories (and now Lucent
96 Technologies). Indeed, S users will find the environment quite
97 familiar and a good deal of S software will run without change under
98 R.
99
100 %description base -l pl
101 R jest jêzykiem i ¶rodowiskiem uruchomieniowym do interaktywnej
102 analizy danych statystycznych. R nie jest ca³kowicie zgodny z jêzykiem
103 S opracowanym w AT&T Bell Laboratiories (a teraz Lucent Technologies),
104 mimo to u¿ytkownicy S zauwa¿± zbli¿one ¶rodowisko, a du¿a czê¶æ
105 oprogramowania w S bêdzie dzia³a³a bez zmian w R.
106
107 %package recommended
108 Summary:        Recommended contributed packages for the R language
109 Summary(pl):    Zalecane dodatkowe pakiety do jêzyka R
110 Group:          Development/Languages
111 Provides:       R-KernSmooth R-VR R-boot R-cluster R-foreign R-grid
112 Provides:       R-lattice R-mgcv R-nlme R-rpart R-survival
113 License:        GPL, free or free for non-commercial use
114 URL:            http://www.ci.tuwien.ac.at/R/
115 Requires:       R-base >= %{version}
116 Requires(post): R-base
117 Requires(postun):       R-base
118 Obsoletes:      R-survival4 R-MASS R-clus R-class R-nnet R-spatial
119
120 %description recommended
121 Packages which extend the capabilities of the R base distribution and
122 are distributed on the Comprehensive R Archive Network (CRAN).
123
124 %description recommended -l pl
125 Pakiety rozszerzaj±ce mo¿liwo¶ci podstawowej dystrybucji jêzyka R,
126 dystrubuowane w archiwum CRAN (Comprehensive R Archive Network).
127
128 %package contrib
129 Summary:        Contributed packages for the R language
130 Summary(pl):    Dodatkowe pakiety do jêzyka R
131 Group:          Development/Languages
132 Provides:       R-acepack R-bootstrap R-date R-e1071 R-fracdiff R-gee
133 Provides:       R-integrate R-leaps R-oz R-polynom R-princurve R-quadprog
134 Provides:       R-xgobi
135 License:        Mixed
136 URL:            http://www.ci.tuwien.ac.at/R/
137 Requires:       R-base >= %{version}
138 Requires:       R-VR
139 Requires(post): R-base
140 Requires(postun):       R-base
141 Obsoletes:      R-principal.curve
142
143 %description contrib
144 Packages which extend the capabilities of the R base distribution and
145 are distributed on the Comprehensive R Archive Network (CRAN).
146
147 %description contrib -l pl
148 Pakiety rozszerzaj±ce mo¿liwo¶ci podstawowej dystrybucji jêzyka R,
149 dystrubuowane w archiwum CRAN (Comprehensive R Archive Network).
150
151 %package mlbench
152 Summary:        Machine learning benchmarks
153 Summary(pl):    Testy wydajno¶ci uczenia maszyny
154 Group:          Development/Languages
155 License:        GPL
156 URL:            http://www.ics.uci.edu/~mlearn/MLRepository.html
157 Requires:       R-base >= %{version}
158 Requires(post): R-base
159 Requires(postun):       R-base
160
161 %description mlbench
162 R package which contains a collection of real-world datasets and
163 functions for creating artificial datasets that work as benchmarks for
164 machine learning methods.
165
166 %description mlbench -l pl
167 Ten podpakiet R zawiera zestaw rzeczywistych danych i funkcji do
168 tworzenia sztucznych danych s³u¿±cych jako test wydajno¶ci metod
169 uczenia maszyny.
170
171 %prep
172 %setup -q -c -n R-cran -T -b 1
173 %setup -q -c -n R-cran -T -D -b 2
174 %setup -q -c -n R-cran -T -D -b 3
175 %setup -q -c -n R-cran -T -D -b 4
176 %setup -q -c -n R-cran -T -D -b 5
177 %setup -q -c -n R-cran -T -D -b 6
178 %setup -q -c -n R-cran -T -D -b 7
179 %setup -q -c -n R-cran -T -D -b 8
180 %setup -q -c -n R-cran -T -D -b 9
181 %setup -q -c -n R-cran -T -D -b 10
182 %setup -q -c -n R-cran -T -D -b 11
183 %setup -q -c -n R-cran -T -D -b 12
184 %setup -q -c -n R-cran -T -D -b 13
185 %setup -q -c -n R-cran -T -D -b 14
186 %setup -q -c -n R-cran -T -D -b 15
187 %setup -q -c -n R-cran -T -D -b 16
188 %setup -q -c -n R-cran -T -D -b 17
189 %setup -q -c -n R-cran -T -D -b 18
190 %setup -q -c -n R-cran -T -D -b 19
191 %setup -q -c -n R-cran -T -D -b 20
192 %setup -q -c -n R-cran -T -D -b 21
193 %setup -q -c -n R-cran -T -D -b 22
194 %setup -q -c -n R-cran -T -D -b 23
195 %setup -q -c -n R-cran -T -D -b 24
196 %setup -q -c -n R-cran -T -D -b 25
197 %setup -q 
198 #%setup -q -T -D -a 14
199
200 # These files have the path for PERL hard-coded as /usr/local/bin/perl
201 # We need to remove them to avoid dependency problems
202 rm -f ./doc/keyword-test.orig ./etc/undoc/R-funs.orig ./etc/undoc/extrExamp.orig 
203
204 %build
205 aclocal
206 autoconf
207 cp -f /usr/share/automake/config.* .
208 %configure \
209         %{!?_without_gnome:--with-gnome} \
210         %{?_without_gnome:--without-gnome} \
211         --without-tcltk
212
213 %{__make} 
214 %{__make} help
215 %{__make} html
216 %{__make} clean
217
218 # Install contrib packages
219 #
220 R_HOME=`pwd`;export R_HOME
221 PERL5LIB=`pwd`/share/perl;export PERL5LIB
222 cd ../R-cran
223 for pkg in `ls`
224 do
225 ${R_HOME}/bin/INSTALL ${pkg}
226 done
227 cd ${R_HOME}
228
229 #Remove old template files.
230 #
231 for oldinfile in `find . -name '*.in' -print`
232 do
233         mv ${oldinfile} ${oldinfile}.old
234 #       rm ${oldinfile}
235 done
236
237 # Gather documentation from contrib packages in one directory
238 # Assume that anything not in one of the standard directories is
239 # documentation, and copy it.
240 #
241 mkdir ${R_HOME}/contrib
242 cd ${RPM_BUILD_DIR}/R-cran
243 for pkg in `ls`; do
244         if [ -d ${pkg} ]; then
245                 mkdir ${R_HOME}/${pkg}
246                 for docfile in `ls ${pkg}`; do
247                         case $docfile in
248                                 INDEX) ;;
249                                 TITLE) ;;
250                                 R) ;;
251                                 man) ;;
252                                 src) ;;
253                                 src-c) ;;
254                                 data) ;;
255                                 *) cp -R -P ${pkg}/${docfile} ${R_HOME};;
256                         esac
257                 done
258         fi
259 done
260 cd ${R_HOME}
261
262 %install
263 rm -rf $RPM_BUILD_ROOT
264 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_libdir}/R}
265
266 mv doc/R.1 $RPM_BUILD_ROOT%{_mandir}/man1/
267 sed "s,`pwd`,%{_libdir}/R,g" < bin/R > bin/R. ; mv bin/R. bin/R
268 mv bin/R $RPM_BUILD_ROOT%{_bindir}/R
269
270 find . -name 'Makefile*' -exec rm -f {} \;
271 rm -rf etc/*.old
272
273 cp -R AUTHORS afm bin doc etc include library modules share \
274         $RPM_BUILD_ROOT%{_libdir}/R
275
276 %clean
277 rm -rf $RPM_BUILD_ROOT
278
279 %post base
280 (cd %{_libdir}/R/library; cat */CONTENTS > ../doc/html/search/index.txt
281  R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --htmllist)
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/doc/html/search/index.txt
290 #       rm -f %{_libdir}/R/doc/html/packages.html
291 #fi
292
293 %post contrib
294 (cd %{_libdir}/R/library; cat */CONTENTS > ../doc/html/search/index.txt
295  R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --htmllist)
296
297 %postun contrib
298 (cd %{_libdir}/R/library; cat */CONTENTS > ../doc/html/search/index.txt
299  R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --htmllist)
300
301 %post recommended
302 (cd %{_libdir}/R/library; cat */CONTENTS > ../doc/html/search/index.txt
303  R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --htmllist)
304
305 %postun recommended
306 (cd %{_libdir}/R/library; cat */CONTENTS > ../doc/html/search/index.txt
307  R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --htmllist)
308
309 %post mlbench
310 (cd %{_libdir}/R/library; cat */CONTENTS > ../doc/html/search/index.txt
311  R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --htmllist)
312
313 %postun mlbench
314 (cd %{_libdir}/R/library; cat */CONTENTS > ../doc/html/search/index.txt
315  R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --htmllist)
316
317 %files base
318 %defattr(644,root,root,755)
319 %{_mandir}/man1/R.1*
320 %attr(755,root,root) %{_bindir}/R
321 %dir %{_libdir}/R
322 %{_libdir}/R/afm
323 %attr(755,root,root) %{_libdir}/R/bin
324 %{_libdir}/R/etc
325 %{_libdir}/R/include
326 %{_libdir}/R/share
327 %{_libdir}/R/AUTHORS
328 %dir %{_libdir}/R/library
329 %{_libdir}/R/library/base
330 %{_libdir}/R/library/ctest
331 %{_libdir}/R/library/eda
332 %{_libdir}/R/library/lqs
333 %{_libdir}/R/library/methods
334 %{_libdir}/R/library/modreg
335 %{_libdir}/R/library/mva
336 %{_libdir}/R/library/nls
337 %{_libdir}/R/library/splines
338 %{_libdir}/R/library/stepfun
339 %{_libdir}/R/library/tcltk
340 %{_libdir}/R/library/tools
341 %{_libdir}/R/library/ts
342 %{_libdir}/R/modules
343 %doc BUGS COPYRIGHTS FAQ NEWS README RESOURCES THANKS Y2K
344 # %{_libdir}/R/doc %except %{_libdir}/R/doc/html/{packages.html,search/index.txt}
345 %dir %{_libdir}/R/doc
346 %{_libdir}/R/doc/[KRm]*
347 %dir %{_libdir}/R/doc/html
348 %{_libdir}/R/doc/html/*.css
349 %{_libdir}/R/doc/html/[Ra-lr-u]*.html
350 %{_libdir}/R/doc/html/packages-head.html
351 %{_libdir}/R/doc/html/*.jpg
352 %dir %{_libdir}/R/doc/html/search
353 %{_libdir}/R/doc/html/search/[A-Z]*
354 %ghost %{_libdir}/R/doc/html/search/index.txt
355 %ghost %{_libdir}/R/doc/html/packages.html
356
357 %files recommended
358 %defattr(644,root,root,755)
359 %{_libdir}/R/library/MASS
360 %{_libdir}/R/library/class
361 %{_libdir}/R/library/nnet
362 %{_libdir}/R/library/spatial
363 %doc VR
364 %{_libdir}/R/library/KernSmooth
365 %doc KernSmooth
366 %{_libdir}/R/library/boot
367 %doc boot
368 %{_libdir}/R/library/cluster
369 %doc cluster
370 %{_libdir}/R/library/foreign
371 %doc foreign
372 %{_libdir}/R/library/grid
373 %doc grid
374 %{_libdir}/R/library/lattice
375 %doc lattice
376 %{_libdir}/R/library/mgcv
377 %doc mgcv
378 %{_libdir}/R/library/nlme
379 %doc nlme
380 %{_libdir}/R/library/rpart
381 %doc rpart
382 %{_libdir}/R/library/survival
383 %doc survival
384
385 %files contrib
386 %defattr(644,root,root,755)
387 %{_libdir}/R/library/acepack
388 %doc acepack
389 %{_libdir}/R/library/bootstrap
390 %doc bootstrap
391 %{_libdir}/R/library/date
392 %doc date
393 %{_libdir}/R/library/e1071
394 %doc e1071
395 %{_libdir}/R/library/fracdiff
396 %doc fracdiff
397 %{_libdir}/R/library/gee
398 %doc gee
399 %{_libdir}/R/library/integrate
400 %doc integrate
401 %{_libdir}/R/library/leaps
402 %doc leaps
403 %{_libdir}/R/library/oz
404 %doc oz
405 %{_libdir}/R/library/polynom
406 %doc polynom
407 %{_libdir}/R/library/princurve
408 %doc princurve
409 %{_libdir}/R/library/quadprog
410 %doc quadprog
411 %{_libdir}/R/library/xgobi
412 %doc xgobi
413
414 %files mlbench
415 %defattr(644,root,root,755)
416 %{_libdir}/R/library/mlbench
417 %doc mlbench
This page took 0.106601 seconds and 2 git commands to generate.