2 # - move perl R libraries to standard perl location
3 # - script for rpm to autoprovides/autorequires R internals
5 %include /usr/lib/rpm/macros.perl
6 Summary: A language for data analysis and graphics
7 Summary(pl): Jêzyk do analizy danych oraz grafiki
11 License: Mixed (distributable), mostly GPL
12 Group: Development/Languages
13 # CRAN master site: ftp://cran.r-project.org/pub/R/src/
14 Source0: ftp://stat.ethz.ch/R-CRAN/src/base/R-2/%{name}-%{version}.tar.gz
15 # Source0-md5: 92b33fd2c3e770d595c1a472889230d5
16 Source1: %{name}.desktop
17 URL: http://www.r-project.org/
18 BuildRequires: XFree86-devel
19 BuildRequires: autoconf
20 BuildRequires: automake
21 BuildRequires: blas-devel
22 BuildRequires: bzip2-devel
23 BuildRequires: gcc-c++
24 BuildRequires: gcc-g77
25 BuildRequires: gettext-devel
26 BuildRequires: libjpeg-devel >= 6b
27 BuildRequires: libpng-devel >= 1.0.5
28 BuildRequires: libstdc++-devel
29 BuildRequires: libtool
30 BuildRequires: libxml2-devel >= 2.6.26
32 BuildRequires: perl-base >= 1:5.6
33 BuildRequires: readline-devel
34 BuildRequires: rpm-perlprov
35 BuildRequires: tcl-devel
36 BuildRequires: tetex-dvips
37 BuildRequires: tetex-latex
38 BuildRequires: tetex-pdftex
39 BuildRequires: tk-devel
41 BuildRequires: zlib >= 1.1.3
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): perl-base
72 Requires(post): textutils
74 Provides: R-cran-datasets
75 Provides: R-cran-grDevices
76 Provides: R-cran-graphics
78 Provides: R-cran-methods
79 Provides: R-cran-splines
80 Provides: R-cran-stats
81 Provides: R-cran-stats4
82 Provides: R-cran-tcltk
83 Provides: R-cran-tools
84 Provides: R-cran-utils
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 License: GPL, free or free for non-commercial use
105 Group: Development/Languages
106 URL: http://www.ci.tuwien.ac.at/R/
107 Requires(post,postun): R-base
108 Requires(post,postun): perl-base
109 Requires(post,postun): textutils
110 Requires: R-base = %{version}-%{release}
111 Requires: R-cran-KernSmooth
113 Requires: R-cran-boot
114 Requires: R-cran-cluster
115 Requires: R-cran-foreign
116 Requires: R-cran-lattice
117 Requires: R-cran-mgcv
118 Requires: R-cran-nlme
119 Requires: R-cran-rpart
120 Requires: R-cran-survival
123 %description recommended
124 Packages which extend the capabilities of the R base distribution and
125 are distributed on the Comprehensive R Archive Network (CRAN).
127 %description recommended -l pl
128 Pakiety rozszerzaj±ce mo¿liwo¶ci podstawowej dystrybucji jêzyka R,
129 dystrubuowane w archiwum CRAN (Comprehensive R Archive Network).
134 # These files have the path for Perl hard-coded as /usr/local/bin/perl
135 # We need to remove them to avoid dependency problems
136 rm -f ./doc/keyword-test.orig ./etc/undoc/R-funs.orig ./etc/undoc/extrExamp.orig
141 cp -f /usr/share/automake/config.* .
148 --without-recommended-packages
158 rm -rf $RPM_BUILD_ROOT
159 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_libdir}/R,%{_includedir},%{_desktopdir}}
162 rhome=$RPM_BUILD_ROOT%{_libdir}/R \
163 mandir=$RPM_BUILD_ROOT%{_mandir} \
164 bindir=$RPM_BUILD_ROOT%{_bindir} \
167 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
169 find $RPM_BUILD_ROOT%{_libdir}/R -name 'Makefile*' -exec rm -f {} \;
170 mv $RPM_BUILD_ROOT%{_libdir}/R/lib/libR*.so $RPM_BUILD_ROOT%{_libdir}
171 mv $RPM_BUILD_ROOT%{_libdir}/%{name}/include $RPM_BUILD_ROOT%{_includedir}/R
172 ln -sf %{_includedir}/R $RPM_BUILD_ROOT%{_libdir}/R/include
173 rm $RPM_BUILD_ROOT%{_bindir}/%{name}
174 sed -i -e "s#$RPM_BUILD_ROOT##g" $RPM_BUILD_ROOT%{_libdir}/%{name}/bin/%{name}
175 ln -sf %{_libdir}/%{name}/bin/%{name} $RPM_BUILD_ROOT%{_bindir}/%{name}
178 rm -rf $RPM_BUILD_ROOT
181 (cd %{_libdir}/R/library; umask 022; cat */CONTENTS > ../doc/html/search/index.txt
182 R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --htmllist)
185 %postun -p /sbin/ldconfig
188 %defattr(644,root,root,755)
189 %doc COPYRIGHTS FAQ NEWS README RESOURCES THANKS Y2K
192 %attr(755,root,root) %{_bindir}/R
194 %attr(755,root,root) %{_libdir}/R/bin
195 %attr(755,root,root) %{_libdir}/libR*.so
201 %dir %{_libdir}/R/library
202 # %{_libdir}/R/doc %except %{_libdir}/R/doc/html/{packages.html,search/index.txt}
203 %dir %{_libdir}/R/doc
204 %{_libdir}/R/doc/[KRm]*
205 %dir %{_libdir}/R/doc/html
206 %{_libdir}/R/doc/html/*.css
207 %{_libdir}/R/doc/html/[Ra-lr-u]*.html
208 %{_libdir}/R/doc/html/packages-head.html
209 %{_libdir}/R/doc/html/*.jpg
210 %dir %{_libdir}/R/doc/html/search
211 %{_libdir}/R/doc/html/search/[A-Z]*
212 %ghost %{_libdir}/R/doc/html/search/index.txt
213 %ghost %{_libdir}/R/doc/html/packages.html
214 %{_desktopdir}/*.desktop
216 %attr(755,root,root) %{_libdir}/%{name}/modules
218 %{_libdir}/%{name}/library/base
219 %{_libdir}/%{name}/library/datasets
220 %{_libdir}/%{name}/library/grid
221 %{_libdir}/%{name}/library/graphics
222 %{_libdir}/%{name}/library/grDevices
223 %{_libdir}/%{name}/library/methods
224 %{_libdir}/%{name}/library/utils
225 %{_libdir}/%{name}/library/tcltk
226 %{_libdir}/%{name}/library/splines
227 %{_libdir}/%{name}/library/stats
228 %{_libdir}/%{name}/library/stats4
229 %{_libdir}/%{name}/library/tools
232 %defattr(644,root,root,755)