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: 3900bca37cabb4b76b8d736d51cc9251
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: libjpeg-devel >= 6b
27 BuildRequires: libpng-devel >= 1.0.5
28 BuildRequires: libstdc++-devel
29 BuildRequires: libtool
30 BuildRequires: libxml-devel
31 BuildRequires: perl-base >= 1:5.6
32 BuildRequires: readline-devel
33 BuildRequires: tetex-latex
34 BuildRequires: tetex-dvips
35 BuildRequires: tetex-pdftex
37 BuildRequires: zlib >= 1.1.3
40 %{?with_gnome:BuildRequires: gnome-libs-devel}
41 %{?with_gnome:BuildRequires: ORBit-devel}
42 %{?with_gnome:BuildRequires: libglade-gnome-devel}
43 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
46 A system for statistical computation and graphics. R consists of a
47 language plus a run-time environment with graphics, a debugger, access
48 to certain system functions, and the ability to run programs stored in
51 The design of R has been heavily influenced by two existing languages:
52 Becker, Chambers & Wilks' S and Sussman's Scheme. Whereas the
53 resulting language is very similar in appearance to S, the underlying
54 implementation and semantics are derived from Scheme.
57 System do obliczeñ statystycznych i grafiki. R sk³ada siê z jêzyka
58 oraz ¶rodowiska uruchomieniowego z grafik±, debuggerem, dostêpem do
59 niektórych funkcji systemowych oraz mo¿liwo¶ci± uruchamiania programów
60 zapisanych w skryptach.
62 Jêzyk R by³ zainspirowany dwoma istniej±cymi jêzykami: S (Beckera,
63 Chambersa i Wilksa) oraz Scheme (Sussmana). R jest podobny do S, ale
64 implementacja i semantyka wywodzi siê ze Scheme.
67 Summary: The R base distribution
68 Summary(pl): Podstawowa dystrybucja R
69 License: GPL v2 / LGPL
70 Group: Development/Languages
71 Requires(post): textutils
72 Requires(post): perl-base
87 R is a language and run-time environment for carrying out interactive
88 statistical data analysis. It is not entirely dissimilar to the S
89 language developed at AT&T Bell Laboratories (and now Lucent
90 Technologies). Indeed, S users will find the environment quite
91 familiar and a good deal of S software will run without change under
94 %description base -l pl
95 R jest jêzykiem i ¶rodowiskiem uruchomieniowym do interaktywnej
96 analizy danych statystycznych. R nie jest ca³kowicie zgodny z jêzykiem
97 S opracowanym w AT&T Bell Laboratiories (a teraz Lucent Technologies),
98 mimo to u¿ytkownicy S zauwa¿± zbli¿one ¶rodowisko, a du¿a czê¶æ
99 oprogramowania w S bêdzie dzia³a³a bez zmian w R.
102 Summary: Recommended contributed packages for the R language
103 Summary(pl): Zalecane dodatkowe pakiety do jêzyka R
104 Group: Development/Languages
105 Provides: R-KernSmooth
115 License: GPL, free or free for non-commercial use
116 URL: http://www.ci.tuwien.ac.at/R/
117 Requires(post,postun): R-base
118 Requires(post,postun): perl-base
119 Requires(post,postun): textutils
120 Requires: R-base = %{version}-%{release}
121 Obsoletes: R-survival4
128 %description recommended
129 Packages which extend the capabilities of the R base distribution and
130 are distributed on the Comprehensive R Archive Network (CRAN).
132 %description recommended -l pl
133 Pakiety rozszerzaj±ce mo¿liwo¶ci podstawowej dystrybucji jêzyka R,
134 dystrubuowane w archiwum CRAN (Comprehensive R Archive Network).
137 Summary: Contributed packages for the R language
138 Summary(pl): Dodatkowe pakiety do jêzyka R
140 Group: Development/Languages
141 URL: http://www.ci.tuwien.ac.at/R/
142 Requires(post,postun): R-base
143 Requires(post,postun): perl-base
144 Requires(post,postun): textutils
145 Requires: R-base = %{version}-%{release}
148 Provides: R-bootstrap
156 Provides: R-princurve
159 Obsoletes: R-principal.curve
162 Packages which extend the capabilities of the R base distribution and
163 are distributed on the Comprehensive R Archive Network (CRAN).
165 %description contrib -l pl
166 Pakiety rozszerzaj±ce mo¿liwo¶ci podstawowej dystrybucji jêzyka R,
167 dystrubuowane w archiwum CRAN (Comprehensive R Archive Network).
170 Summary: Machine learning benchmarks
171 Summary(pl): Testy wydajno¶ci uczenia maszyny
172 Group: Development/Languages
174 URL: http://www.ics.uci.edu/~mlearn/MLRepository.html
175 Requires(post,postun): R-base
176 Requires(post,postun): perl-base
177 Requires(post,postun): textutils
178 Requires: R-base = %{version}-%{release}
181 R package which contains a collection of real-world datasets and
182 functions for creating artificial datasets that work as benchmarks for
183 machine learning methods.
185 %description mlbench -l pl
186 Ten podpakiet R zawiera zestaw rzeczywistych danych i funkcji do
187 tworzenia sztucznych danych s³u¿±cych jako test wydajno¶ci metod
193 # These files have the path for PERL hard-coded as /usr/local/bin/perl
194 # We need to remove them to avoid dependency problems
195 rm -f ./doc/keyword-test.orig ./etc/undoc/R-funs.orig ./etc/undoc/extrExamp.orig
200 cp -f /usr/share/automake/config.* .
202 --with%{!?with_gnome:out}-gnome \
208 --without-recommended-packages
218 rm -rf $RPM_BUILD_ROOT
219 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_libdir}/R,%{_includedir},%{_desktopdir}}
222 rhome=$RPM_BUILD_ROOT%{_libdir}/R \
223 mandir=$RPM_BUILD_ROOT%{_mandir} \
224 bindir=$RPM_BUILD_ROOT%{_bindir} \
227 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
229 find $RPM_BUILD_ROOT%{_libdir}/R -name 'Makefile*' -exec rm -f {} \;
230 mv $RPM_BUILD_ROOT%{_libdir}/R/lib/libR*.so $RPM_BUILD_ROOT%{_libdir}
231 mv $RPM_BUILD_ROOT%{_libdir}/%{name}/include $RPM_BUILD_ROOT%{_includedir}/R
232 ln -sf %{_includedir}/R $RPM_BUILD_ROOT%{_libdir}/R/include
233 rm $RPM_BUILD_ROOT%{_bindir}/%{name}
234 sed -i -e "s#$RPM_BUILD_ROOT##g" $RPM_BUILD_ROOT%{_libdir}/%{name}/bin/%{name}
235 ln -sf %{_libdir}/%{name}/bin/%{name} $RPM_BUILD_ROOT%{_bindir}/%{name}
238 rm -rf $RPM_BUILD_ROOT
241 (cd %{_libdir}/R/library; umask 022; cat */CONTENTS > ../doc/html/search/index.txt
242 R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --htmllist)
245 %postun -p /sbin/ldconfig
248 %defattr(644,root,root,755)
249 %doc COPYRIGHTS FAQ NEWS README RESOURCES THANKS Y2K
252 %attr(755,root,root) %{_bindir}/R
255 %attr(755,root,root) %{_libdir}/R/bin
256 %attr(755,root,root) %{_libdir}/libR*.so
262 %dir %{_libdir}/R/library
263 # %{_libdir}/R/doc %except %{_libdir}/R/doc/html/{packages.html,search/index.txt}
264 %dir %{_libdir}/R/doc
265 %{_libdir}/R/doc/[KRm]*
266 %dir %{_libdir}/R/doc/html
267 %{_libdir}/R/doc/html/*.css
268 %{_libdir}/R/doc/html/[Ra-lr-u]*.html
269 %{_libdir}/R/doc/html/packages-head.html
270 %{_libdir}/R/doc/html/*.jpg
271 %dir %{_libdir}/R/doc/html/search
272 %{_libdir}/R/doc/html/search/[A-Z]*
273 %ghost %{_libdir}/R/doc/html/search/index.txt
274 %ghost %{_libdir}/R/doc/html/packages.html
277 %attr(755,root,root) %{_libdir}/%{name}/modules
279 %{_libdir}/%{name}/library/base
280 %{_libdir}/%{name}/library/datasets
281 %{_libdir}/%{name}/library/grid
282 %{_libdir}/%{name}/library/graphics
283 %{_libdir}/%{name}/library/grDevices
284 %{_libdir}/%{name}/library/methods
285 %{_libdir}/%{name}/library/utils
286 %{_libdir}/%{name}/library/tcltk
287 %{_libdir}/%{name}/library/splines
288 %{_libdir}/%{name}/library/stats
289 %{_libdir}/%{name}/library/stats4
290 %{_libdir}/%{name}/library/tools