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