]>
Commit | Line | Data |
---|---|---|
77369605 | 1 | |
2 | # Conditional build | |
3 | %bcond_without tcl # disable tcl support | |
0c64c64a | 4 | %bcond_without tests # do not run "make check" |
77369605 | 5 | |
004adff9 | 6 | # TODO: |
bd436d63 | 7 | # - script for rpm to autoprovides/autorequires R internals |
a9ad1987 | 8 | # |
252d4347 JR |
9 | %define KernSmooth_version 2.22r19 |
10 | %define VR_version 7.2r30 | |
11 | %define boot_version 1.2r27 | |
12 | %define cluster_version 1.11.4 | |
13 | %define foreign_version 0.8r18 | |
14 | %define lattice_version 0.14r16 | |
15 | %define mgcv_version 1.3r22 | |
16 | %define nlme_version 3.1r78 | |
17 | %define rpart_version 3.1r33 | |
18 | %define survival_version 2.30 | |
19 | ||
f1529298 | 20 | %include /usr/lib/rpm/macros.perl |
8325eaaa | 21 | Summary: A language for data analysis and graphics |
1645531f | 22 | Summary(pl.UTF-8): Język do analizy danych oraz grafiki |
8325eaaa | 23 | Name: R |
afac0daa | 24 | Version: 2.6.0 |
25 | Release: 0.1 | |
92bb3b47 JB |
26 | License: Mixed (distributable), mostly GPL |
27 | Group: Development/Languages | |
296ba991 | 28 | # CRAN master site: ftp://cran.r-project.org/pub/R/src/ |
8d9cfdde | 29 | Source0: ftp://stat.ethz.ch/R-CRAN/src/base/R-2/%{name}-%{version}.tar.gz |
afac0daa | 30 | # Source0-md5: 97e5d2542349925962b7469456d45731 |
8d9cfdde | 31 | Source1: %{name}.desktop |
296ba991 | 32 | URL: http://www.r-project.org/ |
63c19514 | 33 | BuildRequires: autoconf |
34 | BuildRequires: automake | |
afac0daa | 35 | BuildRequires: blas-devel |
6f0da462 | 36 | BuildRequires: bzip2-devel |
a9ad1987 | 37 | BuildRequires: gcc-c++ |
77369605 | 38 | BuildRequires: gcc-fortran |
3302a9df | 39 | BuildRequires: gettext-devel |
afac0daa | 40 | #BuildRequires: lapack-devel >= 3.1.1 |
375593d6 | 41 | BuildRequires: libjpeg-devel >= 6b |
42 | BuildRequires: libpng-devel >= 1.0.5 | |
43 | BuildRequires: libstdc++-devel | |
a9ad1987 | 44 | BuildRequires: libtool |
009ff3c3 | 45 | BuildRequires: libxml2-devel >= 2.6.26 |
1c43aa59 | 46 | BuildRequires: pcre-devel |
375593d6 | 47 | BuildRequires: perl-base >= 1:5.6 |
48 | BuildRequires: readline-devel | |
202a926a | 49 | BuildRequires: rpm-perlprov |
77369605 | 50 | %{?with_tcl:BuildRequires: tcl-devel} |
a9ad1987 | 51 | BuildRequires: tetex-dvips |
0d60cf00 | 52 | BuildRequires: tetex-latex |
a9ad1987 | 53 | BuildRequires: tetex-pdftex |
77369605 | 54 | %{?with_tcl:BuildRequires: tk-devel} |
55 | BuildRequires: xorg-lib-libX11-devel | |
a9ad1987 | 56 | BuildRequires: zip |
1c43aa59 | 57 | BuildRequires: zlib-devel >= 1.1.3 |
8d9cfdde | 58 | #Requires: lpr |
b46f3175 | 59 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
5c7326d9 | 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: | |
9a8695ea | 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. | |
5c7326d9 | 71 | |
87ca6bf0 JR |
72 | %description -l pl.UTF-8 |
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 | |
d6b5cd1f JB |
76 | zapisanych w skryptach. |
77 | ||
87ca6bf0 | 78 | Język R był zainspirowany dwoma istniejącymi językami: S (Beckera, |
d6b5cd1f | 79 | Chambersa i Wilksa) oraz Scheme (Sussmana). R jest podobny do S, ale |
87ca6bf0 | 80 | implementacja i semantyka wywodzi się ze Scheme. |
d6b5cd1f | 81 | |
5c7326d9 | 82 | %package base |
8325eaaa | 83 | Summary: The R base distribution |
1645531f | 84 | Summary(pl.UTF-8): Podstawowa dystrybucja R |
92bb3b47 | 85 | License: GPL v2 / LGPL |
8325eaaa | 86 | Group: Development/Languages |
21c0b273 | 87 | Requires(post): perl-base |
0d60cf00 | 88 | Requires(post): textutils |
5a1096e1 | 89 | Provides: R-cran-base |
3f82188d | 90 | Provides: R-cran-datasets |
3f82188d | 91 | Provides: R-cran-grDevices |
0d60cf00 ER |
92 | Provides: R-cran-graphics |
93 | Provides: R-cran-grid | |
3f82188d | 94 | Provides: R-cran-methods |
3f82188d | 95 | Provides: R-cran-splines |
96 | Provides: R-cran-stats | |
97 | Provides: R-cran-stats4 | |
0d60cf00 | 98 | Provides: R-cran-tcltk |
3f82188d | 99 | Provides: R-cran-tools |
0d60cf00 | 100 | Provides: R-cran-utils |
5c7326d9 | 101 | |
102 | %description base | |
103 | R is a language and run-time environment for carrying out interactive | |
9a8695ea | 104 | statistical data analysis. It is not entirely dissimilar to the S |
105 | language developed at AT&T Bell Laboratories (and now Lucent | |
106 | Technologies). Indeed, S users will find the environment quite | |
107 | familiar and a good deal of S software will run without change under | |
108 | R. | |
5c7326d9 | 109 | |
87ca6bf0 JR |
110 | %description base -l pl.UTF-8 |
111 | R jest językiem i środowiskiem uruchomieniowym do interaktywnej | |
112 | analizy danych statystycznych. R nie jest całkowicie zgodny z językiem | |
d6b5cd1f | 113 | S opracowanym w AT&T Bell Laboratiories (a teraz Lucent Technologies), |
87ca6bf0 JR |
114 | mimo to użytkownicy S zauważą zbliżone środowisko, a duża część |
115 | oprogramowania w S będzie działała bez zmian w R. | |
d6b5cd1f | 116 | |
b5fa3c87 | 117 | %package recommended |
118 | Summary: Recommended contributed packages for the R language | |
1645531f | 119 | Summary(pl.UTF-8): Zalecane dodatkowe pakiety do języka R |
0d60cf00 | 120 | License: GPL, free or free for non-commercial use |
b5fa3c87 | 121 | Group: Development/Languages |
0d60cf00 ER |
122 | URL: http://www.ci.tuwien.ac.at/R/ |
123 | Requires(post,postun): R-base | |
124 | Requires(post,postun): perl-base | |
125 | Requires(post,postun): textutils | |
126 | Requires: R-base = %{version}-%{release} | |
252d4347 | 127 | Provides: R-cran-KernSmooth = %{KernSmooth_version} |
252d4347 | 128 | Provides: R-cran-MASS = %{VR_version} |
d2b5a8b3 | 129 | Provides: R-cran-VR = %{VR_version} |
252d4347 | 130 | Provides: R-cran-boot = %{boot_version} |
d2b5a8b3 | 131 | Provides: R-cran-class = %{VR_version} |
252d4347 JR |
132 | Provides: R-cran-cluster = %{cluster_version} |
133 | Provides: R-cran-foreign = %{foreign_version} | |
134 | Provides: R-cran-lattice = %{lattice_version} | |
135 | Provides: R-cran-mgcv = %{mgcv_version} | |
136 | Provides: R-cran-nlme = %{nlme_version} | |
d2b5a8b3 | 137 | Provides: R-cran-nnet = %{VR_version} |
252d4347 | 138 | Provides: R-cran-rpart = %{rpart_version} |
d2b5a8b3 | 139 | Provides: R-cran-spatial = %{VR_version} |
252d4347 | 140 | Provides: R-cran-survival = %{survival_version} |
68b72621 | 141 | Obsoletes: R-contrib |
d2b5a8b3 JB |
142 | Obsoletes: R-cran-KernSmooth |
143 | Obsoletes: R-cran-MASS | |
144 | Obsoletes: R-cran-VR | |
145 | Obsoletes: R-cran-boot | |
146 | Obsoletes: R-cran-class | |
147 | Obsoletes: R-cran-cluster | |
148 | Obsoletes: R-cran-foreign | |
149 | Obsoletes: R-cran-lattice | |
150 | Obsoletes: R-cran-mgcv | |
151 | Obsoletes: R-cran-nlme | |
152 | Obsoletes: R-cran-nnet | |
153 | Obsoletes: R-cran-rpart | |
154 | Obsoletes: R-cran-spatial | |
155 | Obsoletes: R-cran-survival | |
b5fa3c87 | 156 | |
157 | %description recommended | |
158 | Packages which extend the capabilities of the R base distribution and | |
159 | are distributed on the Comprehensive R Archive Network (CRAN). | |
160 | ||
87ca6bf0 JR |
161 | %description recommended -l pl.UTF-8 |
162 | Pakiety rozszerzające możliwości podstawowej dystrybucji języka R, | |
b5fa3c87 | 163 | dystrubuowane w archiwum CRAN (Comprehensive R Archive Network). |
164 | ||
5c7326d9 | 165 | %prep |
92bb3b47 | 166 | %setup -q |
b5fa3c87 | 167 | |
5c7326d9 | 168 | %build |
63c19514 | 169 | %configure \ |
8d9cfdde | 170 | --enable-R-shlib \ |
171 | --enable-linux-lfs \ | |
1c43aa59 JR |
172 | --with-system-zlib \ |
173 | --with-system-bzlib \ | |
174 | --with-system-pcre \ | |
175 | --with-libpng \ | |
176 | --with-jpeglib \ | |
177 | --with-blas \ | |
1c43aa59 | 178 | --with-readline \ |
77369605 | 179 | --with%{!?with_tcl:out}-tcltk \ |
252d4347 | 180 | --with-recommended-packages |
a9ad1987 | 181 | |
afac0daa | 182 | # R gets into infinite loop in src/library/grDevices when this is enabled |
183 | # --with-lapack \ | |
184 | ||
f81006e0 | 185 | %{__make} |
0c64c64a | 186 | %{__make} %{?with_tests:check} docs help html info |
5c7326d9 | 187 | |
5c7326d9 | 188 | %install |
9a8695ea | 189 | rm -rf $RPM_BUILD_ROOT |
e522fa9a | 190 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_libdir}/R,%{_includedir},%{_desktopdir}} |
38755230 | 191 | install -d $RPM_BUILD_ROOT%{perl_vendorlib}/{R,Text} |
4367b4de | 192 | |
8d9cfdde | 193 | %{__make} install \ |
77369605 | 194 | DESTDIR=${RPM_BUILD_ROOT} |
b54b52ee | 195 | |
8d9cfdde | 196 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} |
b54b52ee | 197 | |
e522fa9a | 198 | find $RPM_BUILD_ROOT%{_libdir}/R -name 'Makefile*' -exec rm -f {} \; |
8d9cfdde | 199 | mv $RPM_BUILD_ROOT%{_libdir}/R/lib/libR*.so $RPM_BUILD_ROOT%{_libdir} |
200 | mv $RPM_BUILD_ROOT%{_libdir}/%{name}/include $RPM_BUILD_ROOT%{_includedir}/R | |
e522fa9a | 201 | ln -sf %{_includedir}/R $RPM_BUILD_ROOT%{_libdir}/R/include |
8d9cfdde | 202 | rm $RPM_BUILD_ROOT%{_bindir}/%{name} |
203 | sed -i -e "s#$RPM_BUILD_ROOT##g" $RPM_BUILD_ROOT%{_libdir}/%{name}/bin/%{name} | |
204 | ln -sf %{_libdir}/%{name}/bin/%{name} $RPM_BUILD_ROOT%{_bindir}/%{name} | |
e522fa9a | 205 | |
93cf3b79 | 206 | (cd $RPM_BUILD_ROOT%{_libdir}/%{name}/share/perl/R/ |
30055e3d JR |
207 | for f in * ; do |
208 | ln -s %{_libdir}/%{name}/share/perl/R/$f $RPM_BUILD_ROOT%{perl_vendorlib}/R/ | |
209 | done) | |
93cf3b79 | 210 | (cd $RPM_BUILD_ROOT%{_libdir}/%{name}/share/perl/Text |
30055e3d JR |
211 | for f in * ; do |
212 | ln -s %{_libdir}/%{name}/share/perl/Text/$f $RPM_BUILD_ROOT%{perl_vendorlib}/Text/ | |
213 | done) | |
38755230 | 214 | |
0c64c64a | 215 | rm -r $RPM_BUILD_ROOT%{_libdir}/R/share/perl/{R,File,Text} |
216 | rm -r $RPM_BUILD_ROOT%{perl_vendorlib}/Text | |
217 | ||
d6b5cd1f | 218 | %clean |
b54b52ee | 219 | rm -rf $RPM_BUILD_ROOT |
d6b5cd1f | 220 | |
8d9cfdde | 221 | %post |
92bb3b47 | 222 | (cd %{_libdir}/R/library; umask 022; cat */CONTENTS > ../doc/html/search/index.txt |
5ec5684e | 223 | R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --index) |
e522fa9a | 224 | /sbin/ldconfig |
225 | ||
8d9cfdde | 226 | %postun -p /sbin/ldconfig |
d6b5cd1f | 227 | |
5c7326d9 | 228 | %files base |
8325eaaa | 229 | %defattr(644,root,root,755) |
252d4347 | 230 | %doc NEWS README doc/{AUTHORS,COPYRIGHTS,FAQ,RESOURCES,THANKS} |
8d9cfdde | 231 | |
b54b52ee | 232 | %{_mandir}/man1/R.1* |
77369605 | 233 | %{_mandir}/man1/Rscript* |
b54b52ee | 234 | %attr(755,root,root) %{_bindir}/R |
77369605 | 235 | %attr(755,root,root) %{_bindir}/Rscript |
b54b52ee | 236 | %dir %{_libdir}/R |
b54b52ee | 237 | %attr(755,root,root) %{_libdir}/R/bin |
e522fa9a | 238 | %attr(755,root,root) %{_libdir}/libR*.so |
b54b52ee | 239 | %{_libdir}/R/etc |
240 | %{_libdir}/R/include | |
e522fa9a | 241 | %{_includedir}/R |
b54b52ee | 242 | %{_libdir}/R/share |
252d4347 JR |
243 | %{_libdir}/R/COPYING |
244 | %{_libdir}/R/NEWS | |
245 | %{_libdir}/R/SVN-REVISION | |
b54b52ee | 246 | %dir %{_libdir}/R/library |
252d4347 | 247 | %{_libdir}/%{name}/library/R.css |
5d876725 | 248 | # %{_libdir}/R/doc %except %{_libdir}/R/doc/html/{packages.html,search/index.txt} |
b54b52ee | 249 | %dir %{_libdir}/R/doc |
250 | %{_libdir}/R/doc/[KRm]* | |
251 | %dir %{_libdir}/R/doc/html | |
252 | %{_libdir}/R/doc/html/*.css | |
5d876725 | 253 | %{_libdir}/R/doc/html/[Ra-lr-u]*.html |
77369605 | 254 | %{_libdir}/R/doc/html/packages-head*.html |
b54b52ee | 255 | %{_libdir}/R/doc/html/*.jpg |
256 | %dir %{_libdir}/R/doc/html/search | |
257 | %{_libdir}/R/doc/html/search/[A-Z]* | |
258 | %ghost %{_libdir}/R/doc/html/search/index.txt | |
5d876725 | 259 | %ghost %{_libdir}/R/doc/html/packages.html |
3e4feca5 | 260 | %{_desktopdir}/*.desktop |
5c7326d9 | 261 | |
0c64c64a | 262 | %{perl_vendorlib}/R |
38755230 | 263 | |
8d9cfdde | 264 | %attr(755,root,root) %{_libdir}/%{name}/modules |
265 | ||
252d4347 JR |
266 | %{_libdir}/%{name}/library/KernSmooth |
267 | %{_libdir}/%{name}/library/MASS | |
8d9cfdde | 268 | %{_libdir}/%{name}/library/base |
252d4347 JR |
269 | %{_libdir}/%{name}/library/boot |
270 | %{_libdir}/%{name}/library/class | |
271 | %{_libdir}/%{name}/library/cluster | |
77369605 | 272 | %{_libdir}/%{name}/library/codetools |
8d9cfdde | 273 | %{_libdir}/%{name}/library/datasets |
252d4347 | 274 | %{_libdir}/%{name}/library/foreign |
8d9cfdde | 275 | %{_libdir}/%{name}/library/grDevices |
252d4347 JR |
276 | %{_libdir}/%{name}/library/graphics |
277 | %{_libdir}/%{name}/library/grid | |
278 | %{_libdir}/%{name}/library/lattice | |
8d9cfdde | 279 | %{_libdir}/%{name}/library/methods |
252d4347 JR |
280 | %{_libdir}/%{name}/library/mgcv |
281 | %{_libdir}/%{name}/library/nlme | |
282 | %{_libdir}/%{name}/library/nnet | |
77369605 | 283 | %{_libdir}/%{name}/library/rcompgen |
252d4347 JR |
284 | %{_libdir}/%{name}/library/rpart |
285 | %{_libdir}/%{name}/library/spatial | |
286 | %{_libdir}/%{name}/library/survival | |
8d9cfdde | 287 | %{_libdir}/%{name}/library/splines |
288 | %{_libdir}/%{name}/library/stats | |
289 | %{_libdir}/%{name}/library/stats4 | |
252d4347 | 290 | %{_libdir}/%{name}/library/tcltk |
8d9cfdde | 291 | %{_libdir}/%{name}/library/tools |
252d4347 | 292 | %{_libdir}/%{name}/library/utils |
5a1096e1 | 293 | |
0c64c64a | 294 | %{_pkgconfigdir}/*.pc |
295 | ||
5a1096e1 | 296 | %files recommended |
0d60cf00 | 297 | %defattr(644,root,root,755) |