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