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