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