]> git.pld-linux.org Git - packages/R.git/blob - R.spec
- more BRs
[packages/R.git] / R.spec
1 # TODO:
2 # - move perl R libraries to standard perl location
3 # - script for rpm to autoprovides/autorequires R internals
4 #
5 # Conditional build:
6 %bcond_without  gnome   # without GNOME support
7 #
8 Summary:        A language for data analysis and graphics
9 Summary(pl):    Jêzyk do analizy danych oraz grafiki
10 Name:           R
11 Version:        2.0.1
12 Release:        2
13 License:        Mixed (distributable), mostly GPL
14 Group:          Development/Languages
15 # CRAN master site: ftp://cran.r-project.org/pub/R/src/
16 Source0:        ftp://stat.ethz.ch/R-CRAN/src/base/R-2/%{name}-%{version}.tar.gz
17 # Source0-md5:  fb47b1fdef4323031e24d541a2f36b2b
18 # Source0-size: 10676072
19 Source1:        %{name}.desktop
20 URL:            http://www.r-project.org/
21 BuildRequires:  XFree86-devel
22 BuildRequires:  autoconf
23 BuildRequires:  automake
24 BuildRequires:  blas-devel
25 BuildRequires:  bzip2-devel
26 BuildRequires:  gcc-c++
27 BuildRequires:  gcc-g77
28 BuildRequires:  gettext-devel
29 BuildRequires:  libjpeg-devel >= 6b
30 BuildRequires:  libpng-devel >= 1.0.5
31 BuildRequires:  libstdc++-devel
32 BuildRequires:  libtool
33 BuildRequires:  libxml-devel
34 BuildRequires:  perl-base >= 1:5.6
35 BuildRequires:  readline-devel
36 BuildRequires:  tcl-devel
37 BuildRequires:  tetex-latex
38 BuildRequires:  tetex-dvips
39 BuildRequires:  tetex-pdftex
40 BuildRequires:  tk-devel
41 BuildRequires:  zip
42 BuildRequires:  zlib >= 1.1.3
43 #BuildRequires: lpr
44 #Requires:      lpr
45 %{?with_gnome:BuildRequires:    gnome-libs-devel}
46 %{?with_gnome:BuildRequires:    ORBit-devel}
47 %{?with_gnome:BuildRequires:    libglade-gnome-devel}
48 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
49
50 %description
51 A system for statistical computation and graphics. R consists of a
52 language plus a run-time environment with graphics, a debugger, access
53 to certain system functions, and the ability to run programs stored in
54 script files.
55
56 The design of R has been heavily influenced by two existing languages:
57 Becker, Chambers & Wilks' S and Sussman's Scheme. Whereas the
58 resulting language is very similar in appearance to S, the underlying
59 implementation and semantics are derived from Scheme.
60
61 %description -l pl
62 System do obliczeñ statystycznych i grafiki. R sk³ada siê z jêzyka
63 oraz ¶rodowiska uruchomieniowego z grafik±, debuggerem, dostêpem do
64 niektórych funkcji systemowych oraz mo¿liwo¶ci± uruchamiania programów
65 zapisanych w skryptach.
66
67 Jêzyk R by³ zainspirowany dwoma istniej±cymi jêzykami: S (Beckera,
68 Chambersa i Wilksa) oraz Scheme (Sussmana). R jest podobny do S, ale
69 implementacja i semantyka wywodzi siê ze Scheme.
70
71 %package base
72 Summary:        The R base distribution
73 Summary(pl):    Podstawowa dystrybucja R
74 License:        GPL v2 / LGPL
75 Group:          Development/Languages
76 Requires(post): textutils
77 Requires(post): perl-base
78 Provides:       R-cran-base
79 Provides:       R-cran-datasets
80 Provides:       R-cran-grid
81 Provides:       R-cran-graphics
82 Provides:       R-cran-grDevices
83 Provides:       R-cran-methods
84 Provides:       R-cran-utils
85 Provides:       R-cran-tcltk
86 Provides:       R-cran-splines
87 Provides:       R-cran-stats
88 Provides:       R-cran-stats4
89 Provides:       R-cran-tools
90
91 %description base
92 R is a language and run-time environment for carrying out interactive
93 statistical data analysis. It is not entirely dissimilar to the S
94 language developed at AT&T Bell Laboratories (and now Lucent
95 Technologies). Indeed, S users will find the environment quite
96 familiar and a good deal of S software will run without change under
97 R.
98
99 %description base -l pl
100 R jest jêzykiem i ¶rodowiskiem uruchomieniowym do interaktywnej
101 analizy danych statystycznych. R nie jest ca³kowicie zgodny z jêzykiem
102 S opracowanym w AT&T Bell Laboratiories (a teraz Lucent Technologies),
103 mimo to u¿ytkownicy S zauwa¿± zbli¿one ¶rodowisko, a du¿a czê¶æ
104 oprogramowania w S bêdzie dzia³a³a bez zmian w R.
105
106 %package recommended
107 Summary:        Recommended contributed packages for the R language
108 Summary(pl):    Zalecane dodatkowe pakiety do jêzyka R
109 Group:          Development/Languages
110 Requires:       R-cran-KernSmooth
111 Requires:       R-cran-VR
112 Requires:       R-cran-boot
113 Requires:       R-cran-cluster
114 Requires:       R-cran-foreign
115 Requires:       R-cran-lattice
116 Requires:       R-cran-mgcv
117 Requires:       R-cran-nlme
118 Requires:       R-cran-rpart
119 Requires:       R-cran-survival
120 License:        GPL, free or free for non-commercial use
121 URL:            http://www.ci.tuwien.ac.at/R/
122 Requires(post,postun):  R-base
123 Requires(post,postun):  perl-base
124 Requires(post,postun):  textutils
125 Obsoletes:      R-contrib
126 Requires:       R-base = %{version}-%{release}
127
128 %description recommended
129 Packages which extend the capabilities of the R base distribution and
130 are distributed on the Comprehensive R Archive Network (CRAN).
131
132 %description recommended -l pl
133 Pakiety rozszerzaj±ce mo¿liwo¶ci podstawowej dystrybucji jêzyka R,
134 dystrubuowane w archiwum CRAN (Comprehensive R Archive Network).
135
136 %prep
137 %setup -q
138
139 # These files have the path for Perl hard-coded as /usr/local/bin/perl
140 # We need to remove them to avoid dependency problems
141 rm -f ./doc/keyword-test.orig ./etc/undoc/R-funs.orig ./etc/undoc/extrExamp.orig
142
143 %build
144 %{__aclocal} -I m4
145 %{__autoconf}
146 cp -f /usr/share/automake/config.* .
147 %configure \
148         --with%{!?with_gnome:out}-gnome \
149         --enable-R-shlib \
150         --enable-linux-lfs \
151         --with-zlib \
152         --with-bzlib \
153         --with-pcre \
154         --without-recommended-packages
155
156 %{__make}
157 %{__make} check
158 %{__make} docs
159 %{__make} help
160 %{__make} html
161 %{__make} info
162
163 %install
164 rm -rf $RPM_BUILD_ROOT
165 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_libdir}/R,%{_includedir},%{_desktopdir}}
166
167 %{__make} install \
168         rhome=$RPM_BUILD_ROOT%{_libdir}/R \
169         mandir=$RPM_BUILD_ROOT%{_mandir} \
170         bindir=$RPM_BUILD_ROOT%{_bindir} \
171         
172
173 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
174
175 find $RPM_BUILD_ROOT%{_libdir}/R -name 'Makefile*' -exec rm -f {} \;
176 mv $RPM_BUILD_ROOT%{_libdir}/R/lib/libR*.so $RPM_BUILD_ROOT%{_libdir}
177 mv $RPM_BUILD_ROOT%{_libdir}/%{name}/include $RPM_BUILD_ROOT%{_includedir}/R
178 ln -sf %{_includedir}/R $RPM_BUILD_ROOT%{_libdir}/R/include
179 rm $RPM_BUILD_ROOT%{_bindir}/%{name}
180 sed -i -e "s#$RPM_BUILD_ROOT##g" $RPM_BUILD_ROOT%{_libdir}/%{name}/bin/%{name}
181 ln -sf %{_libdir}/%{name}/bin/%{name} $RPM_BUILD_ROOT%{_bindir}/%{name}
182
183 %clean
184 rm -rf $RPM_BUILD_ROOT
185
186 %post
187 (cd %{_libdir}/R/library; umask 022; cat */CONTENTS > ../doc/html/search/index.txt
188  R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --htmllist)
189 /sbin/ldconfig
190
191 %postun -p /sbin/ldconfig
192
193 %files base
194 %defattr(644,root,root,755)
195 %doc COPYRIGHTS FAQ NEWS README RESOURCES THANKS Y2K
196
197 %{_mandir}/man1/R.1*
198 %attr(755,root,root) %{_bindir}/R
199 %dir %{_libdir}/R
200 %{_libdir}/R/afm
201 %attr(755,root,root) %{_libdir}/R/bin
202 %attr(755,root,root) %{_libdir}/libR*.so
203 %{_libdir}/R/etc
204 %{_libdir}/R/include
205 %{_includedir}/R
206 %{_libdir}/R/share
207 %{_libdir}/R/AUTHORS
208 %dir %{_libdir}/R/library
209 # %{_libdir}/R/doc %except %{_libdir}/R/doc/html/{packages.html,search/index.txt}
210 %dir %{_libdir}/R/doc
211 %{_libdir}/R/doc/[KRm]*
212 %dir %{_libdir}/R/doc/html
213 %{_libdir}/R/doc/html/*.css
214 %{_libdir}/R/doc/html/[Ra-lr-u]*.html
215 %{_libdir}/R/doc/html/packages-head.html
216 %{_libdir}/R/doc/html/*.jpg
217 %dir %{_libdir}/R/doc/html/search
218 %{_libdir}/R/doc/html/search/[A-Z]*
219 %ghost %{_libdir}/R/doc/html/search/index.txt
220 %ghost %{_libdir}/R/doc/html/packages.html
221 %{_desktopdir}/*
222
223 %attr(755,root,root) %{_libdir}/%{name}/modules
224
225 %{_libdir}/%{name}/library/base
226 %{_libdir}/%{name}/library/datasets
227 %{_libdir}/%{name}/library/grid
228 %{_libdir}/%{name}/library/graphics
229 %{_libdir}/%{name}/library/grDevices
230 %{_libdir}/%{name}/library/methods
231 %{_libdir}/%{name}/library/utils
232 %{_libdir}/%{name}/library/tcltk
233 %{_libdir}/%{name}/library/splines
234 %{_libdir}/%{name}/library/stats
235 %{_libdir}/%{name}/library/stats4
236 %{_libdir}/%{name}/library/tools
237
238 %files recommended
This page took 0.041682 seconds and 4 git commands to generate.