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