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