]> git.pld-linux.org Git - packages/R.git/blobdiff - R.spec
- version 2.6.0 (NFY)
[packages/R.git] / R.spec
diff --git a/R.spec b/R.spec
index e84434a12fa43549cd2cc4ea985064253d595ab5..da7ddcd2261a4e18e187f045a5ac4571730e9216 100644 (file)
--- a/R.spec
+++ b/R.spec
@@ -1,51 +1,60 @@
+
+# Conditional build
+%bcond_without tcl             # disable tcl support
+
 # TODO:
 # TODO:
-# - move perl R libraries to standard perl location
 # - script for rpm to autoprovides/autorequires R internals
 #
 # - script for rpm to autoprovides/autorequires R internals
 #
-# Conditional build:
-%bcond_without gnome   # without GNOME support
-#
+%define        KernSmooth_version      2.22r19
+%define        VR_version              7.2r30
+%define        boot_version            1.2r27
+%define        cluster_version         1.11.4
+%define        foreign_version         0.8r18
+%define        lattice_version         0.14r16
+%define        mgcv_version            1.3r22
+%define        nlme_version            3.1r78
+%define        rpart_version           3.1r33
+%define        survival_version        2.30
+
 %include       /usr/lib/rpm/macros.perl
 Summary:       A language for data analysis and graphics
 %include       /usr/lib/rpm/macros.perl
 Summary:       A language for data analysis and graphics
-Summary(pl):   Jêzyk do analizy danych oraz grafiki
+Summary(pl.UTF-8):     Język do analizy danych oraz grafiki
 Name:          R
 Name:          R
-Version:       2.2.1
-Release:       1
+Version:       2.6.0
+Release:       0.1
 License:       Mixed (distributable), mostly GPL
 Group:         Development/Languages
 # CRAN master site: ftp://cran.r-project.org/pub/R/src/
 Source0:       ftp://stat.ethz.ch/R-CRAN/src/base/R-2/%{name}-%{version}.tar.gz
 License:       Mixed (distributable), mostly GPL
 Group:         Development/Languages
 # CRAN master site: ftp://cran.r-project.org/pub/R/src/
 Source0:       ftp://stat.ethz.ch/R-CRAN/src/base/R-2/%{name}-%{version}.tar.gz
-# Source0-md5: 42542290c6d1585af7ded330f811385c
+# Source0-md5: 97e5d2542349925962b7469456d45731
 Source1:       %{name}.desktop
 URL:           http://www.r-project.org/
 Source1:       %{name}.desktop
 URL:           http://www.r-project.org/
-BuildRequires: XFree86-devel
 BuildRequires: autoconf
 BuildRequires: automake
 BuildRequires: blas-devel
 BuildRequires: bzip2-devel
 BuildRequires: gcc-c++
 BuildRequires: autoconf
 BuildRequires: automake
 BuildRequires: blas-devel
 BuildRequires: bzip2-devel
 BuildRequires: gcc-c++
-BuildRequires: gcc-g77
+BuildRequires: gcc-fortran
 BuildRequires: gettext-devel
 BuildRequires: gettext-devel
+#BuildRequires:        lapack-devel >= 3.1.1
 BuildRequires: libjpeg-devel >= 6b
 BuildRequires: libpng-devel >= 1.0.5
 BuildRequires: libstdc++-devel
 BuildRequires: libtool
 BuildRequires: libjpeg-devel >= 6b
 BuildRequires: libpng-devel >= 1.0.5
 BuildRequires: libstdc++-devel
 BuildRequires: libtool
-BuildRequires: libxml-devel
+BuildRequires: libxml2-devel >= 2.6.26
+BuildRequires: pcre-devel
 BuildRequires: perl-base >= 1:5.6
 BuildRequires: readline-devel
 BuildRequires: rpm-perlprov
 BuildRequires: perl-base >= 1:5.6
 BuildRequires: readline-devel
 BuildRequires: rpm-perlprov
-BuildRequires: tcl-devel
-BuildRequires: tetex-latex
+%{?with_tcl:BuildRequires:     tcl-devel}
 BuildRequires: tetex-dvips
 BuildRequires: tetex-dvips
+BuildRequires: tetex-latex
 BuildRequires: tetex-pdftex
 BuildRequires: tetex-pdftex
