2 # - move perl R libraries to standard perl location
5 %bcond_without gnome # without GNOME support
7 Summary: A language for data analysis and graphics
8 Summary(pl): Jêzyk do analizy danych oraz grafiki
12 License: Mixed (distributable), mostly GPL
13 Group: Development/Languages
14 # CRAN master site: ftp://cran.r-project.org/pub/R/src/
15 Source0: ftp://stat.ethz.ch/R-CRAN/src/base/R-2/%{name}-%{version}.tar.gz
16 # Source0-md5: fb47b1fdef4323031e24d541a2f36b2b
17 # Source0-size: 10676072
18 Source1: %{name}.desktop
19 URL: http://www.r-project.org/
20 BuildRequires: XFree86-devel
21 BuildRequires: autoconf
22 BuildRequires: automake
23 BuildRequires: blas-devel
24 BuildRequires: gcc-c++
25 BuildRequires: gcc-g77
26 BuildRequires: gettext-devel
27 BuildRequires: libjpeg-devel >= 6b
28 BuildRequires: libpng-devel >= 1.0.5
29 BuildRequires: libstdc++-devel
30 BuildRequires: libtool
31 BuildRequires: libxml-devel
32 BuildRequires: perl-base >= 1:5.6
33 BuildRequires: readline-devel
34 BuildRequires: tetex-latex
35 BuildRequires: tetex-dvips
36 BuildRequires: tetex-pdftex
38 BuildRequires: zlib >= 1.1.3
41 %{?with_gnome:BuildRequires: gnome-libs-devel}
42 %{?with_gnome:BuildRequires: ORBit-devel}
43 %{?with_gnome:BuildRequires: libglade-gnome-devel}
44 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47 A system for statistical computation and graphics. R consists of a
48 language plus a run-time environment with graphics, a debugger, access
49 to certain system functions, and the ability to run programs stored in
52 The design of R has been heavily influenced by two existing languages:
53 Becker, Chambers & Wilks' S and Sussman's Scheme. Whereas the
54 resulting language is very similar in appearance to S, the underlying
55 implementation and semantics are derived from Scheme.
58 System do obliczeñ statystycznych i grafiki. R sk³ada siê z jêzyka
59 oraz ¶rodowiska uruchomieniowego z grafik±, debuggerem, dostêpem do
60 niektórych funkcji systemowych oraz mo¿liwo¶ci± uruchamiania programów
61 zapisanych w skryptach.
63 Jêzyk R by³ zainspirowany dwoma istniej±cymi jêzykami: S (Beckera,
64 Chambersa i Wilksa) oraz Scheme (Sussmana). R jest podobny do S, ale
65 implementacja i semantyka wywodzi siê ze Scheme.
68 Summary: The R base distribution
69 Summary(pl): Podstawowa dystrybucja R
70 License: GPL v2 / LGPL
71 Group: Development/Languages
72 Requires(post): textutils
73 Requires(post): perl-base
88 R is a language and run-time environment for carrying out interactive
89 statistical data analysis. It is not entirely dissimilar to the S
90 language developed at AT&T Bell Laboratories (and now Lucent
91 Technologies). Indeed, S users will find the environment quite
92 familiar and a good deal of S software will run without change under
95 %description base -l pl
96 R jest jêzykiem i ¶rodowiskiem uruchomieniowym do interaktywnej
97 analizy danych statystycznych. R nie jest ca³kowicie zgodny z jêzykiem
98 S opracowanym w AT&T Bell Laboratiories (a teraz Lucent Technologies),
99 mimo to u¿ytkownicy S zauwa¿± zbli¿one ¶rodowisko, a du¿a czê¶æ
100 oprogramowania w S bêdzie dzia³a³a bez zmian w R.
103 Summary: Recommended contributed packages for the R language
104 Summary(pl): Zalecane dodatkowe pakiety do jêzyka R
105 Group: Development/Languages
106 Provides: R-KernSmooth
116 License: GPL, free or free for non-commercial use
117 URL: http://www.ci.tuwien.ac.at/R/
118 Requires(post,postun): R-base
119 Requires(post,postun): perl-base
120 Requires(post,postun): textutils
121 Requires: R-base = %{version}-%{release}
122 Obsoletes: R-survival4
129 %description recommended
130 Packages which extend the capabilities of the R base distribution and
131 are distributed on the Comprehensive R Archive Network (CRAN).
133 %description recommended -l pl
134 Pakiety rozszerzaj±ce mo¿liwo¶ci podstawowej dystrybucji jêzyka R,
135 dystrubuowane w archiwum CRAN (Comprehensive R Archive Network).
138 Summary: Contributed packages for the R language
139 Summary(pl): Dodatkowe pakiety do jêzyka R
141 Group: Development/Languages
142 URL: http://www.ci.tuwien.ac.at/R/
143 Requires(post,postun): R-base
144 Requires(post,postun): perl-base
145 Requires(post,postun): textutils
146 Requires: R-base = %{version}-%{release}
149 Provides: R-bootstrap
157 Provides: R-princurve
160 Obsoletes: R-principal.curve
163 Packages which extend the capabilities of the R base distribution and
164 are distributed on the Comprehensive R Archive Network (CRAN).
166 %description contrib -l pl
167 Pakiety rozszerzaj±ce mo¿liwo¶ci podstawowej dystrybucji jêzyka R,
168 dystrubuowane w archiwum CRAN (Comprehensive R Archive Network).
171 Summary: Machine learning benchmarks
172 Summary(pl): Testy wydajno¶ci uczenia maszyny
173 Group: Development/Languages
175 URL: http://www.ics.uci.edu/~mlearn/MLRepository.html
176 Requires(post,postun): R-base
177 Requires(post,postun): perl-base
178 Requires(post,postun): textutils
179 Requires: R-base = %{version}-%{release}
182 R package which contains a collection of real-world datasets and
183 functions for creating artificial datasets that work as benchmarks for
184 machine learning methods.
186 %description mlbench -l pl
187 Ten podpakiet R zawiera zestaw rzeczywistych danych i funkcji do
188 tworzenia sztucznych danych s³u¿±cych jako test wydajno¶ci metod
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 --with%{!?with_gnome:out}-gnome \
209 --without-recommended-packages
219 rm -rf $RPM_BUILD_ROOT
220 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_libdir}/R,%{_includedir},%{_desktopdir}}
223 rhome=$RPM_BUILD_ROOT%{_libdir}/R \
224 mandir=$RPM_BUILD_ROOT%{_mandir} \
225 bindir=$RPM_BUILD_ROOT%{_bindir} \
228 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
230 find $RPM_BUILD_ROOT%{_libdir}/R -name 'Makefile*' -exec rm -f {} \;
231 mv $RPM_BUILD_ROOT%{_libdir}/R/lib/libR*.so $RPM_BUILD_ROOT%{_libdir}
232 mv $RPM_BUILD_ROOT%{_libdir}/%{name}/include $RPM_BUILD_ROOT%{_includedir}/R
233 ln -sf %{_includedir}/R $RPM_BUILD_ROOT%{_libdir}/R/include
234 rm $RPM_BUILD_ROOT%{_bindir}/%{name}
235 sed -i -e "s#$RPM_BUILD_ROOT##g" $RPM_BUILD_ROOT%{_libdir}/%{name}/bin/%{name}
236 ln -sf %{_libdir}/%{name}/bin/%{name} $RPM_BUILD_ROOT%{_bindir}/%{name}
239 rm -rf $RPM_BUILD_ROOT
242 (cd %{_libdir}/R/library; umask 022; cat */CONTENTS > ../doc/html/search/index.txt
243 R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --htmllist)
246 %postun -p /sbin/ldconfig
249 %defattr(644,root,root,755)
250 %doc COPYRIGHTS FAQ NEWS README RESOURCES THANKS Y2K
253 %attr(755,root,root) %{_bindir}/R
256 %attr(755,root,root) %{_libdir}/R/bin
257 %attr(755,root,root) %{_libdir}/libR*.so
263 %dir %{_libdir}/R/library
264 # %{_libdir}/R/doc %except %{_libdir}/R/doc/html/{packages.html,search/index.txt}
265 %dir %{_libdir}/R/doc
266 %{_libdir}/R/doc/[KRm]*
267 %dir %{_libdir}/R/doc/html
268 %{_libdir}/R/doc/html/*.css
269 %{_libdir}/R/doc/html/[Ra-lr-u]*.html
270 %{_libdir}/R/doc/html/packages-head.html
271 %{_libdir}/R/doc/html/*.jpg
272 %dir %{_libdir}/R/doc/html/search
273 %{_libdir}/R/doc/html/search/[A-Z]*
274 %ghost %{_libdir}/R/doc/html/search/index.txt
275 %ghost %{_libdir}/R/doc/html/packages.html
278 %attr(755,root,root) %{_libdir}/%{name}/modules
280 %{_libdir}/%{name}/library/base
281 %{_libdir}/%{name}/library/datasets
282 %{_libdir}/%{name}/library/grid
283 %{_libdir}/%{name}/library/graphics
284 %{_libdir}/%{name}/library/grDevices
285 %{_libdir}/%{name}/library/methods
286 %{_libdir}/%{name}/library/utils
287 %{_libdir}/%{name}/library/tcltk
288 %{_libdir}/%{name}/library/splines
289 %{_libdir}/%{name}/library/stats
290 %{_libdir}/%{name}/library/stats4
291 %{_libdir}/%{name}/library/tools