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