-BuildRequires: tk-devel
+%{?with_tcl:BuildRequires:     tk-devel}
+BuildRequires: xorg-lib-libX11-devel
 BuildRequires: zip
 BuildRequires: zip
-BuildRequires: zlib >= 1.1.3
-#BuildRequires:        lpr
+BuildRequires: zlib-devel >= 1.1.3
 #Requires:     lpr
 #Requires:     lpr
-%{?with_gnome:BuildRequires:   gnome-libs-devel}
-%{?with_gnome:BuildRequires:   ORBit-devel}
-%{?with_gnome:BuildRequires:   libglade-gnome-devel}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -59,35 +68,35 @@ Becker, Chambers & Wilks' S and Sussman's Scheme. Whereas the
 resulting language is very similar in appearance to S, the underlying
 implementation and semantics are derived from Scheme.
 
 resulting language is very similar in appearance to S, the underlying
 implementation and semantics are derived from Scheme.
 
-%description -l pl
-System do obliczeñ statystycznych i grafiki. R sk³ada siê z jêzyka
-oraz ¶rodowiska uruchomieniowego z grafik±, debuggerem, dostêpem do
-niektórych funkcji systemowych oraz mo¿liwo¶ci± uruchamiania programów
+%description -l pl.UTF-8
+System do obliczeń statystycznych i grafiki. R składa się z języka
+oraz środowiska uruchomieniowego z grafiką, debuggerem, dostępem do
+niektórych funkcji systemowych oraz możliwością uruchamiania programów
 zapisanych w skryptach.
 
 zapisanych w skryptach.
 
-Jêzyk R by³ zainspirowany dwoma istniej±cymi jêzykami: S (Beckera,
+Język R był zainspirowany dwoma istniejącymi językami: S (Beckera,
 Chambersa i Wilksa) oraz Scheme (Sussmana). R jest podobny do S, ale
 Chambersa i Wilksa) oraz Scheme (Sussmana). R jest podobny do S, ale
-implementacja i semantyka wywodzi siê ze Scheme.
+implementacja i semantyka wywodzi się ze Scheme.
 
 %package base
 Summary:       The R base distribution
 
 %package base
 Summary:       The R base distribution
-Summary(pl):   Podstawowa dystrybucja R
+Summary(pl.UTF-8):     Podstawowa dystrybucja R
 License:       GPL v2 / LGPL
 Group:         Development/Languages
 License:       GPL v2 / LGPL
 Group:         Development/Languages
-Requires(post):        textutils
 Requires(post):        perl-base
 Requires(post):        perl-base
+Requires(post):        textutils
 Provides:      R-cran-base
 Provides:      R-cran-datasets
 Provides:      R-cran-base
 Provides:      R-cran-datasets
-Provides:      R-cran-grid
-Provides:      R-cran-graphics
 Provides:      R-cran-grDevices
 Provides:      R-cran-grDevices
+Provides:      R-cran-graphics
+Provides:      R-cran-grid
 Provides:      R-cran-methods
 Provides:      R-cran-methods
-Provides:      R-cran-utils
-Provides:      R-cran-tcltk
 Provides:      R-cran-splines
 Provides:      R-cran-stats
 Provides:      R-cran-stats4
 Provides:      R-cran-splines
 Provides:      R-cran-stats
 Provides:      R-cran-stats4
+Provides:      R-cran-tcltk
 Provides:      R-cran-tools
 Provides:      R-cran-tools
+Provides:      R-cran-utils
 
 %description base
 R is a language and run-time environment for carrying out interactive
 
 %description base
 R is a language and run-time environment for carrying out interactive
@@ -97,79 +106,91 @@ Technologies). Indeed, S users will find the environment quite
 familiar and a good deal of S software will run without change under
 R.
 
 familiar and a good deal of S software will run without change under
 R.
 
-%description base -l pl
-R jest jêzykiem i ¶rodowiskiem uruchomieniowym do interaktywnej
-analizy danych statystycznych. R nie jest ca³kowicie zgodny z jêzykiem
+%description base -l pl.UTF-8
+R jest językiem i środowiskiem uruchomieniowym do interaktywnej
+analizy danych statystycznych. R nie jest całkowicie zgodny z językiem
 S opracowanym w AT&T Bell Laboratiories (a teraz Lucent Technologies),
 S opracowanym w AT&T Bell Laboratiories (a teraz Lucent Technologies),
