3 # _without_gnome - without GNOME support
5 Summary: A language for data analysis and graphics
6 Summary(pl): Jêzyk do analizy danych oraz grafiki
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 Source25: ftp://stat.ethz.ch/R-CRAN/src/contrib/Archive/integrate_2.2-3.tar.gz
64 # Source25-md5: 40cc14374a0992871dd651d41289b3e6
65 Source26: %{name}.desktop
66 URL: http://www.r-project.org/
67 BuildRequires: autoconf
68 BuildRequires: automake
69 BuildRequires: libstdc++-devel
70 BuildRequires: gcc-c++
71 BuildRequires: gcc-g77
72 BuildRequires: perl >= 5.004
73 BuildRequires: libtool
74 BuildRequires: tetex-latex
75 BuildRequires: tetex-dvips
76 BuildRequires: tetex-pdftex
78 BuildRequires: XFree86-devel
79 BuildRequires: blas-devel
80 BuildRequires: libpng-devel >= 1.0.5
81 BuildRequires: libjpeg-devel >= 6b
82 BuildRequires: libxml-devel
83 BuildRequires: zlib >= 1.1.3
84 BuildRequires: readline-devel
86 %{!?_without_gnome:BuildRequires: gnome-libs-devel}
87 %{!?_without_gnome:BuildRequires: ORBit-devel}
88 %{!?_without_gnome:BuildRequires: libglade-gnome-devel}
91 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
94 A system for statistical computation and graphics. R consists of a
95 language plus a run-time environment with graphics, a debugger, access
96 to certain system functions, and the ability to run programs stored in
99 The design of R has been heavily influenced by two existing languages:
100 Becker, Chambers & Wilks' S and Sussman's Scheme. Whereas the
101 resulting language is very similar in appearance to S, the underlying
102 implementation and semantics are derived from Scheme.
105 System do obliczeñ statystycznych i grafiki. R sk³ada siê z jêzyka
106 oraz ¶rodowiska uruchomieniowego z grafik±, debuggerem, dostêpem do
107 niektórych funkcji systemowych oraz mo¿liwo¶ci± uruchamiania programów
108 zapisanych w skryptach.
110 Jêzyk R by³ zainspirowany dwoma istniej±cymi jêzykami: S (Beckera,
111 Chambersa i Wilksa) oraz Scheme (Sussmana). R jest podobny do S, ale
112 implementacja i semantyka wywodzi siê ze Scheme.
115 Summary: The R base distribution
116 Summary(pl): Podstawowa dystrybucja R
117 License: GPL v2 / LGPL
118 Group: Development/Languages
119 Requires(post): textutils
121 Provides: R-ctest R-eda R-lqs R-methods R-modreg R-mva R-nls R-splines
122 Provides: R-stepfun R-tcltk R-tools R-ts
125 R is a language and run-time environment for carrying out interactive
126 statistical data analysis. It is not entirely dissimilar to the S
127 language developed at AT&T Bell Laboratories (and now Lucent
128 Technologies). Indeed, S users will find the environment quite
129 familiar and a good deal of S software will run without change under
132 %description base -l pl
133 R jest jêzykiem i ¶rodowiskiem uruchomieniowym do interaktywnej
134 analizy danych statystycznych. R nie jest ca³kowicie zgodny z jêzykiem
135 S opracowanym w AT&T Bell Laboratiories (a teraz Lucent Technologies),
136 mimo to u¿ytkownicy S zauwa¿± zbli¿one ¶rodowisko, a du¿a czê¶æ
137 oprogramowania w S bêdzie dzia³a³a bez zmian w R.
140 Summary: Recommended contributed packages for the R language
141 Summary(pl): Zalecane dodatkowe pakiety do jêzyka R
142 Group: Development/Languages
143 Provides: R-KernSmooth R-VR R-boot R-cluster R-foreign R-grid
144 Provides: R-lattice R-mgcv R-nlme R-rpart R-survival
145 License: GPL, free or free for non-commercial use
146 URL: http://www.ci.tuwien.ac.at/R/
147 Requires(post,postun): R-base
148 Requires(post,postun): textutils
149 Requires(post,postun): perl
150 Requires: R-base >= %{version}
151 Obsoletes: R-survival4 R-MASS R-clus R-class R-nnet R-spatial
153 %description recommended
154 Packages which extend the capabilities of the R base distribution and
155 are distributed on the Comprehensive R Archive Network (CRAN).
157 %description recommended -l pl
158 Pakiety rozszerzaj±ce mo¿liwo¶ci podstawowej dystrybucji jêzyka R,
159 dystrubuowane w archiwum CRAN (Comprehensive R Archive Network).
162 Summary: Contributed packages for the R language
163 Summary(pl): Dodatkowe pakiety do jêzyka R
165 Group: Development/Languages
166 URL: http://www.ci.tuwien.ac.at/R/
167 Requires(post,postun): R-base
168 Requires(post,postun): textutils
169 Requires(post,postun): perl
170 Requires: R-base >= %{version}
172 Provides: R-acepack R-bootstrap R-date R-e1071 R-fracdiff R-gee
173 Provides: R-integrate R-leaps R-oz R-polynom R-princurve R-quadprog
175 Obsoletes: R-principal.curve
178 Packages which extend the capabilities of the R base distribution and
179 are distributed on the Comprehensive R Archive Network (CRAN).
181 %description contrib -l pl
182 Pakiety rozszerzaj±ce mo¿liwo¶ci podstawowej dystrybucji jêzyka R,
183 dystrubuowane w archiwum CRAN (Comprehensive R Archive Network).
186 Summary: Machine learning benchmarks
187 Summary(pl): Testy wydajno¶ci uczenia maszyny
188 Group: Development/Languages
190 URL: http://www.ics.uci.edu/~mlearn/MLRepository.html
191 Requires(post,postun): R-base
192 Requires(post,postun): textutils
193 Requires(post,postun): perl
194 Requires: R-base >= %{version}
197 R package which contains a collection of real-world datasets and
198 functions for creating artificial datasets that work as benchmarks for
199 machine learning methods.
201 %description mlbench -l pl
202 Ten podpakiet R zawiera zestaw rzeczywistych danych i funkcji do
203 tworzenia sztucznych danych s³u¿±cych jako test wydajno¶ci metod
207 %setup -q -c -n R-cran -T -b 1
208 %setup -q -c -n R-cran -T -D -b 2
209 %setup -q -c -n R-cran -T -D -b 3
210 %setup -q -c -n R-cran -T -D -b 4
211 %setup -q -c -n R-cran -T -D -b 5
212 %setup -q -c -n R-cran -T -D -b 6
213 %setup -q -c -n R-cran -T -D -b 7
214 %setup -q -c -n R-cran -T -D -b 8
215 %setup -q -c -n R-cran -T -D -b 9
216 %setup -q -c -n R-cran -T -D -b 10
217 %setup -q -c -n R-cran -T -D -b 11
218 %setup -q -c -n R-cran -T -D -b 12
219 %setup -q -c -n R-cran -T -D -b 13
220 %setup -q -c -n R-cran -T -D -b 14
221 %setup -q -c -n R-cran -T -D -b 15
222 %setup -q -c -n R-cran -T -D -b 16
223 %setup -q -c -n R-cran -T -D -b 17
224 %setup -q -c -n R-cran -T -D -b 18
225 %setup -q -c -n R-cran -T -D -b 19
226 %setup -q -c -n R-cran -T -D -b 20
227 %setup -q -c -n R-cran -T -D -b 21
228 %setup -q -c -n R-cran -T -D -b 22
229 %setup -q -c -n R-cran -T -D -b 23
230 %setup -q -c -n R-cran -T -D -b 24
231 #%%setup -q -c -n R-cran -T -D -b 25
233 #%setup -q -T -D -a 14
235 # These files have the path for PERL hard-coded as /usr/local/bin/perl
236 # We need to remove them to avoid dependency problems
237 rm -f ./doc/keyword-test.orig ./etc/undoc/R-funs.orig ./etc/undoc/extrExamp.orig
242 cp -f /usr/share/automake/config.* .
244 %{!?_without_gnome:--with-gnome} \
245 %{?_without_gnome:--without-gnome} \
253 # Install contrib packages
255 R_HOME=`pwd`;export R_HOME
256 PERL5LIB=`pwd`/share/perl;export PERL5LIB
260 ${R_HOME}/bin/INSTALL ${pkg}
264 #Remove old template files.
266 for oldinfile in `find . -name '*.in' -print`
268 mv ${oldinfile} ${oldinfile}.old
272 # Gather documentation from contrib packages in one directory
273 # Assume that anything not in one of the standard directories is
274 # documentation, and copy it.
276 mkdir ${R_HOME}/contrib
277 cd ${RPM_BUILD_DIR}/R-cran
279 if [ -d ${pkg} ]; then
280 mkdir ${R_HOME}/${pkg}
281 for docfile in `ls ${pkg}`; do
290 *) cp -R -P ${pkg}/${docfile} ${R_HOME};;
298 rm -rf $RPM_BUILD_ROOT
299 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_libdir}/R,%{_applnkdir}/Scientific/Numerics}
301 install %{SOURCE26} $RPM_BUILD_ROOT%{_applnkdir}/Scientific/Numerics/%{name}.desktop
303 mv doc/R.1 $RPM_BUILD_ROOT%{_mandir}/man1/
304 sed "s,`pwd`,%{_libdir}/R,g" < bin/R > bin/R. ; mv bin/R. bin/R
305 mv bin/R $RPM_BUILD_ROOT%{_bindir}/R
307 find . -name 'Makefile*' -exec rm -f {} \;
310 cp -R AUTHORS afm bin doc etc include library modules share \
311 $RPM_BUILD_ROOT%{_libdir}/R
314 rm -rf $RPM_BUILD_ROOT
317 (cd %{_libdir}/R/library; umask 022; cat */CONTENTS > ../doc/html/search/index.txt
318 R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --htmllist)
321 ## These files are not owned by any package, so we have to remove them
322 ## but only if this is the last version of R-base on the system.
326 # rm -f %{_libdir}/R/doc/html/search/index.txt
327 # rm -f %{_libdir}/R/doc/html/packages.html
331 (cd %{_libdir}/R/library; umask 022; cat */CONTENTS > ../doc/html/search/index.txt
332 R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --htmllist)
335 if [ -f ../bin/Rcmd ];then
336 (cd %{_libdir}/R/library; umask 022; cat */CONTENTS > ../doc/html/search/index.txt
337 R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --htmllist)
341 (cd %{_libdir}/R/library; umask 022; cat */CONTENTS > ../doc/html/search/index.txt
342 R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --htmllist)
345 if [ -f ../bin/Rcmd ];then
346 (cd %{_libdir}/R/library; umask 022; cat */CONTENTS > ../doc/html/search/index.txt
347 R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --htmllist)
351 (cd %{_libdir}/R/library; umask 022; cat */CONTENTS > ../doc/html/search/index.txt
352 R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --htmllist)
355 if [ -f ../bin/Rcmd ];then
356 (cd %{_libdir}/R/library; umask 022; cat */CONTENTS > ../doc/html/search/index.txt
357 R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --htmllist)
361 %defattr(644,root,root,755)
363 %attr(755,root,root) %{_bindir}/R
366 %attr(755,root,root) %{_libdir}/R/bin
371 %dir %{_libdir}/R/library
372 %{_libdir}/R/library/*.css
373 %{_libdir}/R/library/base
374 %{_libdir}/R/library/ctest
375 %{_libdir}/R/library/eda
376 %{_libdir}/R/library/lqs
377 %{_libdir}/R/library/methods
378 %{_libdir}/R/library/modreg
379 %{_libdir}/R/library/mva
380 %{_libdir}/R/library/nls
381 %{_libdir}/R/library/splines
382 %{_libdir}/R/library/stepfun
383 %{_libdir}/R/library/tcltk
384 %{_libdir}/R/library/tools
385 %{_libdir}/R/library/ts
387 %doc BUGS COPYRIGHTS FAQ NEWS README RESOURCES THANKS Y2K
388 # %{_libdir}/R/doc %except %{_libdir}/R/doc/html/{packages.html,search/index.txt}
389 %dir %{_libdir}/R/doc
390 %{_libdir}/R/doc/[KRm]*
391 %dir %{_libdir}/R/doc/html
392 %{_libdir}/R/doc/html/*.css
393 %{_libdir}/R/doc/html/[Ra-lr-u]*.html
394 %{_libdir}/R/doc/html/packages-head.html
395 %{_libdir}/R/doc/html/*.jpg
396 %dir %{_libdir}/R/doc/html/search
397 %{_libdir}/R/doc/html/search/[A-Z]*
398 %ghost %{_libdir}/R/doc/html/search/index.txt
399 %ghost %{_libdir}/R/doc/html/packages.html
400 %{_applnkdir}/Scientific/Numerics/*
403 %defattr(644,root,root,755)
404 %{_libdir}/R/library/MASS
405 %{_libdir}/R/library/class
406 %{_libdir}/R/library/nnet
407 %{_libdir}/R/library/spatial
409 %{_libdir}/R/library/KernSmooth
411 %{_libdir}/R/library/boot
413 %{_libdir}/R/library/cluster
415 %{_libdir}/R/library/foreign
417 %{_libdir}/R/library/grid
419 %{_libdir}/R/library/lattice
421 %{_libdir}/R/library/mgcv
423 %{_libdir}/R/library/nlme
425 %{_libdir}/R/library/rpart
427 %{_libdir}/R/library/survival
431 %defattr(644,root,root,755)
432 %{_libdir}/R/library/acepack
434 %{_libdir}/R/library/bootstrap
436 %{_libdir}/R/library/date
438 %{_libdir}/R/library/e1071
440 %{_libdir}/R/library/fracdiff
442 %{_libdir}/R/library/gee
444 %{_libdir}/R/library/integrate
446 %{_libdir}/R/library/leaps
448 %{_libdir}/R/library/oz
450 %{_libdir}/R/library/polynom
452 %{_libdir}/R/library/princurve
454 %{_libdir}/R/library/quadprog
456 %{_libdir}/R/library/xgobi
460 %defattr(644,root,root,755)
461 %{_libdir}/R/library/mlbench