]> git.pld-linux.org Git - packages/R.git/blob - R.spec
- removed source 25 from older version.
[packages/R.git] / R.spec
1 #
2 # Conditional build:
3 # _without_gnome        - without GNOME support
4 #
5 Summary:        A language for data analysis and graphics
6 Summary(pl):    Jêzyk do analizy danych oraz grafiki
7 Name:           R
8 Version:        1.8.0
9 Release:        2
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 Source25:       ftp://stat.ethz.ch/R-CRAN/src/contrib/Archive/integrate_2.2-3.tar.gz
64 # Source25-md5: 40cc14374a0992871dd651d41289b3e6
65 Source26:       %{name}.desktop
66 URL:            http://www.r-project.org/
67 BuildRequires:  autoconf
68 BuildRequires:  automake
69 BuildRequires:  libstdc++-devel
70 BuildRequires:  gcc-c++
71 BuildRequires:  gcc-g77
72 BuildRequires:  perl >= 5.004
73 BuildRequires:  libtool
74 BuildRequires:  tetex-latex
75 BuildRequires:  tetex-dvips
76 BuildRequires:  tetex-pdftex
77 BuildRequires:  zip
78 BuildRequires:  XFree86-devel
79 BuildRequires:  blas-devel
80 BuildRequires:  libpng-devel >= 1.0.5
81 BuildRequires:  libjpeg-devel >= 6b
82 BuildRequires:  libxml-devel
83 BuildRequires:  zlib >= 1.1.3
84 BuildRequires:  readline-devel
85 #BuildRequires: lpr
86 %{!?_without_gnome:BuildRequires:       gnome-libs-devel}
87 %{!?_without_gnome:BuildRequires:       ORBit-devel}
88 %{!?_without_gnome:BuildRequires:       libglade-gnome-devel}
89 Provides:       R-base
90 Provides:       R-contrib
91 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
92
93 %description
94 A system for statistical computation and graphics. R consists of a
95 language plus a run-time environment with graphics, a debugger, access
96 to certain system functions, and the ability to run programs stored in
97 script files.
98
99 The design of R has been heavily influenced by two existing languages:
100 Becker, Chambers & Wilks' S and Sussman's Scheme. Whereas the
101 resulting language is very similar in appearance to S, the underlying
102 implementation and semantics are derived from Scheme.
103
104 %description -l pl
105 System do obliczeñ statystycznych i grafiki. R sk³ada siê z jêzyka
106 oraz ¶rodowiska uruchomieniowego z grafik±, debuggerem, dostêpem do
107 niektórych funkcji systemowych oraz mo¿liwo¶ci± uruchamiania programów
108 zapisanych w skryptach.
109
110 Jêzyk R by³ zainspirowany dwoma istniej±cymi jêzykami: S (Beckera,
111 Chambersa i Wilksa) oraz Scheme (Sussmana). R jest podobny do S, ale
112 implementacja i semantyka wywodzi siê ze Scheme.
113
114 %package base
115 Summary:        The R base distribution
116 Summary(pl):    Podstawowa dystrybucja R
117 License:        GPL v2 / LGPL
118 Group:          Development/Languages
119 Requires(post): textutils
120 Requires(post): perl
121 Provides:       R-ctest R-eda R-lqs R-methods R-modreg R-mva R-nls R-splines
122 Provides:       R-stepfun R-tcltk R-tools R-ts
123
124 %description base
125 R is a language and run-time environment for carrying out interactive
126 statistical data analysis. It is not entirely dissimilar to the S
127 language developed at AT&T Bell Laboratories (and now Lucent
128 Technologies). Indeed, S users will find the environment quite
129 familiar and a good deal of S software will run without change under
130 R.
131
132 %description base -l pl
133 R jest jêzykiem i ¶rodowiskiem uruchomieniowym do interaktywnej
134 analizy danych statystycznych. R nie jest ca³kowicie zgodny z jêzykiem
135 S opracowanym w AT&T Bell Laboratiories (a teraz Lucent Technologies),
136 mimo to u¿ytkownicy S zauwa¿± zbli¿one ¶rodowisko, a du¿a czê¶æ
137 oprogramowania w S bêdzie dzia³a³a bez zmian w R.
138
139 %package recommended
140 Summary:        Recommended contributed packages for the R language
141 Summary(pl):    Zalecane dodatkowe pakiety do jêzyka R
142 Group:          Development/Languages
143 Provides:       R-KernSmooth R-VR R-boot R-cluster R-foreign R-grid
144 Provides:       R-lattice R-mgcv R-nlme R-rpart R-survival
145 License:        GPL, free or free for non-commercial use
146 URL:            http://www.ci.tuwien.ac.at/R/
147 Requires(post,postun):  R-base
148 Requires(post,postun):  textutils
149 Requires(post,postun):  perl
150 Requires:       R-base >= %{version}
151 Obsoletes:      R-survival4 R-MASS R-clus R-class R-nnet R-spatial
152
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).
156
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).
160
161 %package contrib
162 Summary:        Contributed packages for the R language
163 Summary(pl):    Dodatkowe pakiety do jêzyka R
164 License:        Mixed
165 Group:          Development/Languages
166 URL:            http://www.ci.tuwien.ac.at/R/
167 Requires(post,postun):  R-base
168 Requires(post,postun):  textutils
169 Requires(post,postun):  perl
170 Requires:       R-base >= %{version}
171 Requires:       R-VR
172 Provides:       R-acepack R-bootstrap R-date R-e1071 R-fracdiff R-gee
173 Provides:       R-integrate R-leaps R-oz R-polynom R-princurve R-quadprog
174 Provides:       R-xgobi
175 Obsoletes:      R-principal.curve
176
177 %description contrib
178 Packages which extend the capabilities of the R base distribution and
179 are distributed on the Comprehensive R Archive Network (CRAN).
180
181 %description contrib -l pl
182 Pakiety rozszerzaj±ce mo¿liwo¶ci podstawowej dystrybucji jêzyka R,
183 dystrubuowane w archiwum CRAN (Comprehensive R Archive Network).
184
185 %package mlbench
186 Summary:        Machine learning benchmarks
187 Summary(pl):    Testy wydajno¶ci uczenia maszyny
188 Group:          Development/Languages
189 License:        GPL
190 URL:            http://www.ics.uci.edu/~mlearn/MLRepository.html
191 Requires(post,postun):  R-base
192 Requires(post,postun):  textutils
193 Requires(post,postun):  perl
194 Requires:       R-base >= %{version}
195
196 %description mlbench
197 R package which contains a collection of real-world datasets and
198 functions for creating artificial datasets that work as benchmarks for
199 machine learning methods.
200
201 %description mlbench -l pl
202 Ten podpakiet R zawiera zestaw rzeczywistych danych i funkcji do
203 tworzenia sztucznych danych s³u¿±cych jako test wydajno¶ci metod
204 uczenia maszyny.
205
206 %prep
207 %setup -q -c -n R-cran -T -b 1
208 %setup -q -c -n R-cran -T -D -b 2
209 %setup -q -c -n R-cran -T -D -b 3
210 %setup -q -c -n R-cran -T -D -b 4
211 %setup -q -c -n R-cran -T -D -b 5
212 %setup -q -c -n R-cran -T -D -b 6
213 %setup -q -c -n R-cran -T -D -b 7
214 %setup -q -c -n R-cran -T -D -b 8
215 %setup -q -c -n R-cran -T -D -b 9
216 %setup -q -c -n R-cran -T -D -b 10
217 %setup -q -c -n R-cran -T -D -b 11
218 %setup -q -c -n R-cran -T -D -b 12
219 %setup -q -c -n R-cran -T -D -b 13
220 %setup -q -c -n R-cran -T -D -b 14
221 %setup -q -c -n R-cran -T -D -b 15
222 %setup -q -c -n R-cran -T -D -b 16
223 %setup -q -c -n R-cran -T -D -b 17
224 %setup -q -c -n R-cran -T -D -b 18
225 %setup -q -c -n R-cran -T -D -b 19
226 %setup -q -c -n R-cran -T -D -b 20
227 %setup -q -c -n R-cran -T -D -b 21
228 %setup -q -c -n R-cran -T -D -b 22
229 %setup -q -c -n R-cran -T -D -b 23
230 %setup -q -c -n R-cran -T -D -b 24
231 #%%setup -q -c -n R-cran -T -D -b 25
232 %setup -q
233 #%setup -q -T -D -a 14
234
235 # These files have the path for PERL hard-coded as /usr/local/bin/perl
236 # We need to remove them to avoid dependency problems
237 rm -f ./doc/keyword-test.orig ./etc/undoc/R-funs.orig ./etc/undoc/extrExamp.orig
238
239 %build
240 %{__aclocal}
241 %{__autoconf}
242 cp -f /usr/share/automake/config.* .
243 %configure \
244         %{!?_without_gnome:--with-gnome} \
245         %{?_without_gnome:--without-gnome} \
246         --without-tcltk
247
248 %{__make}
249 %{__make} help
250 %{__make} html
251 %{__make} clean
252
253 # Install contrib packages
254 #
255 R_HOME=`pwd`;export R_HOME
256 PERL5LIB=`pwd`/share/perl;export PERL5LIB
257 cd ../R-cran
258 for pkg in `ls`
259 do
260 ${R_HOME}/bin/INSTALL ${pkg}
261 done
262 cd ${R_HOME}
263
264 #Remove old template files.
265 #
266 for oldinfile in `find . -name '*.in' -print`
267 do
268         mv ${oldinfile} ${oldinfile}.old
269 #       rm ${oldinfile}
270 done
271
272 # Gather documentation from contrib packages in one directory
273 # Assume that anything not in one of the standard directories is
274 # documentation, and copy it.
275 #
276 mkdir ${R_HOME}/contrib
277 cd ${RPM_BUILD_DIR}/R-cran
278 for pkg in `ls`; do
279         if [ -d ${pkg} ]; then
280                 mkdir ${R_HOME}/${pkg}
281                 for docfile in `ls ${pkg}`; do
282                         case $docfile in
283                                 INDEX) ;;
284                                 TITLE) ;;
285                                 R) ;;
286                                 man) ;;
287                                 src) ;;
288                                 src-c) ;;
289                                 data) ;;
290                                 *) cp -R -P ${pkg}/${docfile} ${R_HOME};;
291                         esac
292                 done
293         fi
294 done
295 cd ${R_HOME}
296
297 %install
298 rm -rf $RPM_BUILD_ROOT
299 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_libdir}/R,%{_applnkdir}/Scientific/Numerics}
300
301 install %{SOURCE26} $RPM_BUILD_ROOT%{_applnkdir}/Scientific/Numerics/%{name}.desktop
302
303 mv doc/R.1 $RPM_BUILD_ROOT%{_mandir}/man1/
304 sed "s,`pwd`,%{_libdir}/R,g" < bin/R > bin/R. ; mv bin/R. bin/R
305 mv bin/R $RPM_BUILD_ROOT%{_bindir}/R
306
307 find . -name 'Makefile*' -exec rm -f {} \;
308 rm -rf etc/*.old
309
310 cp -R AUTHORS afm bin doc etc include library modules share \
311         $RPM_BUILD_ROOT%{_libdir}/R
312
313 %clean
314 rm -rf $RPM_BUILD_ROOT
315
316 %post base
317 (cd %{_libdir}/R/library; umask 022; cat */CONTENTS > ../doc/html/search/index.txt
318  R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --htmllist)
319
320 #%preun base
321 ## These files are not owned by any package, so we have to remove them
322 ## but only if this is the last version of R-base on the system.
323 ##
324 #if [ "$1" = 0 ];
325 #then
326 #       rm -f %{_libdir}/R/doc/html/search/index.txt
327 #       rm -f %{_libdir}/R/doc/html/packages.html
328 #fi
329
330 %post contrib
331 (cd %{_libdir}/R/library; umask 022; cat */CONTENTS > ../doc/html/search/index.txt
332  R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --htmllist)
333
334 %postun contrib
335 if [ -f ../bin/Rcmd ];then
336 (cd %{_libdir}/R/library; umask 022; cat */CONTENTS > ../doc/html/search/index.txt
337  R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --htmllist)
338 fi
339
340 %post recommended
341 (cd %{_libdir}/R/library; umask 022; cat */CONTENTS > ../doc/html/search/index.txt
342  R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --htmllist)
343
344 %postun recommended
345 if [ -f ../bin/Rcmd ];then
346 (cd %{_libdir}/R/library; umask 022; cat */CONTENTS > ../doc/html/search/index.txt
347  R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --htmllist)
348 fi
349
350 %post mlbench
351 (cd %{_libdir}/R/library; umask 022; cat */CONTENTS > ../doc/html/search/index.txt
352  R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --htmllist)
353
354 %postun mlbench
355 if [ -f ../bin/Rcmd ];then
356 (cd %{_libdir}/R/library; umask 022; cat */CONTENTS > ../doc/html/search/index.txt
357  R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --htmllist)
358 fi
359
360 %files base
361 %defattr(644,root,root,755)
362 %{_mandir}/man1/R.1*
363 %attr(755,root,root) %{_bindir}/R
364 %dir %{_libdir}/R
365 %{_libdir}/R/afm
366 %attr(755,root,root) %{_libdir}/R/bin
367 %{_libdir}/R/etc
368 %{_libdir}/R/include
369 %{_libdir}/R/share
370 %{_libdir}/R/AUTHORS
371 %dir %{_libdir}/R/library
372 %{_libdir}/R/library/*.css
373 %{_libdir}/R/library/base
374 %{_libdir}/R/library/ctest
375 %{_libdir}/R/library/eda
376 %{_libdir}/R/library/lqs
377 %{_libdir}/R/library/methods
378 %{_libdir}/R/library/modreg
379 %{_libdir}/R/library/mva
380 %{_libdir}/R/library/nls
381 %{_libdir}/R/library/splines
382 %{_libdir}/R/library/stepfun
383 %{_libdir}/R/library/tcltk
384 %{_libdir}/R/library/tools
385 %{_libdir}/R/library/ts
386 %{_libdir}/R/modules
387 %doc BUGS COPYRIGHTS FAQ NEWS README RESOURCES THANKS Y2K
388 # %{_libdir}/R/doc %except %{_libdir}/R/doc/html/{packages.html,search/index.txt}
389 %dir %{_libdir}/R/doc
390 %{_libdir}/R/doc/[KRm]*
391 %dir %{_libdir}/R/doc/html
392 %{_libdir}/R/doc/html/*.css
393 %{_libdir}/R/doc/html/[Ra-lr-u]*.html
394 %{_libdir}/R/doc/html/packages-head.html
395 %{_libdir}/R/doc/html/*.jpg
396 %dir %{_libdir}/R/doc/html/search
397 %{_libdir}/R/doc/html/search/[A-Z]*
398 %ghost %{_libdir}/R/doc/html/search/index.txt
399 %ghost %{_libdir}/R/doc/html/packages.html
400 %{_applnkdir}/Scientific/Numerics/*
401
402 %files recommended
403 %defattr(644,root,root,755)
404 %{_libdir}/R/library/MASS
405 %{_libdir}/R/library/class
406 %{_libdir}/R/library/nnet
407 %{_libdir}/R/library/spatial
408 %doc VR
409 %{_libdir}/R/library/KernSmooth
410 %doc KernSmooth
411 %{_libdir}/R/library/boot
412 %doc boot
413 %{_libdir}/R/library/cluster
414 %doc cluster
415 %{_libdir}/R/library/foreign
416 %doc foreign
417 %{_libdir}/R/library/grid
418 %doc grid
419 %{_libdir}/R/library/lattice
420 %doc lattice
421 %{_libdir}/R/library/mgcv
422 %doc mgcv
423 %{_libdir}/R/library/nlme
424 %doc nlme
425 %{_libdir}/R/library/rpart
426 %doc rpart
427 %{_libdir}/R/library/survival
428 %doc survival
429
430 %files contrib
431 %defattr(644,root,root,755)
432 %{_libdir}/R/library/acepack
433 %doc acepack
434 %{_libdir}/R/library/bootstrap
435 %doc bootstrap
436 %{_libdir}/R/library/date
437 %doc date
438 %{_libdir}/R/library/e1071
439 %doc e1071
440 %{_libdir}/R/library/fracdiff
441 %doc fracdiff
442 %{_libdir}/R/library/gee
443 %doc gee
444 %{_libdir}/R/library/integrate
445 %doc integrate
446 %{_libdir}/R/library/leaps
447 %doc leaps
448 %{_libdir}/R/library/oz
449 %doc oz
450 %{_libdir}/R/library/polynom
451 %doc polynom
452 %{_libdir}/R/library/princurve
453 %doc princurve
454 %{_libdir}/R/library/quadprog
455 %doc quadprog
456 %{_libdir}/R/library/xgobi
457 %doc xgobi
458
459 %files mlbench
460 %defattr(644,root,root,755)
461 %{_libdir}/R/library/mlbench
462 %doc mlbench
This page took 0.121008 seconds and 4 git commands to generate.