-mimo to u¿ytkownicy S zauwa¿± zbli¿one ¶rodowisko, a du¿a czê¶æ
-oprogramowania w S bêdzie dzia³a³a bez zmian w R.
+mimo to użytkownicy S zauważą zbliżone środowisko, a duża część
+oprogramowania w S będzie działała bez zmian w R.
 
 %package recommended
 Summary:       Recommended contributed packages for the R language
 
 %package recommended
 Summary:       Recommended contributed packages for the R language
-Summary(pl):   Zalecane dodatkowe pakiety do jêzyka R
-Group:         Development/Languages
-Requires:      R-cran-KernSmooth
-Requires:      R-cran-VR
-Requires:      R-cran-boot
-Requires:      R-cran-cluster
-Requires:      R-cran-foreign
-Requires:      R-cran-lattice
-Requires:      R-cran-mgcv
-Requires:      R-cran-nlme
-Requires:      R-cran-rpart
-Requires:      R-cran-survival
+Summary(pl.UTF-8):     Zalecane dodatkowe pakiety do języka R
 License:       GPL, free or free for non-commercial use
 License:       GPL, free or free for non-commercial use
+Group:         Development/Languages
 URL:           http://www.ci.tuwien.ac.at/R/
 Requires(post,postun): R-base
 Requires(post,postun): perl-base
 Requires(post,postun): textutils
 URL:           http://www.ci.tuwien.ac.at/R/
 Requires(post,postun): R-base
 Requires(post,postun): perl-base
 Requires(post,postun): textutils
-Obsoletes:     R-contrib
 Requires:      R-base = %{version}-%{release}
 Requires:      R-base = %{version}-%{release}
+Provides:      R-cran-KernSmooth = %{KernSmooth_version}
+Provides:      R-cran-MASS = %{VR_version}
+Provides:      R-cran-VR = %{VR_version}
+Provides:      R-cran-boot = %{boot_version}
+Provides:      R-cran-class = %{VR_version}
+Provides:      R-cran-cluster = %{cluster_version}
+Provides:      R-cran-foreign = %{foreign_version}
+Provides:      R-cran-lattice = %{lattice_version}
+Provides:      R-cran-mgcv = %{mgcv_version}
+Provides:      R-cran-nlme = %{nlme_version}
+Provides:      R-cran-nnet = %{VR_version}
+Provides:      R-cran-rpart = %{rpart_version}
+Provides:      R-cran-spatial = %{VR_version}
+Provides:      R-cran-survival = %{survival_version}
+Obsoletes:     R-contrib
+Obsoletes:     R-cran-KernSmooth
+Obsoletes:     R-cran-MASS
+Obsoletes:     R-cran-VR
+Obsoletes:     R-cran-boot
+Obsoletes:     R-cran-class
+Obsoletes:     R-cran-cluster
+Obsoletes:     R-cran-foreign
+Obsoletes:     R-cran-lattice
+Obsoletes:     R-cran-mgcv
+Obsoletes:     R-cran-nlme
+Obsoletes:     R-cran-nnet
+Obsoletes:     R-cran-rpart
+Obsoletes:     R-cran-spatial
+Obsoletes:     R-cran-survival
 
 %description recommended
 Packages which extend the capabilities of the R base distribution and
 are distributed on the Comprehensive R Archive Network (CRAN).
 
 
 %description recommended
 Packages which extend the capabilities of the R base distribution and
 are distributed on the Comprehensive R Archive Network (CRAN).
 
-%description recommended -l pl
-Pakiety rozszerzaj±ce mo¿liwo¶ci podstawowej dystrybucji jêzyka R,
+%description recommended -l pl.UTF-8
+Pakiety rozszerzające możliwości podstawowej dystrybucji języka R,
 dystrubuowane w archiwum CRAN (Comprehensive R Archive Network).
 
 %prep
 %setup -q
 
 dystrubuowane w archiwum CRAN (Comprehensive R Archive Network).
 
 %prep
 %setup -q
 
-# These files have the path for Perl hard-coded as /usr/local/bin/perl
-# We need to remove them to avoid dependency problems
-rm -f ./doc/keyword-test.orig ./etc/undoc/R-funs.orig ./etc/undoc/extrExamp.orig
-
 %build
 %build
