]>
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 | # |
ab573c09 JR |
6 | # NOTE: |
7 | # - /etc/localtime must be present for tests to work | |
8 | # | |
004adff9 | 9 | # TODO: |
bd436d63 | 10 | # - script for rpm to autoprovides/autorequires R internals |
a9ad1987 | 11 | # |
f1529298 | 12 | %include /usr/lib/rpm/macros.perl |
8325eaaa | 13 | Summary: A language for data analysis and graphics |
1645531f | 14 | Summary(pl.UTF-8): Język do analizy danych oraz grafiki |
8325eaaa | 15 | Name: R |
35ad2379 | 16 | Version: 2.13.0 |
43dca857 | 17 | Release: 2 |
92bb3b47 JB |
18 | License: Mixed (distributable), mostly GPL |
19 | Group: Development/Languages | |
296ba991 | 20 | # CRAN master site: ftp://cran.r-project.org/pub/R/src/ |
8d9cfdde | 21 | Source0: ftp://stat.ethz.ch/R-CRAN/src/base/R-2/%{name}-%{version}.tar.gz |
35ad2379 | 22 | # Source0-md5: ecfb928067cfd932e75135f8b8bba3e7 |
8d9cfdde | 23 | Source1: %{name}.desktop |
b5b84967 | 24 | Source2: %{name}.xpm |
35ad2379 | 25 | Patch0: %{name}-install.patch |
296ba991 | 26 | URL: http://www.r-project.org/ |
ce7a2c69 | 27 | BuildRequires: autoconf >= 2.60 |
63c19514 | 28 | BuildRequires: automake |
ce7a2c69 | 29 | BuildRequires: blas-devel >= 3.2.2-2 |
6f0da462 | 30 | BuildRequires: bzip2-devel |
78c1da32 | 31 | BuildRequires: cairo-devel |
77369605 | 32 | BuildRequires: gcc-fortran |
3302a9df | 33 | BuildRequires: gettext-devel |
ce7a2c69 | 34 | BuildRequires: lapack-devel >= 3.2.2-2 |
78c1da32 | 35 | BuildRequires: libicu-devel |
375593d6 | 36 | BuildRequires: libjpeg-devel >= 6b |
37 | BuildRequires: libpng-devel >= 1.0.5 | |
38 | BuildRequires: libstdc++-devel | |
ce7a2c69 | 39 | BuildRequires: libtiff-devel |
a9ad1987 | 40 | BuildRequires: libtool |
009ff3c3 | 41 | BuildRequires: libxml2-devel >= 2.6.26 |
78c1da32 | 42 | BuildRequires: pango-devel |
1c43aa59 | 43 | BuildRequires: pcre-devel |
375593d6 | 44 | BuildRequires: perl-base >= 1:5.6 |
9ffb5072 | 45 | BuildRequires: pkgconfig |
375593d6 | 46 | BuildRequires: readline-devel |
202a926a | 47 | BuildRequires: rpm-perlprov |
77369605 | 48 | %{?with_tcl:BuildRequires: tcl-devel} |
a9ad1987 | 49 | BuildRequires: tetex-dvips |
0d60cf00 | 50 | BuildRequires: tetex-latex |
a9ad1987 | 51 | BuildRequires: tetex-pdftex |
35ad2379 | 52 | BuildRequires: texinfo-texi2dvi |
77369605 | 53 | %{?with_tcl:BuildRequires: tk-devel} |
54 | BuildRequires: xorg-lib-libX11-devel | |
c436f81d JB |
55 | BuildRequires: xorg-lib-libXmu-devel |
56 | BuildRequires: xorg-lib-libXt-devel | |
153b341f | 57 | BuildRequires: xz-devel |
a9ad1987 | 58 | BuildRequires: zip |
1c43aa59 | 59 | BuildRequires: zlib-devel >= 1.1.3 |
8d9cfdde | 60 | #Requires: lpr |
21c0b273 | 61 | Requires(post): perl-base |
0d60cf00 | 62 | Requires(post): textutils |
ce7a2c69 | 63 | Requires: blas >= 3.2.2-2 |
7de9379c | 64 | Suggests: rkward |
20a1da1d | 65 | Obsoletes: R-base |
68b72621 | 66 | Obsoletes: R-contrib |
bf172ea0 | 67 | Obsoletes: R-recommended |
20a1da1d JR |
68 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
69 | ||
70 | %description | |
71 | A system for statistical computation and graphics. R consists of a | |
72 | language plus a run-time environment with graphics, a debugger, access | |
73 | to certain system functions, and the ability to run programs stored in | |
74 | script files. | |
75 | ||
76 | The design of R has been heavily influenced by two existing languages: | |
77 | Becker, Chambers & Wilks' S and Sussman's Scheme. Whereas the | |
78 | resulting language is very similar in appearance to S, the underlying | |
79 | implementation and semantics are derived from Scheme. | |
b5fa3c87 | 80 | |
20a1da1d JR |
81 | %description -l pl.UTF-8 |
82 | System do obliczeń statystycznych i grafiki. R składa się z języka | |
83 | oraz środowiska uruchomieniowego z grafiką, debuggerem, dostępem do | |
84 | niektórych funkcji systemowych oraz możliwością uruchamiania programów | |
85 | zapisanych w skryptach. | |
b5fa3c87 | 86 | |
20a1da1d JR |
87 | Język R był zainspirowany dwoma istniejącymi językami: S (Beckera, |
88 | Chambersa i Wilksa) oraz Scheme (Sussmana). R jest podobny do S, ale | |
89 | implementacja i semantyka wywodzi się ze Scheme. | |
b5fa3c87 | 90 | |
5c7326d9 | 91 | %prep |
92bb3b47 | 92 | %setup -q |
35ad2379 | 93 | %patch0 -p1 |
b5fa3c87 | 94 | |
5c7326d9 | 95 | %build |
259d0143 | 96 | %{__aclocal} -I m4 |
2028e949 | 97 | %{__autoconf} |
63c19514 | 98 | %configure \ |
8d9cfdde | 99 | --enable-R-shlib \ |
35ad2379 | 100 | --enable-largefile \ |
ce7a2c69 | 101 | --with-ICU \ |
1c43aa59 | 102 | --with-blas \ |
78c1da32 | 103 | --with-cairo \ |
78c1da32 | 104 | --with-jpeglib \ |
ce7a2c69 JB |
105 | --with-lapack \ |
106 | --with-libpng \ | |
107 | --with-readline \ | |
108 | --with-recommended-packages \ | |
78c1da32 JR |
109 | --with-system-bzlib \ |
110 | --with-system-pcre \ | |
ce7a2c69 JB |
111 | --with-system-xz \ |
112 | --with-system-zlib \ | |
113 | --with%{!?with_tcl:out}-tcltk \ | |
114 | --with-x | |
a9ad1987 | 115 | |
f4718f36 | 116 | %{__make} |
8d4651f6 | 117 | %if %{with tests} |
f4718f36 | 118 | %{__make} check |
8d4651f6 | 119 | %endif |
7447edd2 | 120 | %{__make} docs pdf info |
5c7326d9 | 121 | |
5c7326d9 | 122 | %install |
9a8695ea | 123 | rm -rf $RPM_BUILD_ROOT |
b5b84967 | 124 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_libdir}/R,%{_includedir},%{_desktopdir},%{_pixmapsdir}} |
4367b4de | 125 | |
259d0143 | 126 | %{__make} -j1 install \ |
8d4651f6 | 127 | DESTDIR=$RPM_BUILD_ROOT |
b54b52ee | 128 | |
8d9cfdde | 129 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} |
b5b84967 | 130 | install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir} |
b54b52ee | 131 | |
8d9cfdde | 132 | mv $RPM_BUILD_ROOT%{_libdir}/R/lib/libR*.so $RPM_BUILD_ROOT%{_libdir} |
133 | mv $RPM_BUILD_ROOT%{_libdir}/%{name}/include $RPM_BUILD_ROOT%{_includedir}/R | |
e522fa9a | 134 | ln -sf %{_includedir}/R $RPM_BUILD_ROOT%{_libdir}/R/include |
135 | ||
d6b5cd1f | 136 | %clean |
b54b52ee | 137 | rm -rf $RPM_BUILD_ROOT |
d6b5cd1f | 138 | |
ce7a2c69 JB |
139 | %post -p /sbin/ldconfig |
140 | %postun -p /sbin/ldconfig | |
d6b5cd1f | 141 | |
20a1da1d | 142 | %files |
8325eaaa | 143 | %defattr(644,root,root,755) |
252d4347 | 144 | %doc NEWS README doc/{AUTHORS,COPYRIGHTS,FAQ,RESOURCES,THANKS} |
b54b52ee | 145 | %attr(755,root,root) %{_bindir}/R |
77369605 | 146 | %attr(755,root,root) %{_bindir}/Rscript |
e522fa9a | 147 | %attr(755,root,root) %{_libdir}/libR*.so |
ce7a2c69 | 148 | %dir %{_libdir}/R |
252d4347 JR |
149 | %{_libdir}/R/COPYING |
150 | %{_libdir}/R/NEWS | |
151 | %{_libdir}/R/SVN-REVISION | |
ce7a2c69 | 152 | %attr(755,root,root) %{_libdir}/R/bin |
5d876725 | 153 | # %{_libdir}/R/doc %except %{_libdir}/R/doc/html/{packages.html,search/index.txt} |
b54b52ee | 154 | %dir %{_libdir}/R/doc |
155 | %{_libdir}/R/doc/[KRm]* | |
156 | %dir %{_libdir}/R/doc/html | |
157 | %{_libdir}/R/doc/html/*.css | |
5d876725 | 158 | %{_libdir}/R/doc/html/[Ra-lr-u]*.html |
77369605 | 159 | %{_libdir}/R/doc/html/packages-head*.html |
b54b52ee | 160 | %{_libdir}/R/doc/html/*.jpg |
5d876725 | 161 | %ghost %{_libdir}/R/doc/html/packages.html |
ce7a2c69 JB |
162 | %{_libdir}/R/etc |
163 | %{_libdir}/R/include | |
164 | %dir %{_libdir}/R/library | |
ce7a2c69 JB |
165 | %{_libdir}/R/library/KernSmooth |
166 | %{_libdir}/R/library/MASS | |
167 | %{_libdir}/R/library/Matrix | |
168 | %{_libdir}/R/library/base | |
169 | %{_libdir}/R/library/boot | |
170 | %{_libdir}/R/library/class | |
171 | %{_libdir}/R/library/cluster | |
172 | %{_libdir}/R/library/codetools | |
35ad2379 | 173 | %{_libdir}/R/library/compiler |
ce7a2c69 JB |
174 | %{_libdir}/R/library/datasets |
175 | %{_libdir}/R/library/foreign | |
176 | %{_libdir}/R/library/grDevices | |
177 | %{_libdir}/R/library/graphics | |
178 | %{_libdir}/R/library/grid | |
179 | %{_libdir}/R/library/lattice | |
180 | %{_libdir}/R/library/methods | |
181 | %{_libdir}/R/library/mgcv | |
182 | %{_libdir}/R/library/nlme | |
183 | %{_libdir}/R/library/nnet | |
184 | %{_libdir}/R/library/rpart | |
185 | %{_libdir}/R/library/spatial | |
186 | %{_libdir}/R/library/splines | |
187 | %{_libdir}/R/library/stats | |
188 | %{_libdir}/R/library/stats4 | |
189 | %{_libdir}/R/library/survival | |
190 | %{_libdir}/R/library/tcltk | |
191 | %{_libdir}/R/library/tools | |
192 | %{_libdir}/R/library/utils | |
193 | %attr(755,root,root) %{_libdir}/R/modules | |
194 | %{_libdir}/R/share | |
b5b84967 | 195 | %{_desktopdir}/R.desktop |
196 | %{_pixmapsdir}/R.xpm | |
ce7a2c69 JB |
197 | %{_includedir}/R |
198 | %{_pkgconfigdir}/libR.pc | |
199 | %{_mandir}/man1/R.1* | |
200 | %{_mandir}/man1/Rscript* |