]> git.pld-linux.org Git - packages/R.git/blob - R.spec
- some pl translations (without mlbench subpackage)
[packages/R.git] / R.spec
1 Summary:        A language for data analysis and graphics
2 Summary(pl):    Jêzyk do analizy danych oraz grafiki
3 Name:           R
4 Version:        1.1.1
5 Release:        1
6 Source0:        ftp://ftp.stat.math.ethz.ch/R-CRAN/src/base/%{name}-%{version}.tgz
7 Source1:        ftp://ftp.stat.math.ethz.ch/R-CRAN/src/contrib/mlbench_0.4-1.tar.gz
8 Source2:        ftp://ftp.stat.math.ethz.ch/R-CRAN/src/contrib/acepack_1.2-1.tar.gz
9 Source3:        ftp://ftp.stat.math.ethz.ch/R-CRAN/src/contrib/bootstrap_1.0-5.tar.gz
10 #Source4:       ftp://ftp.stat.math.ethz.ch/R-CRAN/src/contrib/class_VR5-4.tar.gz
11 #Source5:       ftp://ftp.stat.math.ethz.ch/R-CRAN/src/contrib/clus_1.0-2.tar.gz
12 #Source6:       ftp://ftp.stat.math.ethz.ch/R-CRAN/src/contrib/ctest_0.9-1.tar.gz
13 Source7:        ftp://ftp.stat.math.ethz.ch/R-CRAN/src/contrib/date_1.2-4.tar.gz
14 Source8:        ftp://ftp.stat.math.ethz.ch/R-CRAN/src/contrib/e1071_0.9-2.tar.gz
15 Source9:        ftp://ftp.stat.math.ethz.ch/R-CRAN/src/contrib/fracdiff_1.0-6.tar.gz
16 Source10:       ftp://ftp.stat.math.ethz.ch/R-CRAN/src/contrib/gee_4.13-3.tar.gz
17 Source11:       ftp://ftp.stat.math.ethz.ch/R-CRAN/src/contrib/integrate_2.2-2.tar.gz
18 #Source12:      ftp://ftp.stat.math.ethz.ch/R-CRAN/src/contrib/jpn_1.0-1.tar.gz
19 Source13:       ftp://ftp.stat.math.ethz.ch/R-CRAN/src/contrib/leaps_2.0.tar.gz
20 #Source14:      ftp://ftp.stat.math.ethz.ch/R-CRAN/src/contrib/nnet_VR5-3.tar.gz
21 Source15:       ftp://ftp.stat.math.ethz.ch/R-CRAN/src/contrib/oz_1.0-3.tar.gz
22 Source16:       ftp://ftp.stat.math.ethz.ch/R-CRAN/src/contrib/polynom_1.1-3.tar.gz
23 #Source17:      ftp://ftp.stat.math.ethz.ch/R-CRAN/src/contrib/ratetables_1.0-2.tar.gz
24 #Source18:      ftp://ftp.stat.math.ethz.ch/R-CRAN/src/contrib/rational_1.0-1.tar.gz
25 #Source19:      ftp://ftp.stat.math.ethz.ch/R-CRAN/src/contrib/spatial_VR5-2.tar.gz
26 #Source20:      ftp://ftp.stat.math.ethz.ch/R-CRAN/src/contrib/splines_2.0-1.tar.gz
27 Source21:       ftp://ftp.stat.math.ethz.ch/R-CRAN/src/contrib/survival5_1.1-5.tar.gz
28 Source22:       ftp://ftp.stat.math.ethz.ch/R-CRAN/src/contrib/xgobi_1.2-2.tar.gz
29 #Source23:      ftp://ftp.stat.math.ethz.ch/R-CRAN/src/contrib/principal.curve_1.0-2.tar.gz
30 Source24:       ftp://ftp.stat.math.ethz.ch/R-CRAN/src/contrib/quadprog_1.4-1.tar.gz
31 Source31:       ftp://ftp.stat.math.ethz.ch/R-CRAN/src/contrib/mlbench.pdf
32 Source32:       ftp://ftp.stat.math.ethz.ch/R-CRAN/src/contrib/acepack.pdf
33 Source33:       ftp://ftp.stat.math.ethz.ch/R-CRAN/src/contrib/bootstrap.pdf
34 Source37:       ftp://ftp.stat.math.ethz.ch/R-CRAN/src/contrib/date.pdf
35 Source38:       ftp://ftp.stat.math.ethz.ch/R-CRAN/src/contrib/e1071.pdf
36 Source39:       ftp://ftp.stat.math.ethz.ch/R-CRAN/src/contrib/fracdiff.pdf
37 Source40:       ftp://ftp.stat.math.ethz.ch/R-CRAN/src/contrib/gee.pdf
38 Source41:       ftp://ftp.stat.math.ethz.ch/R-CRAN/src/contrib/intergate.pdf
39 Source43:       ftp://ftp.stat.math.ethz.ch/R-CRAN/src/contrib/leaps.pdf
40 Source45:       ftp://ftp.stat.math.ethz.ch/R-CRAN/src/contrib/oz.pdf
41 Source46:       ftp://ftp.stat.math.ethz.ch/R-CRAN/src/contrib/polymon.pdf
42 Source51:       ftp://ftp.stat.math.ethz.ch/R-CRAN/src/contrib/survival5.pdf
43 Source52:       ftp://ftp.stat.math.ethz.ch/R-CRAN/src/contrib/xgobi.pdf
44 Source54:       ftp://ftp.stat.math.ethz.ch/R-CRAN/src/contrib/quadprog.pdf
45 Patch0:         %{name}-0.61.rpm.patch3
46 License:        GPL
47 Group:          Development/Languages
48 Group(de):      Entwicklung/Sprachen
49 Group(pl):      Programowanie/Jêzyki
50 URL:            http://stat.auckland.ac.nz/r/r.html
51 Provides:       R-base R-contrib
52 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
53
54 %description
55 A system for statistical computation and graphics. R consists of a
56 language plus a run-time environment with graphics, a debugger, access
57 to certain system functions, and the ability to run programs stored in
58 script files.
59
60 The design of R has been heavily influenced by two existing languages:
61 Becker, Chambers & Wilks' S and Sussman's Scheme. Whereas the
62 resulting language is very similar in appearance to S, the underlying
63 implementation and semantics are derived from Scheme.
64
65 %description -l pl
66 System do obliczeñ statystycznych i grafiki. R sk³ada siê z jêzyka
67 oraz ¶rodowiska uruchomieniowego z grafik±, debuggerem, dostêpem do
68 niektórych funkcji systemowych oraz mo¿liwo¶ci± uruchamiania programów
69 zapisanych w skryptach.
70
71 Jêzyk R by³ zainspirowany dwoma istniej±cymi jêzykami: S (Beckera,
72 Chambersa i Wilksa) oraz Scheme (Sussmana). R jest podobny do S, ale
73 implementacja i semantyka wywodzi siê ze Scheme.
74
75 %package base
76 Summary:        The R base distribution
77 Summary(pl):    Podstawowa dystrybucja R
78 Group:          Development/Languages
79 Group(de):      Entwicklung/Sprachen
80 Group(pl):      Programowanie/Jêzyki
81 Provides:       R-acepack R-bootstrap R-class R-clus R-ctest R-date R-e1071 
82 Provides:       R-fracdiff R-gee R-integrate R-jpn R-leaps R-mlbench R-nnet R-oz 
83 Provides:       R-polynom R-principal.curve R-quadprog R-ratetables R-rational 
84 Provides:       R-spatial R-splines R-survival4 R-xgobi
85
86 %description base
87 R is a language and run-time environment for carrying out interactive
88 statistical data analysis. It is not entirely dissimilar to the S
89 language developed at AT&T Bell Laboratories (and now Lucent
90 Technologies). Indeed, S users will find the environment quite
91 familiar and a good deal of S software will run without change under
92 R.
93
94 %description base -l pl
95 R jest jêzykiem i ¶rodowiskiem uruchomieniowym do interaktywnej
96 analizy danych statystycznych. R nie jest ca³kowicie zgodny z jêzykiem
97 S opracowanym w AT&T Bell Laboratiories (a teraz Lucent Technologies),
98 mimo to u¿ytkownicy S zauwa¿± zbli¿one ¶rodowisko, a du¿a czê¶æ
99 oprogramowania w S bêdzie dzia³a³a bez zmian w R.
100
101 %package contrib
102 Summary:        Contributed packages for the R language
103 Summary(pl):    Dodatkowe pakiety do jêzyka R
104 Group:          Development/Languages
105 Group(de):      Entwicklung/Sprachen
106 Group(pl):      Programowanie/Jêzyki
107 Copyright:      Mixed
108 URL:            http://www.ci.tuwien.ac.at/R/
109 Requires:       R-base >= %{version}
110
111 %description contrib
112 Packages which extend the capabilities of the R base distribution and
113 are distributed on the Comprehensive R Archive Network (CRAN).
114
115 %description contrib -l pl
116 Pakiety rozszerzaj±ce mo¿liwo¶ci podstawowej dystrybucji jêzyka R,
117 dystrubuowane w archiwum CRAN (Comprehensive R Archive Network).
118
119 %package mlbench
120 Summary:        Machine learning benchmarks
121 Group:          Development/Languages
122 Group(de):      Entwicklung/Sprachen
123 Group(pl):      Programowanie/Jêzyki
124 License:        GPL
125 URL:            http://www.ics.uci.edu/~mlearn/MLRepository.html
126 Requires:       R-base >= %{version}
127
128 %description mlbench
129 R package which contains a collection of real-world datasets and
130 functions for creating artificial datasets that work as benchmarks for
131 machine learning methods.
132
133 %prep
134 %setup -q -c -n R-cran -T -b 2
135 %setup -q -c -n R-cran -T -D -b 3
136 %setup -q -c -n R-cran -T -D -b 4
137 %setup -q -c -n R-cran -T -D -b 5
138 %setup -q -c -n R-cran -T -D -b 6
139 %setup -q -c -n R-cran -T -D -b 7
140 %setup -q -c -n R-cran -T -D -b 8
141 %setup -q -c -n R-cran -T -D -b 9
142 %setup -q -c -n R-cran -T -D -b 10
143 %setup -q -c -n R-cran -T -D -b 11
144 %setup -q -c -n R-cran -T -D -b 12
145 %setup -q -c -n R-cran -T -D -b 13
146 %setup -q -c -n R-cran -T -D -b 14
147 %setup -q -c -n R-cran -T -D -b 15
148 %setup -q -c -n R-cran -T -D -b 16
149 %setup -q -c -n R-cran -T -D -b 17
150 %setup -q -c -n R-cran -T -D -b 18
151 %setup -q -c -n R-cran -T -D -b 19
152 %setup -q -c -n R-cran -T -D -b 20
153 %setup -q -c -n R-cran -T -D -b 21
154 %setup -q -c -n R-cran -T -D -b 22
155 %setup -q -c -n R-cran -T -D -b 23
156 %setup -q -c -n R-cran -T -D -b 24
157 %setup -q 
158 %setup -q -T -D -a 1
159 %patch0 -p1
160 # These files have the path for PERL hard-coded as /usr/local/bin/perl
161 # We need to remove them to avoid dependency problems
162 rm -f ./doc/keyword-test.orig ./etc/undoc/R-funs.orig ./etc/undoc/extrExamp.orig 
163
164 %build
165 %{__make} 
166 %{__make} help
167 %{__make} html
168 %{__make} clean
169 %{__make} acclean
170
171 # Install contrib packages
172 #
173 RHOME=`pwd`;export RHOME
174 cd ../R-cran
175 for pkg in `ls`
176 do
177 ${RHOME}%{_sysconfdir}/INSTALL -latex ${pkg}
178 done
179 cd ${RHOME}
180
181 # Install mlbench
182 #
183 ${RHOME}%{_sysconfdir}/INSTALL mlbench
184
185 #Remove old template files.
186 #
187 for oldinfile in `find . -name '*.in' -print`
188 do
189         rm ${oldinfile}
190 done
191
192 # Gather documentation from contrib packages in one directory
193 # Assume that anything not in one of the standard directories is
194 # documentation, and copy it.
195 #
196 mkdir ${RHOME}/contrib
197 cd ${RPM_BUILD_DIR}/R-cran
198 for pkg in `ls`; do
199         if [ -d ${pkg} ]; then
200                 mkdir ${RHOME}/${pkg}
201                 for docfile in `ls ${pkg}`; do
202                         case $docfile in
203                                 INDEX) ;;
204                                 TITLE) ;;
205                                 R) ;;
206                                 man) ;;
207                                 src) ;;
208                                 src-c) ;;
209                                 data) ;;
210                                 *) cp -R -P ${pkg}/${docfile} ${RHOME};;
211                         esac
212                 done
213         fi
214 done
215 cd ${RHOME}
216
217 %install
218 rm -rf $RPM_BUILD_ROOT
219 install -d ${RPM_BUILD_ROOT}%{_mandir}/man1
220 install R.1 ${RPM_BUILD_ROOT}%{_mandir}/man1/
221 install -d ${RPM_BUILD_ROOT}%{_libdir}/R
222 cp -R afm bin cmd demos doc etc html include library ${RPM_BUILD_ROOT}%{_libdir}/R
223 install -d ${RPM_BUILD_ROOT}%{_bindir}
224 install -m 755 bin/R ${RPM_BUILD_ROOT}%{_bindir}/R
225
226 %clean
227 rm -rf $RPM_BUILD_ROOT
228
229 %post base
230 (cd %{_libdir}/R/library; cat */TITLE > LibIndex; ../etc/build-htmlpkglist)
231
232 %preun base
233 # These files are not owned by any package, so we have to remove them
234 # but only if this is the last version of R-base on the system.
235 #
236 if [ "$1" = 0 ];
237 then
238         rm -f %{_libdir}/R/library/LibIndex
239         rm -f %{_libdir}/R/library/index.html
240 fi
241
242 %post contrib
243 (cd %{_libdir}/R/library; cat */TITLE > LibIndex; ../etc/build-htmlpkglist)
244
245 %postun contrib
246 (cd %{_libdir}/R/library; cat */TITLE > LibIndex; ../etc/build-htmlpkglist)
247
248 %post mlbench
249 (cd %{_libdir}/R/library; cat */TITLE > LibIndex; ../etc/build-htmlpkglist)
250
251 %postun mlbench
252 (cd %{_libdir}/R/library; cat */TITLE > LibIndex; ../etc/build-htmlpkglist)
253
254 %files base
255 %defattr(644,root,root,755)
256 %attr(-,root,root) %{_mandir}/man1/R.1
257 %attr(-,root,root) %{_bindir}/R
258 %attr(-,root,root) %dir %{_libdir}/R
259 %attr(-,root,root) %{_libdir}/R/afm
260 %attr(-,root,root) %{_libdir}/R/bin
261 %attr(-,root,root) %{_libdir}/R/cmd
262 %attr(-,root,root) %{_libdir}/R/demos
263 %attr(-,root,root) %{_libdir}/R%{_sysconfdir}
264 %attr(-,root,root) %{_libdir}/R/html
265 %attr(-,root,root) %{_libdir}/R/include
266 %attr(-,root,root) %dir %{_libdir}/R/library
267 %attr(-,root,root) %{_libdir}/R/library/base/
268 %attr(-,root,root) %{_libdir}/R/library/eda/
269 %attr(-,root,root) %{_libdir}/R/library/mva/
270 %attr(-,root,root) %{_libdir}/R/library/stepfun/
271 %attr(-,root,root) %doc CHANGES COPYING COPYRIGHTS MIRROR-SITES PROJECTS README RESOURCES TASKS
272
273 %files contrib
274 %defattr(644,root,root,755)
275 %attr(-,root,root) %{_libdir}/R/library/acepack
276 %attr(-,root,root) %doc acepack
277 %attr(-,root,root) %{_libdir}/R/library/bootstrap
278 %attr(-,root,root) %doc bootstrap
279 %attr(-,root,root) %{_libdir}/R/library/class
280 %attr(-,root,root) %doc class
281 %attr(-,root,root) %{_libdir}/R/library/clus
282 %attr(-,root,root) %doc clus
283 %attr(-,root,root) %{_libdir}/R/library/ctest
284 %attr(-,root,root) %doc ctest
285 %attr(-,root,root) %{_libdir}/R/library/date
286 %attr(-,root,root) %doc date
287 %attr(-,root,root) %{_libdir}/R/library/e1071
288 %attr(-,root,root) %doc e1071
289 %attr(-,root,root) %{_libdir}/R/library/fracdiff
290 %attr(-,root,root) %doc fracdiff
291 %attr(-,root,root) %{_libdir}/R/library/gee
292 %attr(-,root,root) %doc gee
293 %attr(-,root,root) %{_libdir}/R/library/integrate
294 %attr(-,root,root) %doc integrate
295 %attr(-,root,root) %{_libdir}/R/library/jpn
296 %attr(-,root,root) %doc jpn
297 %attr(-,root,root) %{_libdir}/R/library/leaps
298 %attr(-,root,root) %doc leaps
299 %attr(-,root,root) %{_libdir}/R/library/nnet
300 %attr(-,root,root) %doc nnet
301 %attr(-,root,root) %{_libdir}/R/library/oz
302 %attr(-,root,root) %doc oz
303 %attr(-,root,root) %{_libdir}/R/library/polynom
304 %attr(-,root,root) %doc polynom
305 %attr(-,root,root) %{_libdir}/R/library/ratetables
306 %attr(-,root,root) %doc ratetables
307 %attr(-,root,root) %{_libdir}/R/library/rational
308 %attr(-,root,root) %doc rational
309 %attr(-,root,root) %{_libdir}/R/library/spatial
310 %attr(-,root,root) %doc spatial
311 %attr(-,root,root) %{_libdir}/R/library/splines
312 %attr(-,root,root) %doc splines
313 %attr(-,root,root) %{_libdir}/R/library/survival4
314 %attr(-,root,root) %doc survival4
315 %attr(-,root,root) %{_libdir}/R/library/xgobi
316 %attr(-,root,root) %doc xgobi
317 %attr(-,root,root) %{_libdir}/R/library/principal.curve
318 %attr(-,root,root) %doc principal.curve
319 %attr(-,root,root) %{_libdir}/R/library/quadprog
320 %attr(-,root,root) %doc quadprog
321
322 %files mlbench
323 %defattr(644,root,root,755)
324 %attr(-,root,root) %{_libdir}/R/library/mlbench
325 %attr(-,root,root) %doc mlbench/COPYRIGHT
326 %attr(-,root,root) %doc mlbench/ChangeLog
327 %attr(-,root,root) %doc mlbench/README
This page took 0.106871 seconds and 4 git commands to generate.