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 Source26: %{name}.desktop
37 License: Mixed (distributable), mostly GPL
38 Group: Development/Languages
39 URL: http://stat.auckland.ac.nz/r/r.html
40 Provides: R-base R-contrib
41 BuildRequires: autoconf
42 BuildRequires: automake
43 BuildRequires: libstdc++-devel
44 BuildRequires: gcc-c++
45 BuildRequires: gcc-g77
46 BuildRequires: perl >= 5.004
47 BuildRequires: libtool
48 BuildRequires: tetex-latex
49 BuildRequires: tetex-dvips
50 BuildRequires: tetex-pdftex
52 BuildRequires: XFree86-devel
53 BuildRequires: blas-devel
54 BuildRequires: libpng-devel >= 1.0.5
55 BuildRequires: libjpeg-devel >= 6b
56 BuildRequires: libxml-devel
57 BuildRequires: zlib >= 1.1.3
58 BuildRequires: readline-devel
60 %{!?_without_gnome:BuildRequires: gnome-libs-devel}
61 %{!?_without_gnome:BuildRequires: ORBit-devel}
62 %{!?_without_gnome:BuildRequires: libglade-gnome-devel}
63 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
66 A system for statistical computation and graphics. R consists of a
67 language plus a run-time environment with graphics, a debugger, access
68 to certain system functions, and the ability to run programs stored in
71 The design of R has been heavily influenced by two existing languages:
72 Becker, Chambers & Wilks' S and Sussman's Scheme. Whereas the
73 resulting language is very similar in appearance to S, the underlying
74 implementation and semantics are derived from Scheme.
77 System do obliczeñ statystycznych i grafiki. R sk³ada siê z jêzyka
78 oraz ¶rodowiska uruchomieniowego z grafik±, debuggerem, dostêpem do
79 niektórych funkcji systemowych oraz mo¿liwo¶ci± uruchamiania programów
80 zapisanych w skryptach.
82 Jêzyk R by³ zainspirowany dwoma istniej±cymi jêzykami: S (Beckera,
83 Chambersa i Wilksa) oraz Scheme (Sussmana). R jest podobny do S, ale
84 implementacja i semantyka wywodzi siê ze Scheme.
87 Summary: The R base distribution
88 Summary(pl): Podstawowa dystrybucja R
89 Group: Development/Languages
90 Provides: R-ctest R-eda R-lqs R-methods R-modreg R-mva R-nls R-splines
91 Provides: R-stepfun R-tcltk R-tools R-ts
92 License: GPL v2 / LGPL
95 R is a language and run-time environment for carrying out interactive
96 statistical data analysis. It is not entirely dissimilar to the S
97 language developed at AT&T Bell Laboratories (and now Lucent
98 Technologies). Indeed, S users will find the environment quite
99 familiar and a good deal of S software will run without change under
102 %description base -l pl
103 R jest jêzykiem i ¶rodowiskiem uruchomieniowym do interaktywnej
104 analizy danych statystycznych. R nie jest ca³kowicie zgodny z jêzykiem
105 S opracowanym w AT&T Bell Laboratiories (a teraz Lucent Technologies),
106 mimo to u¿ytkownicy S zauwa¿± zbli¿one ¶rodowisko, a du¿a czê¶æ
107 oprogramowania w S bêdzie dzia³a³a bez zmian w R.
110 Summary: Recommended contributed packages for the R language
111 Summary(pl): Zalecane dodatkowe pakiety do jêzyka R
112 Group: Development/Languages
113 Provides: R-KernSmooth R-VR R-boot R-cluster R-foreign R-grid
114 Provides: R-lattice R-mgcv R-nlme R-rpart R-survival
115 License: GPL, free or free for non-commercial use
116 URL: http://www.ci.tuwien.ac.at/R/
117 Requires: R-base >= %{version}
118 Requires(post): R-base
119 Requires(postun): R-base
120 Obsoletes: R-survival4 R-MASS R-clus R-class R-nnet R-spatial
122 %description recommended
123 Packages which extend the capabilities of the R base distribution and
124 are distributed on the Comprehensive R Archive Network (CRAN).
126 %description recommended -l pl
127 Pakiety rozszerzaj±ce mo¿liwo¶ci podstawowej dystrybucji jêzyka R,
128 dystrubuowane w archiwum CRAN (Comprehensive R Archive Network).
131 Summary: Contributed packages for the R language
132 Summary(pl): Dodatkowe pakiety do jêzyka R
133 Group: Development/Languages
134 Provides: R-acepack R-bootstrap R-date R-e1071 R-fracdiff R-gee
135 Provides: R-integrate R-leaps R-oz R-polynom R-princurve R-quadprog
138 URL: http://www.ci.tuwien.ac.at/R/
139 Requires: R-base >= %{version}
141 Requires(post): R-base
142 Requires(postun): R-base
143 Obsoletes: R-principal.curve
146 Packages which extend the capabilities of the R base distribution and
147 are distributed on the Comprehensive R Archive Network (CRAN).
149 %description contrib -l pl
150 Pakiety rozszerzaj±ce mo¿liwo¶ci podstawowej dystrybucji jêzyka R,
151 dystrubuowane w archiwum CRAN (Comprehensive R Archive Network).
154 Summary: Machine learning benchmarks
155 Summary(pl): Testy wydajno¶ci uczenia maszyny
156 Group: Development/Languages
158 URL: http://www.ics.uci.edu/~mlearn/MLRepository.html
159 Requires: R-base >= %{version}
160 Requires(post): R-base
161 Requires(postun): R-base
164 R package which contains a collection of real-world datasets and
165 functions for creating artificial datasets that work as benchmarks for
166 machine learning methods.
168 %description mlbench -l pl
169 Ten podpakiet R zawiera zestaw rzeczywistych danych i funkcji do
170 tworzenia sztucznych danych s³u¿±cych jako test wydajno¶ci metod
174 %setup -q -c -n R-cran -T -b 1
175 %setup -q -c -n R-cran -T -D -b 2
176 %setup -q -c -n R-cran -T -D -b 3
177 %setup -q -c -n R-cran -T -D -b 4
178 %setup -q -c -n R-cran -T -D -b 5
179 %setup -q -c -n R-cran -T -D -b 6
180 %setup -q -c -n R-cran -T -D -b 7
181 %setup -q -c -n R-cran -T -D -b 8
182 %setup -q -c -n R-cran -T -D -b 9
183 %setup -q -c -n R-cran -T -D -b 10
184 %setup -q -c -n R-cran -T -D -b 11
185 %setup -q -c -n R-cran -T -D -b 12
186 %setup -q -c -n R-cran -T -D -b 13
187 %setup -q -c -n R-cran -T -D -b 14
188 %setup -q -c -n R-cran -T -D -b 15
189 %setup -q -c -n R-cran -T -D -b 16
190 %setup -q -c -n R-cran -T -D -b 17
191 %setup -q -c -n R-cran -T -D -b 18
192 %setup -q -c -n R-cran -T -D -b 19
193 %setup -q -c -n R-cran -T -D -b 20
194 %setup -q -c -n R-cran -T -D -b 21
195 %setup -q -c -n R-cran -T -D -b 22
196 %setup -q -c -n R-cran -T -D -b 23
197 %setup -q -c -n R-cran -T -D -b 24
198 %setup -q -c -n R-cran -T -D -b 25
200 #%setup -q -T -D -a 14
202 # These files have the path for PERL hard-coded as /usr/local/bin/perl
203 # We need to remove them to avoid dependency problems
204 rm -f ./doc/keyword-test.orig ./etc/undoc/R-funs.orig ./etc/undoc/extrExamp.orig
209 cp -f /usr/share/automake/config.* .
211 %{!?_without_gnome:--with-gnome} \
212 %{?_without_gnome:--without-gnome} \
220 # Install contrib packages
222 R_HOME=`pwd`;export R_HOME
223 PERL5LIB=`pwd`/share/perl;export PERL5LIB
227 ${R_HOME}/bin/INSTALL ${pkg}
231 #Remove old template files.
233 for oldinfile in `find . -name '*.in' -print`
235 mv ${oldinfile} ${oldinfile}.old
239 # Gather documentation from contrib packages in one directory
240 # Assume that anything not in one of the standard directories is
241 # documentation, and copy it.
243 mkdir ${R_HOME}/contrib
244 cd ${RPM_BUILD_DIR}/R-cran
246 if [ -d ${pkg} ]; then
247 mkdir ${R_HOME}/${pkg}
248 for docfile in `ls ${pkg}`; do
257 *) cp -R -P ${pkg}/${docfile} ${R_HOME};;
265 rm -rf $RPM_BUILD_ROOT
266 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_libdir}/R,%{_applnkdir}/Scientific/Numerics}
268 install %{SOURCE26} $RPM_BUILD_ROOT%{_applnkdir}/Scientific/Numerics/%{name}.desktop
270 mv doc/R.1 $RPM_BUILD_ROOT%{_mandir}/man1/
271 sed "s,`pwd`,%{_libdir}/R,g" < bin/R > bin/R. ; mv bin/R. bin/R
272 mv bin/R $RPM_BUILD_ROOT%{_bindir}/R
274 find . -name 'Makefile*' -exec rm -f {} \;
277 cp -R AUTHORS afm bin doc etc include library modules share \
278 $RPM_BUILD_ROOT%{_libdir}/R
281 rm -rf $RPM_BUILD_ROOT
284 (cd %{_libdir}/R/library; cat */CONTENTS > ../doc/html/search/index.txt
285 R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --htmllist)
288 ## These files are not owned by any package, so we have to remove them
289 ## but only if this is the last version of R-base on the system.
293 # rm -f %{_libdir}/R/doc/html/search/index.txt
294 # rm -f %{_libdir}/R/doc/html/packages.html
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)
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)
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)
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)
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)
318 (cd %{_libdir}/R/library; cat */CONTENTS > ../doc/html/search/index.txt
319 R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --htmllist)
322 %defattr(644,root,root,755)
324 %attr(755,root,root) %{_bindir}/R
327 %attr(755,root,root) %{_libdir}/R/bin
332 %dir %{_libdir}/R/library
333 %{_libdir}/R/library/base
334 %{_libdir}/R/library/ctest
335 %{_libdir}/R/library/eda
336 %{_libdir}/R/library/lqs
337 %{_libdir}/R/library/methods
338 %{_libdir}/R/library/modreg
339 %{_libdir}/R/library/mva
340 %{_libdir}/R/library/nls
341 %{_libdir}/R/library/splines
342 %{_libdir}/R/library/stepfun
343 %{_libdir}/R/library/tcltk
344 %{_libdir}/R/library/tools
345 %{_libdir}/R/library/ts
347 %doc BUGS COPYRIGHTS FAQ NEWS README RESOURCES THANKS Y2K
348 # %{_libdir}/R/doc %except %{_libdir}/R/doc/html/{packages.html,search/index.txt}
349 %dir %{_libdir}/R/doc
350 %{_libdir}/R/doc/[KRm]*
351 %dir %{_libdir}/R/doc/html
352 %{_libdir}/R/doc/html/*.css
353 %{_libdir}/R/doc/html/[Ra-lr-u]*.html
354 %{_libdir}/R/doc/html/packages-head.html
355 %{_libdir}/R/doc/html/*.jpg
356 %dir %{_libdir}/R/doc/html/search
357 %{_libdir}/R/doc/html/search/[A-Z]*
358 %ghost %{_libdir}/R/doc/html/search/index.txt
359 %ghost %{_libdir}/R/doc/html/packages.html
360 %{_applnkdir}/Scientific/Numerics/*
363 %defattr(644,root,root,755)
364 %{_libdir}/R/library/MASS
365 %{_libdir}/R/library/class
366 %{_libdir}/R/library/nnet
367 %{_libdir}/R/library/spatial
369 %{_libdir}/R/library/KernSmooth
371 %{_libdir}/R/library/boot
373 %{_libdir}/R/library/cluster
375 %{_libdir}/R/library/foreign
377 %{_libdir}/R/library/grid
379 %{_libdir}/R/library/lattice
381 %{_libdir}/R/library/mgcv
383 %{_libdir}/R/library/nlme
385 %{_libdir}/R/library/rpart
387 %{_libdir}/R/library/survival
391 %defattr(644,root,root,755)
392 %{_libdir}/R/library/acepack
394 %{_libdir}/R/library/bootstrap
396 %{_libdir}/R/library/date
398 %{_libdir}/R/library/e1071
400 %{_libdir}/R/library/fracdiff
402 %{_libdir}/R/library/gee
404 %{_libdir}/R/library/integrate
406 %{_libdir}/R/library/leaps
408 %{_libdir}/R/library/oz
410 %{_libdir}/R/library/polynom
412 %{_libdir}/R/library/princurve
414 %{_libdir}/R/library/quadprog
416 %{_libdir}/R/library/xgobi
420 %defattr(644,root,root,755)
421 %{_libdir}/R/library/mlbench