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