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