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