2 # - script for rpm to autoprovides/autorequires R internals
4 %define KernSmooth_version 2.22r19
5 %define VR_version 7.2r30
6 %define boot_version 1.2r27
7 %define cluster_version 1.11.4
8 %define foreign_version 0.8r18
9 %define lattice_version 0.14r16
10 %define mgcv_version 1.3r22
11 %define nlme_version 3.1r78
12 %define rpart_version 3.1r33
13 %define survival_version 2.30
15 %include /usr/lib/rpm/macros.perl
16 Summary: A language for data analysis and graphics
17 Summary(pl): Jêzyk do analizy danych oraz grafiki
21 License: Mixed (distributable), mostly GPL
22 Group: Development/Languages
23 # CRAN master site: ftp://cran.r-project.org/pub/R/src/
24 Source0: ftp://stat.ethz.ch/R-CRAN/src/base/R-2/%{name}-%{version}.tar.gz
25 # Source0-md5: 92b33fd2c3e770d595c1a472889230d5
26 Source1: %{name}.desktop
27 URL: http://www.r-project.org/
28 BuildRequires: XFree86-devel
29 BuildRequires: autoconf
30 BuildRequires: automake
31 BuildRequires: blas-devel
32 BuildRequires: bzip2-devel
33 BuildRequires: gcc-c++
34 BuildRequires: gcc-g77
35 BuildRequires: gettext-devel
36 BuildRequires: lapack-devel
37 BuildRequires: libjpeg-devel >= 6b
38 BuildRequires: libpng-devel >= 1.0.5
39 BuildRequires: libstdc++-devel
40 BuildRequires: libtool
41 BuildRequires: libxml2-devel >= 2.6.26
43 BuildRequires: pcre-devel
44 BuildRequires: perl-base >= 1:5.6
45 BuildRequires: readline-devel
46 BuildRequires: rpm-perlprov
47 BuildRequires: tcl-devel
48 BuildRequires: tetex-dvips
49 BuildRequires: tetex-latex
50 BuildRequires: tetex-pdftex
51 BuildRequires: tk-devel
53 BuildRequires: zlib-devel >= 1.1.3
55 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
58 A system for statistical computation and graphics. R consists of a
59 language plus a run-time environment with graphics, a debugger, access
60 to certain system functions, and the ability to run programs stored in
63 The design of R has been heavily influenced by two existing languages:
64 Becker, Chambers & Wilks' S and Sussman's Scheme. Whereas the
65 resulting language is very similar in appearance to S, the underlying
66 implementation and semantics are derived from Scheme.
69 System do obliczeñ statystycznych i grafiki. R sk³ada siê z jêzyka
70 oraz ¶rodowiska uruchomieniowego z grafik±, debuggerem, dostêpem do
71 niektórych funkcji systemowych oraz mo¿liwo¶ci± uruchamiania programów
72 zapisanych w skryptach.
74 Jêzyk R by³ zainspirowany dwoma istniej±cymi jêzykami: S (Beckera,
75 Chambersa i Wilksa) oraz Scheme (Sussmana). R jest podobny do S, ale
76 implementacja i semantyka wywodzi siê ze Scheme.
79 Summary: The R base distribution
80 Summary(pl): Podstawowa dystrybucja R
81 License: GPL v2 / LGPL
82 Group: Development/Languages
83 Requires(post): perl-base
84 Requires(post): textutils
86 Provides: R-cran-datasets
87 Provides: R-cran-grDevices
88 Provides: R-cran-graphics
90 Provides: R-cran-methods
91 Provides: R-cran-splines
92 Provides: R-cran-stats
93 Provides: R-cran-stats4
94 Provides: R-cran-tcltk
95 Provides: R-cran-tools
96 Provides: R-cran-utils
99 R is a language and run-time environment for carrying out interactive
100 statistical data analysis. It is not entirely dissimilar to the S
101 language developed at AT&T Bell Laboratories (and now Lucent
102 Technologies). Indeed, S users will find the environment quite
103 familiar and a good deal of S software will run without change under
106 %description base -l pl
107 R jest jêzykiem i ¶rodowiskiem uruchomieniowym do interaktywnej
108 analizy danych statystycznych. R nie jest ca³kowicie zgodny z jêzykiem
109 S opracowanym w AT&T Bell Laboratiories (a teraz Lucent Technologies),
110 mimo to u¿ytkownicy S zauwa¿± zbli¿one ¶rodowisko, a du¿a czê¶æ
111 oprogramowania w S bêdzie dzia³a³a bez zmian w R.
114 Summary: Recommended contributed packages for the R language
115 Summary(pl): Zalecane dodatkowe pakiety do jêzyka R
116 License: GPL, free or free for non-commercial use
117 Group: Development/Languages
118 URL: http://www.ci.tuwien.ac.at/R/
119 Requires(post,postun): R-base
120 Requires(post,postun): perl-base
121 Requires(post,postun): textutils
122 Requires: R-base = %{version}-%{release}
123 Obsoletes: R-cran-KernSmooth
125 Obsoletes: R-cran-MASS
126 Obsoletes: R-cran-class
127 Obsoletes: R-cran-nnet
128 Obsoletes: R-cran-spatial
129 Obsoletes: R-cran-boot
130 Obsoletes: R-cran-cluster
131 Obsoletes: R-cran-foreign
132 Obsoletes: R-cran-lattice
133 Obsoletes: R-cran-mgcv
134 Obsoletes: R-cran-nlme
135 Obsoletes: R-cran-rpart
136 Obsoletes: R-cran-survival
137 Provides: R-cran-KernSmooth = %{KernSmooth_version}
138 Provides: R-cran-VR = %{VR_version}
139 Provides: R-cran-MASS = %{VR_version}
140 Provides: R-cran-class = %{VR_version}
141 Provides: R-cran-nnet = %{VR_version}
142 Provides: R-cran-spatial = %{VR_version}
143 Provides: R-cran-boot = %{boot_version}
144 Provides: R-cran-cluster = %{cluster_version}
145 Provides: R-cran-foreign = %{foreign_version}
146 Provides: R-cran-lattice = %{lattice_version}
147 Provides: R-cran-mgcv = %{mgcv_version}
148 Provides: R-cran-nlme = %{nlme_version}
149 Provides: R-cran-rpart = %{rpart_version}
150 Provides: R-cran-survival = %{survival_version}
153 %description recommended
154 Packages which extend the capabilities of the R base distribution and
155 are distributed on the Comprehensive R Archive Network (CRAN).
157 %description recommended -l pl
158 Pakiety rozszerzaj±ce mo¿liwo¶ci podstawowej dystrybucji jêzyka R,
159 dystrubuowane w archiwum CRAN (Comprehensive R Archive Network).
169 --with-system-bzlib \
177 --with-recommended-packages
180 LANG=C LC_ALL=C %{__make} check
187 rm -rf $RPM_BUILD_ROOT
188 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_libdir}/R,%{_includedir},%{_desktopdir}}
189 install -d $RPM_BUILD_ROOT%{perl_vendorlib}/{R,Text}
192 rhome=$RPM_BUILD_ROOT%{_libdir}/R \
193 mandir=$RPM_BUILD_ROOT%{_mandir} \
194 bindir=$RPM_BUILD_ROOT%{_bindir} \
197 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
199 find $RPM_BUILD_ROOT%{_libdir}/R -name 'Makefile*' -exec rm -f {} \;
200 mv $RPM_BUILD_ROOT%{_libdir}/R/lib/libR*.so $RPM_BUILD_ROOT%{_libdir}
201 mv $RPM_BUILD_ROOT%{_libdir}/%{name}/include $RPM_BUILD_ROOT%{_includedir}/R
202 ln -sf %{_includedir}/R $RPM_BUILD_ROOT%{_libdir}/R/include
203 rm $RPM_BUILD_ROOT%{_bindir}/%{name}
204 sed -i -e "s#$RPM_BUILD_ROOT##g" $RPM_BUILD_ROOT%{_libdir}/%{name}/bin/%{name}
205 ln -sf %{_libdir}/%{name}/bin/%{name} $RPM_BUILD_ROOT%{_bindir}/%{name}
207 (cd $RPM_BUILD_ROOT%{_libdir}/%{name}/library/share/perl/R/
208 ln -s * $RPM_BUILD_ROOT%{perl_vendorlib}/R/)
209 (cd $RPM_BUILD_ROOT%{_libdir}/%{name}/library/share/perl/Text
210 ln -s * $RPM_BUILD_ROOT%{perl_vendorlib}/Text/)
213 rm -rf $RPM_BUILD_ROOT
216 (cd %{_libdir}/R/library; umask 022; cat */CONTENTS > ../doc/html/search/index.txt
217 R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --htmllist)
220 %postun -p /sbin/ldconfig
223 %defattr(644,root,root,755)
224 %doc NEWS README doc/{AUTHORS,COPYRIGHTS,FAQ,RESOURCES,THANKS}
227 %attr(755,root,root) %{_bindir}/R
229 %attr(755,root,root) %{_libdir}/R/bin
230 %attr(755,root,root) %{_libdir}/libR*.so
237 %{_libdir}/R/SVN-REVISION
238 %dir %{_libdir}/R/library
239 %{_libdir}/%{name}/library/R.css
240 # %{_libdir}/R/doc %except %{_libdir}/R/doc/html/{packages.html,search/index.txt}
241 %dir %{_libdir}/R/doc
242 %{_libdir}/R/doc/[KRm]*
243 %dir %{_libdir}/R/doc/html
244 %{_libdir}/R/doc/html/*.css
245 %{_libdir}/R/doc/html/[Ra-lr-u]*.html
246 %{_libdir}/R/doc/html/packages-head.html
247 %{_libdir}/R/doc/html/*.jpg
248 %dir %{_libdir}/R/doc/html/search
249 %{_libdir}/R/doc/html/search/[A-Z]*
250 %ghost %{_libdir}/R/doc/html/search/index.txt
251 %ghost %{_libdir}/R/doc/html/packages.html
252 %{_desktopdir}/*.desktop
254 %dir %{perl_vendorlib}/R
255 %{perl_vendorlib}/R/*
256 %{perl_vendorlib}/Text/*
258 %attr(755,root,root) %{_libdir}/%{name}/modules
260 %{_libdir}/%{name}/library/KernSmooth
261 %{_libdir}/%{name}/library/MASS
262 %{_libdir}/%{name}/library/base
263 %{_libdir}/%{name}/library/boot
264 %{_libdir}/%{name}/library/class
265 %{_libdir}/%{name}/library/cluster
266 %{_libdir}/%{name}/library/datasets
267 %{_libdir}/%{name}/library/foreign
268 %{_libdir}/%{name}/library/grDevices
269 %{_libdir}/%{name}/library/graphics
270 %{_libdir}/%{name}/library/grid
271 %{_libdir}/%{name}/library/lattice
272 %{_libdir}/%{name}/library/methods
273 %{_libdir}/%{name}/library/mgcv
274 %{_libdir}/%{name}/library/nlme
275 %{_libdir}/%{name}/library/nnet
276 %{_libdir}/%{name}/library/rpart
277 %{_libdir}/%{name}/library/spatial
278 %{_libdir}/%{name}/library/survival
279 %{_libdir}/%{name}/library/splines
280 %{_libdir}/%{name}/library/stats
281 %{_libdir}/%{name}/library/stats4
282 %{_libdir}/%{name}/library/tcltk
283 %{_libdir}/%{name}/library/tools
284 %{_libdir}/%{name}/library/utils
287 %defattr(644,root,root,755)