-%{__aclocal} -I m4
-%{__autoconf}
-cp -f /usr/share/automake/config.* .
 %configure \
 %configure \
-       --with%{!?with_gnome:out}-gnome \
        --enable-R-shlib \
        --enable-linux-lfs \
        --enable-R-shlib \
        --enable-linux-lfs \
-       --with-zlib \
-       --with-bzlib \
-       --with-pcre \
-       --without-recommended-packages
+       --with-system-zlib \
+       --with-system-bzlib \
+       --with-system-pcre \
+       --with-libpng \
+       --with-jpeglib \
+       --with-blas \
+       --with-readline \
+       --with%{!?with_tcl:out}-tcltk \
+       --with-recommended-packages
+
+# R gets into infinite loop in src/library/grDevices when this is enabled
+#      --with-lapack \
 
 %{__make}
 
 %{__make}
-%{__make} check
-%{__make} docs
-%{__make} help
-%{__make} html
-%{__make} info
+%{__make} check docs help html info
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_libdir}/R,%{_includedir},%{_desktopdir}}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_libdir}/R,%{_includedir},%{_desktopdir}}
+install -d $RPM_BUILD_ROOT%{perl_vendorlib}/{R,Text}
 
 %{__make} install \
 
 %{__make} install \
-       rhome=$RPM_BUILD_ROOT%{_libdir}/R \
-       mandir=$RPM_BUILD_ROOT%{_mandir} \
-       bindir=$RPM_BUILD_ROOT%{_bindir} \
-       
+       DESTDIR=${RPM_BUILD_ROOT}
 
 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
 
 
 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
 
@@ -181,22 +202,33 @@ rm $RPM_BUILD_ROOT%{_bindir}/%{name}
 sed -i -e "s#$RPM_BUILD_ROOT##g" $RPM_BUILD_ROOT%{_libdir}/%{name}/bin/%{name}
 ln -sf %{_libdir}/%{name}/bin/%{name} $RPM_BUILD_ROOT%{_bindir}/%{name}
 
 sed -i -e "s#$RPM_BUILD_ROOT##g" $RPM_BUILD_ROOT%{_libdir}/%{name}/bin/%{name}
 ln -sf %{_libdir}/%{name}/bin/%{name} $RPM_BUILD_ROOT%{_bindir}/%{name}
 
+(cd $RPM_BUILD_ROOT%{_libdir}/%{name}/share/perl/R/
+for f in * ; do
+  ln -s %{_libdir}/%{name}/share/perl/R/$f $RPM_BUILD_ROOT%{perl_vendorlib}/R/
+done)
+(cd $RPM_BUILD_ROOT%{_libdir}/%{name}/share/perl/Text
+for f in * ; do
+  ln -s %{_libdir}/%{name}/share/perl/Text/$f $RPM_BUILD_ROOT%{perl_vendorlib}/Text/
+done)
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %post
 (cd %{_libdir}/R/library; umask 022; cat */CONTENTS > ../doc/html/search/index.txt
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %post
 (cd %{_libdir}/R/library; umask 022; cat */CONTENTS > ../doc/html/search/index.txt
- R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --htmllist)
+ R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --index)
 /sbin/ldconfig
 
 %postun        -p /sbin/ldconfig
 
 %files base
 %defattr(644,root,root,755)
 /sbin/ldconfig
 
 %postun        -p /sbin/ldconfig
 
 %files base
 %defattr(644,root,root,755)
-%doc COPYRIGHTS FAQ NEWS README RESOURCES THANKS Y2K
+%doc NEWS README doc/{AUTHORS,COPYRIGHTS,FAQ,RESOURCES,THANKS}
 
 %{_mandir}/man1/R.1*
 
 %{_mandir}/man1/R.1*
+%{_mandir}/man1/Rscript*
 %attr(755,root,root) %{_bindir}/R
 %attr(755,root,root) %{_bindir}/R
+%attr(755,root,root) %{_bindir}/Rscript
 %dir %{_libdir}/R
 %attr(755,root,root) %{_libdir}/R/bin
 %attr(755,root,root) %{_libdir}/libR*.so
 %dir %{_libdir}/R
 %attr(755,root,root) %{_libdir}/R/bin
 %attr(755,root,root) %{_libdir}/libR*.so
@@ -204,35 +236,58 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/R/include
 %{_includedir}/R
 %{_libdir}/R/share
 %{_libdir}/R/include
 %{_includedir}/R
 %{_libdir}/R/share
