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 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
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
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)
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
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.
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.
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.
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
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
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.
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 Obsoletes: R-survival4 R-MASS R-clus R-class R-nnet R-spatial
118 %description recommended
119 Packages which extend the capabilities of the R base distribution and
120 are distributed on the Comprehensive R Archive Network (CRAN).
122 %description recommended -l pl
123 Pakiety rozszerzaj±ce mo¿liwo¶ci podstawowej dystrybucji jêzyka R,
124 dystrubuowane w archiwum CRAN (Comprehensive R Archive Network).
127 Summary: Contributed packages for the R language
128 Summary(pl): Dodatkowe pakiety do jêzyka R
129 Group: Development/Languages
130 Provides: R-acepack R-bootstrap R-date R-e1071 R-fracdiff R-gee
131 Provides: R-integrate R-leaps R-oz R-polynom R-princurve R-quadprog
134 URL: http://www.ci.tuwien.ac.at/R/
135 Requires: R-base >= %{version}
137 Obsoletes: R-principal.curve
140 Packages which extend the capabilities of the R base distribution and
141 are distributed on the Comprehensive R Archive Network (CRAN).
143 %description contrib -l pl
144 Pakiety rozszerzaj±ce mo¿liwo¶ci podstawowej dystrybucji jêzyka R,
145 dystrubuowane w archiwum CRAN (Comprehensive R Archive Network).
148 Summary: Machine learning benchmarks
149 Summary(pl): Testy wydajno¶ci uczenia maszyny
150 Group: Development/Languages
152 URL: http://www.ics.uci.edu/~mlearn/MLRepository.html
153 Requires: R-base >= %{version}
156 R package which contains a collection of real-world datasets and
157 functions for creating artificial datasets that work as benchmarks for
158 machine learning methods.
160 %description mlbench -l pl
161 Ten podpakiet R zawiera zestaw rzeczywistych danych i funkcji do
162 tworzenia sztucznych danych s³u¿±cych jako test wydajno¶ci metod
166 %setup -q -c -n R-cran -T -b 1
167 %setup -q -c -n R-cran -T -D -b 2
168 %setup -q -c -n R-cran -T -D -b 3
169 %setup -q -c -n R-cran -T -D -b 4
170 %setup -q -c -n R-cran -T -D -b 5
171 %setup -q -c -n R-cran -T -D -b 6
172 %setup -q -c -n R-cran -T -D -b 7
173 %setup -q -c -n R-cran -T -D -b 8
174 %setup -q -c -n R-cran -T -D -b 9
175 %setup -q -c -n R-cran -T -D -b 10
176 %setup -q -c -n R-cran -T -D -b 11
177 %setup -q -c -n R-cran -T -D -b 12
178 %setup -q -c -n R-cran -T -D -b 13
179 %setup -q -c -n R-cran -T -D -b 14
180 %setup -q -c -n R-cran -T -D -b 15
181 %setup -q -c -n R-cran -T -D -b 16
182 %setup -q -c -n R-cran -T -D -b 17
183 %setup -q -c -n R-cran -T -D -b 18
184 %setup -q -c -n R-cran -T -D -b 19
185 %setup -q -c -n R-cran -T -D -b 20
186 %setup -q -c -n R-cran -T -D -b 21
187 %setup -q -c -n R-cran -T -D -b 22
188 %setup -q -c -n R-cran -T -D -b 23
189 %setup -q -c -n R-cran -T -D -b 24
190 %setup -q -c -n R-cran -T -D -b 25
192 #%setup -q -T -D -a 14
194 # These files have the path for PERL hard-coded as /usr/local/bin/perl
195 # We need to remove them to avoid dependency problems
196 rm -f ./doc/keyword-test.orig ./etc/undoc/R-funs.orig ./etc/undoc/extrExamp.orig
201 cp -f /usr/share/automake/config.* .
203 %{!?_without_gnome:--with-gnome} \
204 %{?_without_gnome:--without-gnome} \
212 # Install contrib packages
214 R_HOME=`pwd`;export R_HOME
215 PERL5LIB=`pwd`/share/perl;export PERL5LIB
219 ${R_HOME}/bin/INSTALL ${pkg}
223 #Remove old template files.
225 for oldinfile in `find . -name '*.in' -print`
227 mv ${oldinfile} ${oldinfile}.old
231 # Gather documentation from contrib packages in one directory
232 # Assume that anything not in one of the standard directories is
233 # documentation, and copy it.
235 mkdir ${R_HOME}/contrib
236 cd ${RPM_BUILD_DIR}/R-cran
238 if [ -d ${pkg} ]; then
239 mkdir ${R_HOME}/${pkg}
240 for docfile in `ls ${pkg}`; do
249 *) cp -R -P ${pkg}/${docfile} ${R_HOME};;
257 rm -rf $RPM_BUILD_ROOT
258 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_libdir}/R}
260 mv doc/R.1 $RPM_BUILD_ROOT%{_mandir}/man1/
261 sed "s,`pwd`,%{_libdir}/R,g" < bin/R > bin/R. ; mv bin/R. bin/R
262 mv bin/R $RPM_BUILD_ROOT%{_bindir}/R
264 find . -name 'Makefile*' -exec rm -f {} \;
267 cp -R AUTHORS afm bin doc etc include library modules share \
268 $RPM_BUILD_ROOT%{_libdir}/R
270 touch $RPM_BUILD_ROOT%{_libdir}/R/doc/html/search/index.html
273 rm -rf $RPM_BUILD_ROOT
276 (cd %{_libdir}/R/library; cat */CONTENTS > ../doc/html/search/index.txt
277 ../bin/Rcmd perl ../share/perl/build-help.pl --htmllist)
280 # These files are not owned by any package, so we have to remove them
281 # but only if this is the last version of R-base on the system.
285 rm -f %{_libdir}/R/doc/html/search/index.txt
286 rm -f %{_libdir}/R/doc/html/search/index.html
290 (cd %{_libdir}/R/library; cat */CONTENTS > ../doc/html/search/index.txt
291 ../bin/Rcmd perl ../share/perl/build-help.pl --htmllist)
294 (cd %{_libdir}/R/library; cat */CONTENTS > ../doc/html/search/index.txt
295 ../bin/Rcmd perl ../share/perl/build-help.pl --htmllist)
298 (cd %{_libdir}/R/library; cat */CONTENTS > ../doc/html/search/index.txt
299 ../bin/Rcmd perl ../share/perl/build-help.pl --htmllist)
302 (cd %{_libdir}/R/library; cat */CONTENTS > ../doc/html/search/index.txt
303 ../bin/Rcmd perl ../share/perl/build-help.pl --htmllist)
306 (cd %{_libdir}/R/library; cat */CONTENTS > ../doc/html/search/index.txt
307 ../bin/Rcmd perl ../share/perl/build-help.pl --htmllist)
310 (cd %{_libdir}/R/library; cat */CONTENTS > ../doc/html/search/index.txt
311 ../bin/Rcmd perl ../share/perl/build-help.pl --htmllist)
314 %defattr(644,root,root,755)
316 %attr(755,root,root) %{_bindir}/R
319 %attr(755,root,root) %{_libdir}/R/bin
324 %dir %{_libdir}/R/library
325 %{_libdir}/R/library/base
326 %{_libdir}/R/library/ctest
327 %{_libdir}/R/library/eda
328 %{_libdir}/R/library/lqs
329 %{_libdir}/R/library/methods
330 %{_libdir}/R/library/modreg
331 %{_libdir}/R/library/mva
332 %{_libdir}/R/library/nls
333 %{_libdir}/R/library/splines
334 %{_libdir}/R/library/stepfun
335 %{_libdir}/R/library/tcltk
336 %{_libdir}/R/library/tools
337 %{_libdir}/R/library/ts
339 %doc BUGS COPYRIGHTS FAQ NEWS README RESOURCES TASKS THANKS Y2K
340 # %{_libdir}/R/doc %except %{_libdir}/R/doc/html/search/index.*
341 %dir %{_libdir}/R/doc
342 %{_libdir}/R/doc/[KRm]*
343 %dir %{_libdir}/R/doc/html
344 %{_libdir}/R/doc/html/*.css
345 %{_libdir}/R/doc/html/*.html
346 %{_libdir}/R/doc/html/*.jpg
347 %dir %{_libdir}/R/doc/html/search
348 %{_libdir}/R/doc/html/search/[A-Z]*
349 %ghost %{_libdir}/R/doc/html/search/index.txt
350 %ghost %{_libdir}/R/doc/html/search/index.html
353 %defattr(644,root,root,755)
354 %{_libdir}/R/library/MASS
355 %{_libdir}/R/library/class
356 %{_libdir}/R/library/nnet
357 %{_libdir}/R/library/spatial
359 %{_libdir}/R/library/KernSmooth
361 %{_libdir}/R/library/boot
363 %{_libdir}/R/library/cluster
365 %{_libdir}/R/library/foreign
367 %{_libdir}/R/library/grid
369 %{_libdir}/R/library/lattice
371 %{_libdir}/R/library/mgcv
373 %{_libdir}/R/library/nlme
375 %{_libdir}/R/library/rpart
377 %{_libdir}/R/library/survival
381 %defattr(644,root,root,755)
382 %{_libdir}/R/library/acepack
384 %{_libdir}/R/library/bootstrap
386 %{_libdir}/R/library/date
388 %{_libdir}/R/library/e1071
390 %{_libdir}/R/library/fracdiff
392 %{_libdir}/R/library/gee
394 %{_libdir}/R/library/integrate
396 %{_libdir}/R/library/leaps
398 %{_libdir}/R/library/oz
400 %{_libdir}/R/library/polynom
402 %{_libdir}/R/library/princurve
404 %{_libdir}/R/library/quadprog
406 %{_libdir}/R/library/xgobi
410 %defattr(644,root,root,755)
411 %{_libdir}/R/library/mlbench