]> git.pld-linux.org Git - packages/R.git/blob - R.spec
- up to 2.0.0
[packages/R.git] / R.spec
1 # TODO:
2 # - move perl R libraries to standard perl location
3 #
4 # Conditional build:
5 # _without_gnome        - without GNOME support
6 #
7 Summary:        A language for data analysis and graphics
8 Summary(pl):    Jêzyk do analizy danych oraz grafiki
9 Name:           R
10 Version:        2.0.0
11 Release:        0.1
12 License:        Mixed (distributable), mostly GPL
13 Group:          Development/Languages
14 # CRAN master site: ftp://cran.r-project.org/pub/R/src/
15 Source0:        ftp://stat.ethz.ch/R-CRAN/src/base/R-2/%{name}-%{version}.tar.gz
16 # Source0-md5:  3900bca37cabb4b76b8d736d51cc9251
17 # Source0-size: 10676072
18 Source1:        %{name}.desktop
19 URL:            http://www.r-project.org/
20 BuildRequires:  XFree86-devel
21 BuildRequires:  autoconf
22 BuildRequires:  automake
23 BuildRequires:  blas-devel
24 BuildRequires:  gcc-c++
25 BuildRequires:  gcc-g77
26 BuildRequires:  libjpeg-devel >= 6b
27 BuildRequires:  libpng-devel >= 1.0.5
28 BuildRequires:  libstdc++-devel
29 BuildRequires:  libtool
30 BuildRequires:  libxml-devel
31 BuildRequires:  perl-base >= 1:5.6
32 BuildRequires:  readline-devel
33 BuildRequires:  tetex-latex
34 BuildRequires:  tetex-dvips
35 BuildRequires:  tetex-pdftex
36 BuildRequires:  zip
37 BuildRequires:  zlib >= 1.1.3
38 #BuildRequires: lpr
39 #Requires:      lpr
40 %{!?_without_gnome:BuildRequires:       gnome-libs-devel}
41 %{!?_without_gnome:BuildRequires:       ORBit-devel}
42 %{!?_without_gnome:BuildRequires:       libglade-gnome-devel}
43 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
44
45 %description
46 A system for statistical computation and graphics. R consists of a
47 language plus a run-time environment with graphics, a debugger, access
48 to certain system functions, and the ability to run programs stored in
49 script files.
50
51 The design of R has been heavily influenced by two existing languages:
52 Becker, Chambers & Wilks' S and Sussman's Scheme. Whereas the
53 resulting language is very similar in appearance to S, the underlying
54 implementation and semantics are derived from Scheme.
55
56 %description -l pl
57 System do obliczeñ statystycznych i grafiki. R sk³ada siê z jêzyka
58 oraz ¶rodowiska uruchomieniowego z grafik±, debuggerem, dostêpem do
59 niektórych funkcji systemowych oraz mo¿liwo¶ci± uruchamiania programów
60 zapisanych w skryptach.
61
62 Jêzyk R by³ zainspirowany dwoma istniej±cymi jêzykami: S (Beckera,
63 Chambersa i Wilksa) oraz Scheme (Sussmana). R jest podobny do S, ale
64 implementacja i semantyka wywodzi siê ze Scheme.
65
66 %package base
67 Summary:        The R base distribution
68 Summary(pl):    Podstawowa dystrybucja R
69 License:        GPL v2 / LGPL
70 Group:          Development/Languages
71 Requires(post): textutils
72 Requires(post): perl
73 Provides:       R-base
74 Provides:       R-datasets
75 Provides:       R-grid
76 Provides:       R-graphics
77 Provides:       R-grDevices
78 Provides:       R-methods
79 Provides:       R-utils
80 Provides:       R-tcltk
81 Provides:       R-splines
82 Provides:       R-stats
83 Provides:       R-stats4
84 Provides:       R-tools
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 recommended
102 Summary:        Recommended contributed packages for the R language
103 Summary(pl):    Zalecane dodatkowe pakiety do jêzyka R
104 Group:          Development/Languages
105 Provides:       R-KernSmooth R-VR R-boot R-cluster R-foreign
106 Provides:       R-lattice R-mgcv R-nlme R-rpart R-survival
107 License:        GPL, free or free for non-commercial use
108 URL:            http://www.ci.tuwien.ac.at/R/
109 Requires(post,postun):  R-base
110 Requires(post,postun):  textutils
111 Requires(post,postun):  perl
112 Requires:       R-base = %{version}-%{release}
113 Obsoletes:      R-survival4 R-MASS R-clus R-class R-nnet R-spatial
114
115 %description recommended
116 Packages which extend the capabilities of the R base distribution and
117 are distributed on the Comprehensive R Archive Network (CRAN).
118
119 %description recommended -l pl
120 Pakiety rozszerzaj±ce mo¿liwo¶ci podstawowej dystrybucji jêzyka R,
121 dystrubuowane w archiwum CRAN (Comprehensive R Archive Network).
122
123 %package contrib
124 Summary:        Contributed packages for the R language
125 Summary(pl):    Dodatkowe pakiety do jêzyka R
126 License:        Mixed
127 Group:          Development/Languages
128 URL:            http://www.ci.tuwien.ac.at/R/
129 Requires(post,postun):  R-base
130 Requires(post,postun):  textutils
131 Requires(post,postun):  perl
132 Requires:       R-base = %{version}-%{release}
133 Requires:       R-VR
134 Provides:       R-acepack R-bootstrap R-date R-e1071 R-fracdiff R-gee
135 Provides:       R-leaps R-oz R-polynom R-princurve R-quadprog
136 Provides:       R-xgobi
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(post,postun):  R-base
154 Requires(post,postun):  textutils
155 Requires(post,postun):  perl
156 Requires:       R-base = %{version}-%{release}
157
158 %description mlbench
159 R package which contains a collection of real-world datasets and
160 functions for creating artificial datasets that work as benchmarks for
161 machine learning methods.
162
163 %description mlbench -l pl
164 Ten podpakiet R zawiera zestaw rzeczywistych danych i funkcji do
165 tworzenia sztucznych danych s³u¿±cych jako test wydajno¶ci metod
166 uczenia maszyny.
167 %prep
168 %setup -q
169
170 # These files have the path for PERL hard-coded as /usr/local/bin/perl
171 # We need to remove them to avoid dependency problems
172 rm -f ./doc/keyword-test.orig ./etc/undoc/R-funs.orig ./etc/undoc/extrExamp.orig
173
174 %build
175 %{__aclocal}
176 %{__autoconf}
177 cp -f /usr/share/automake/config.* .
178 %configure \
179         %{!?_without_gnome:--with-gnome} \
180         %{?_without_gnome:--without-gnome} \
181         --enable-R-shlib \
182         --enable-linux-lfs \
183         --with-zlib \
184         --with-bzlib \
185         --with-pcre \
186         --without-recommended-packages
187
188 %{__make}
189 %{__make} check
190 %{__make} docs
191 %{__make} help
192 %{__make} html
193 %{__make} info
194
195 %install
196 rm -rf $RPM_BUILD_ROOT
197 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_libdir}/R,%{_includedir},%{_desktopdir}}
198
199 %{__make} install \
200         rhome=$RPM_BUILD_ROOT%{_libdir}/R \
201         mandir=$RPM_BUILD_ROOT%{_mandir} \
202         bindir=$RPM_BUILD_ROOT%{_bindir} \
203         
204
205 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
206
207 find $RPM_BUILD_ROOT%{_libdir}/R -name 'Makefile*' -exec rm -f {} \;
208 mv $RPM_BUILD_ROOT%{_libdir}/R/lib/libR*.so $RPM_BUILD_ROOT%{_libdir}
209 mv $RPM_BUILD_ROOT%{_libdir}/%{name}/include $RPM_BUILD_ROOT%{_includedir}/R
210 ln -sf %{_includedir}/R $RPM_BUILD_ROOT%{_libdir}/R/include
211 rm $RPM_BUILD_ROOT%{_bindir}/%{name}
212 sed -i -e "s#$RPM_BUILD_ROOT##g" $RPM_BUILD_ROOT%{_libdir}/%{name}/bin/%{name}
213 ln -sf %{_libdir}/%{name}/bin/%{name} $RPM_BUILD_ROOT%{_bindir}/%{name}
214
215 %clean
216 rm -rf $RPM_BUILD_ROOT
217
218 %post
219 (cd %{_libdir}/R/library; umask 022; cat */CONTENTS > ../doc/html/search/index.txt
220  R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --htmllist)
221 /sbin/ldconfig
222
223 %postun -p /sbin/ldconfig
224
225 %files base
226 %defattr(644,root,root,755)
227 %doc COPYRIGHTS FAQ NEWS README RESOURCES THANKS Y2K
228
229 %{_mandir}/man1/R.1*
230 %attr(755,root,root) %{_bindir}/R
231 %dir %{_libdir}/R
232 %{_libdir}/R/afm
233 %attr(755,root,root) %{_libdir}/R/bin
234 %attr(755,root,root) %{_libdir}/libR*.so
235 %{_libdir}/R/etc
236 %{_libdir}/R/include
237 %{_includedir}/R
238 %{_libdir}/R/share
239 %{_libdir}/R/AUTHORS
240 %dir %{_libdir}/R/library
241 # %{_libdir}/R/doc %except %{_libdir}/R/doc/html/{packages.html,search/index.txt}
242 %dir %{_libdir}/R/doc
243 %{_libdir}/R/doc/[KRm]*
244 %dir %{_libdir}/R/doc/html
245 %{_libdir}/R/doc/html/*.css
246 %{_libdir}/R/doc/html/[Ra-lr-u]*.html
247 %{_libdir}/R/doc/html/packages-head.html
248 %{_libdir}/R/doc/html/*.jpg
249 %dir %{_libdir}/R/doc/html/search
250 %{_libdir}/R/doc/html/search/[A-Z]*
251 %ghost %{_libdir}/R/doc/html/search/index.txt
252 %ghost %{_libdir}/R/doc/html/packages.html
253 %{_desktopdir}/*
254
255 %attr(755,root,root) %{_libdir}/%{name}/modules
256
257 %{_libdir}/%{name}/library/base
258 %{_libdir}/%{name}/library/datasets
259 %{_libdir}/%{name}/library/grid
260 %{_libdir}/%{name}/library/graphics
261 %{_libdir}/%{name}/library/grDevices
262 %{_libdir}/%{name}/library/methods
263 %{_libdir}/%{name}/library/utils
264 %{_libdir}/%{name}/library/tcltk
265 %{_libdir}/%{name}/library/splines
266 %{_libdir}/%{name}/library/stats
267 %{_libdir}/%{name}/library/stats4
268 %{_libdir}/%{name}/library/tools
This page took 0.0697 seconds and 3 git commands to generate.