-%{_libdir}/R/AUTHORS
+%{_libdir}/R/COPYING
+%{_libdir}/R/NEWS
+%{_libdir}/R/SVN-REVISION
 %dir %{_libdir}/R/library
 %dir %{_libdir}/R/library
+%{_libdir}/%{name}/library/R.css
 # %{_libdir}/R/doc %except %{_libdir}/R/doc/html/{packages.html,search/index.txt}
 %dir %{_libdir}/R/doc
 %{_libdir}/R/doc/[KRm]*
 %dir %{_libdir}/R/doc/html
 %{_libdir}/R/doc/html/*.css
 %{_libdir}/R/doc/html/[Ra-lr-u]*.html
 # %{_libdir}/R/doc %except %{_libdir}/R/doc/html/{packages.html,search/index.txt}
 %dir %{_libdir}/R/doc
 %{_libdir}/R/doc/[KRm]*
 %dir %{_libdir}/R/doc/html
 %{_libdir}/R/doc/html/*.css
 %{_libdir}/R/doc/html/[Ra-lr-u]*.html
-%{_libdir}/R/doc/html/packages-head.html
+%{_libdir}/R/doc/html/packages-head*.html
 %{_libdir}/R/doc/html/*.jpg
 %dir %{_libdir}/R/doc/html/search
 %{_libdir}/R/doc/html/search/[A-Z]*
 %ghost %{_libdir}/R/doc/html/search/index.txt
 %ghost %{_libdir}/R/doc/html/packages.html
 %{_libdir}/R/doc/html/*.jpg
 %dir %{_libdir}/R/doc/html/search
 %{_libdir}/R/doc/html/search/[A-Z]*
 %ghost %{_libdir}/R/doc/html/search/index.txt
 %ghost %{_libdir}/R/doc/html/packages.html
-%{_desktopdir}/*
+%{_desktopdir}/*.desktop
+
+%dir %{perl_vendorlib}/R
+%{perl_vendorlib}/R/*
+%{perl_vendorlib}/Text/*
 
 %attr(755,root,root) %{_libdir}/%{name}/modules
 
 
 %attr(755,root,root) %{_libdir}/%{name}/modules
 
+%{_libdir}/%{name}/library/KernSmooth
+%{_libdir}/%{name}/library/MASS
 %{_libdir}/%{name}/library/base
 %{_libdir}/%{name}/library/base
+%{_libdir}/%{name}/library/boot
+%{_libdir}/%{name}/library/class
+%{_libdir}/%{name}/library/cluster
+%{_libdir}/%{name}/library/codetools
 %{_libdir}/%{name}/library/datasets
 %{_libdir}/%{name}/library/datasets
-%{_libdir}/%{name}/library/grid
-%{_libdir}/%{name}/library/graphics
+%{_libdir}/%{name}/library/foreign
 %{_libdir}/%{name}/library/grDevices
 %{_libdir}/%{name}/library/grDevices
+%{_libdir}/%{name}/library/graphics
+%{_libdir}/%{name}/library/grid
+%{_libdir}/%{name}/library/lattice
 %{_libdir}/%{name}/library/methods
 %{_libdir}/%{name}/library/methods
-%{_libdir}/%{name}/library/utils
-%{_libdir}/%{name}/library/tcltk
+%{_libdir}/%{name}/library/mgcv
+%{_libdir}/%{name}/library/nlme
+%{_libdir}/%{name}/library/nnet
+%{_libdir}/%{name}/library/rcompgen
+%{_libdir}/%{name}/library/rpart
+%{_libdir}/%{name}/library/spatial
+%{_libdir}/%{name}/library/survival
 %{_libdir}/%{name}/library/splines
 %{_libdir}/%{name}/library/stats
 %{_libdir}/%{name}/library/stats4
 %{_libdir}/%{name}/library/splines
 %{_libdir}/%{name}/library/stats
 %{_libdir}/%{name}/library/stats4
+%{_libdir}/%{name}/library/tcltk
 %{_libdir}/%{name}/library/tools
 %{_libdir}/%{name}/library/tools
+%{_libdir}/%{name}/library/utils
 
 %files recommended
 
 %files recommended
+%defattr(644,root,root,755)
This page took 0.042078 seconds and 4 git commands to generate.