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 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
82 BuildRequires: zlib >= 1.1.3
84 %{!?_without_gnome:BuildRequires: gnome-libs-devel}
85 %{!?_without_gnome:BuildRequires: ORBit-devel}
86 %{!?_without_gnome:BuildRequires: libglade-gnome-devel}
89 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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
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.
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.
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.
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
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
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
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.
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
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).
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).
160 Summary: Contributed packages for the R language
161 Summary(pl): Dodatkowe pakiety do jêzyka R
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}
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
173 Obsoletes: R-principal.curve
176 Packages which extend the capabilities of the R base distribution and
177 are distributed on the Comprehensive R Archive Network (CRAN).
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).
184 Summary: Machine learning benchmarks
185 Summary(pl): Testy wydajno¶ci uczenia maszyny
186 Group: Development/Languages
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}
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.
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
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
230 #%setup -q -T -D -a 14
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
239 cp -f /usr/share/automake/config.* .
241 %{!?_without_gnome:--with-gnome} \
242 %{?_without_gnome:--without-gnome} \
250 # Install contrib packages
252 R_HOME=`pwd`;export R_HOME
253 PERL5LIB=`pwd`/share/perl;export PERL5LIB
257 ${R_HOME}/bin/INSTALL ${pkg}
261 #Remove old template files.
263 for oldinfile in `find . -name '*.in' -print`
265 mv ${oldinfile} ${oldinfile}.old
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.
273 mkdir ${R_HOME}/contrib
274 cd ${RPM_BUILD_DIR}/R-cran
276 if [ -d ${pkg} ]; then
277 mkdir ${R_HOME}/${pkg}
278 for docfile in `ls ${pkg}`; do
287 *) cp -R -P ${pkg}/${docfile} ${R_HOME};;
295 rm -rf $RPM_BUILD_ROOT
296 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_libdir}/R,%{_applnkdir}/Scientific/Numerics}
298 install %{SOURCE26} $RPM_BUILD_ROOT%{_applnkdir}/Scientific/Numerics/%{name}.desktop
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
304 find . -name 'Makefile*' -exec rm -f {} \;
307 cp -R AUTHORS afm bin doc etc include library modules share \
308 $RPM_BUILD_ROOT%{_libdir}/R
311 rm -rf $RPM_BUILD_ROOT
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)
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.
323 # rm -f %{_libdir}/R/doc/html/search/index.txt
324 # rm -f %{_libdir}/R/doc/html/packages.html
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)
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)
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)
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)
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)
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)
358 %defattr(644,root,root,755)
360 %attr(755,root,root) %{_bindir}/R
363 %attr(755,root,root) %{_libdir}/R/bin
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
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/*
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
406 %{_libdir}/R/library/KernSmooth
408 %{_libdir}/R/library/boot
410 %{_libdir}/R/library/cluster
412 %{_libdir}/R/library/foreign
414 %{_libdir}/R/library/grid
416 %{_libdir}/R/library/lattice
418 %{_libdir}/R/library/mgcv
420 %{_libdir}/R/library/nlme
422 %{_libdir}/R/library/rpart
424 %{_libdir}/R/library/survival
428 %defattr(644,root,root,755)
429 %{_libdir}/R/library/acepack
431 %{_libdir}/R/library/bootstrap
433 %{_libdir}/R/library/date
435 %{_libdir}/R/library/e1071
437 %{_libdir}/R/library/fracdiff
439 %{_libdir}/R/library/gee
441 %{_libdir}/R/library/leaps
443 %{_libdir}/R/library/oz
445 %{_libdir}/R/library/polynom
447 %{_libdir}/R/library/princurve
449 %{_libdir}/R/library/quadprog
451 %{_libdir}/R/library/xgobi
455 %defattr(644,root,root,755)
456 %{_libdir}/R/library/mlbench