]> git.pld-linux.org Git - packages/R.git/blobdiff - R.spec
- massive attack s/pld.org.pl/pld-linux.org/
[packages/R.git] / R.spec
diff --git a/R.spec b/R.spec
index 45abdd13061866f937edf191db775ea66a900ae2..a445ea60b010f5a0649769ab706017ffd8590149 100644 (file)
--- a/R.spec
+++ b/R.spec
@@ -5,38 +5,38 @@
 Summary:       A language for data analysis and graphics
 Summary(pl):   Jêzyk do analizy danych oraz grafiki
 Name:          R
-Version:       1.5.0
+Version:       1.6.1
 Release:       2
+License:       Mixed (distributable), mostly GPL
+Group:         Development/Languages
 Source0:       ftp://stat.ethz.ch/R-CRAN/src/base/%{name}-%{version}.tgz
-Source1:       ftp://stat.ethz.ch/R-CRAN/src/contrib/KernSmooth_2.22-7.tar.gz
-Source2:       ftp://stat.ethz.ch/R-CRAN/src/contrib/VR_7.0-1.tar.gz
-Source3:       ftp://stat.ethz.ch/R-CRAN/src/contrib/acepack_1.3.tar.gz
+Source1:       ftp://stat.ethz.ch/R-CRAN/src/contrib/KernSmooth_2.22-8.tar.gz
+Source2:       ftp://stat.ethz.ch/R-CRAN/src/contrib/VR_7.0-9.tar.gz
+Source3:       ftp://stat.ethz.ch/R-CRAN/src/contrib/acepack_1.3-2.tar.gz
 Source4:       ftp://stat.ethz.ch/R-CRAN/src/contrib/boot_1.2-8.tar.gz
-Source5:       ftp://stat.ethz.ch/R-CRAN/src/contrib/bootstrap_1.0-9.tar.gz
-Source6:       ftp://stat.ethz.ch/R-CRAN/src/contrib/cluster_1.4-2.tar.gz
+Source5:       ftp://stat.ethz.ch/R-CRAN/src/contrib/bootstrap_1.0-11.tar.gz
+Source6:       ftp://stat.ethz.ch/R-CRAN/src/contrib/cluster_1.6-2.tar.gz
 Source7:       ftp://stat.ethz.ch/R-CRAN/src/contrib/date_1.2-12.tar.gz
-Source8:       ftp://stat.ethz.ch/R-CRAN/src/contrib/e1071_1.2-1.tar.gz
-Source9:       ftp://stat.ethz.ch/R-CRAN/src/contrib/foreign_0.5-3.tar.gz
-Source10:      ftp://stat.ethz.ch/R-CRAN/src/contrib/fracdiff_1.0-7.tar.gz
-Source11:      ftp://stat.ethz.ch/R-CRAN/src/contrib/gee_4.13-7.tar.gz
-Source12:      ftp://stat.ethz.ch/R-CRAN/src/contrib/grid_0.6.tar.gz
-Source13:      ftp://stat.ethz.ch/R-CRAN/src/contrib/lattice_0.5-1.tar.gz
-Source14:      ftp://stat.ethz.ch/R-CRAN/src/contrib/leaps_2.4.tar.gz
-Source15:      ftp://stat.ethz.ch/R-CRAN/src/contrib/mgcv_0.7-2.tar.gz
-Source16:      ftp://stat.ethz.ch/R-CRAN/src/contrib/mlbench_0.5-4.tar.gz
-Source17:      ftp://stat.ethz.ch/R-CRAN/src/contrib/nlme_3.1-27.tar.gz
+Source8:       ftp://stat.ethz.ch/R-CRAN/src/contrib/e1071_1.3-5.tar.gz
+Source9:       ftp://stat.ethz.ch/R-CRAN/src/contrib/foreign_0.5-6.tar.gz
+Source10:      ftp://stat.ethz.ch/R-CRAN/src/contrib/fracdiff_1.0-8.tar.gz
+Source11:      ftp://stat.ethz.ch/R-CRAN/src/contrib/gee_4.13-10.tar.gz
+Source12:      ftp://stat.ethz.ch/R-CRAN/src/contrib/grid_0.7-1.tar.gz
+Source13:      ftp://stat.ethz.ch/R-CRAN/src/contrib/lattice_0.6-6.tar.gz
+Source14:      ftp://stat.ethz.ch/R-CRAN/src/contrib/leaps_2.5.tar.gz
+Source15:      ftp://stat.ethz.ch/R-CRAN/src/contrib/mgcv_0.8-6.tar.gz
+Source16:      ftp://stat.ethz.ch/R-CRAN/src/contrib/mlbench_0.5-7.tar.gz
+Source17:      ftp://stat.ethz.ch/R-CRAN/src/contrib/nlme_3.1-33.tar.gz
 Source18:      ftp://stat.ethz.ch/R-CRAN/src/contrib/oz_1.0-6.tar.gz
-Source19:      ftp://stat.ethz.ch/R-CRAN/src/contrib/polynom_1.1-9.tar.gz
-Source20:      ftp://stat.ethz.ch/R-CRAN/src/contrib/princurve_1.1-3.tar.gz
-Source21:      ftp://stat.ethz.ch/R-CRAN/src/contrib/quadprog_1.4-4.tar.gz
-Source22:      ftp://stat.ethz.ch/R-CRAN/src/contrib/rpart_3.1-6.tar.gz
-Source23:      ftp://stat.ethz.ch/R-CRAN/src/contrib/survival_2.9-1.tar.gz
-Source24:      ftp://stat.ethz.ch/R-CRAN/src/contrib/xgobi_1.2-5.tar.gz
+Source19:      ftp://stat.ethz.ch/R-CRAN/src/contrib/polynom_1.1-10.tar.gz
+Source20:      ftp://stat.ethz.ch/R-CRAN/src/contrib/princurve_1.1-5.tar.gz
+Source21:      ftp://stat.ethz.ch/R-CRAN/src/contrib/quadprog_1.4-5.tar.gz
+Source22:      ftp://stat.ethz.ch/R-CRAN/src/contrib/rpart_3.1-8.tar.gz
+Source23:      ftp://stat.ethz.ch/R-CRAN/src/contrib/survival_2.9-6.tar.gz
+Source24:      ftp://stat.ethz.ch/R-CRAN/src/contrib/xgobi_1.2-7.tar.gz
 Source25:      ftp://stat.ethz.ch/R-CRAN/src/contrib/Archive/integrate_2.2-3.tar.gz
-License:       Mixed (distributable), mostly GPL
-Group:         Development/Languages
+Source26:      %{name}.desktop
 URL:           http://stat.auckland.ac.nz/r/r.html
-Provides:      R-base R-contrib
 BuildRequires: autoconf
 BuildRequires: automake
 BuildRequires: libstdc++-devel
@@ -58,7 +58,9 @@ BuildRequires:        readline-devel
 #BuildRequires:        lpr
 %{!?_without_gnome:BuildRequires:      gnome-libs-devel}
 %{!?_without_gnome:BuildRequires:      ORBit-devel}
-%{!?_without_gnome:BuildRequires:      libglade-devel}
+%{!?_without_gnome:BuildRequires:      libglade-gnome-devel}
+Provides:      R-base
+Provides:      R-contrib
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -85,10 +87,12 @@ implementacja i semantyka wywodzi si
 %package base
 Summary:       The R base distribution
 Summary(pl):   Podstawowa dystrybucja R
+License:       GPL v2 / LGPL
 Group:         Development/Languages
+Requires(post):        textutils
+Requires(post):        perl
 Provides:      R-ctest R-eda R-lqs R-methods R-modreg R-mva R-nls R-splines
 Provides:      R-stepfun R-tcltk R-tools R-ts
-License:       GPL v2 / LGPL
 
 %description base
 R is a language and run-time environment for carrying out interactive
@@ -113,9 +117,10 @@ Provides:  R-KernSmooth R-VR R-boot R-cluster R-foreign R-grid
 Provides:      R-lattice R-mgcv R-nlme R-rpart R-survival
 License:       GPL, free or free for non-commercial use
 URL:           http://www.ci.tuwien.ac.at/R/
+Requires(post,postun): R-base
+Requires(post,postun): textutils
+Requires(post,postun): perl
 Requires:      R-base >= %{version}
-Requires(post):        R-base
-Requires(postun):      R-base
 Obsoletes:     R-survival4 R-MASS R-clus R-class R-nnet R-spatial
 
 %description recommended
@@ -129,16 +134,17 @@ dystrubuowane w archiwum CRAN (Comprehensive R Archive Network).
 %package contrib
 Summary:       Contributed packages for the R language
 Summary(pl):   Dodatkowe pakiety do jêzyka R
-Group:         Development/Languages
-Provides:      R-acepack R-bootstrap R-date R-e1071 R-fracdiff R-gee
-Provides:      R-integrate R-leaps R-oz R-polynom R-princurve R-quadprog
-Provides:      R-xgobi
 License:       Mixed
+Group:         Development/Languages
 URL:           http://www.ci.tuwien.ac.at/R/
+Requires(post,postun): R-base
+Requires(post,postun): textutils
+Requires(post,postun): perl
 Requires:      R-base >= %{version}
 Requires:      R-VR
-Requires(post):        R-base
-Requires(postun):      R-base
+Provides:      R-acepack R-bootstrap R-date R-e1071 R-fracdiff R-gee
+Provides:      R-integrate R-leaps R-oz R-polynom R-princurve R-quadprog
+Provides:      R-xgobi
 Obsoletes:     R-principal.curve
 
 %description contrib
@@ -155,9 +161,10 @@ Summary(pl):       Testy wydajno
 Group:         Development/Languages
 License:       GPL
 URL:           http://www.ics.uci.edu/~mlearn/MLRepository.html
+Requires(post,postun): R-base
+Requires(post,postun): textutils
+Requires(post,postun): perl
 Requires:      R-base >= %{version}
-Requires(post):        R-base
-Requires(postun):      R-base
 
 %description mlbench
 R package which contains a collection of real-world datasets and
@@ -195,7 +202,7 @@ uczenia maszyny.
 %setup -q -c -n R-cran -T -D -b 23
 %setup -q -c -n R-cran -T -D -b 24
 %setup -q -c -n R-cran -T -D -b 25
-%setup -q 
+%setup -q
 #%setup -q -T -D -a 14
 
 # These files have the path for PERL hard-coded as /usr/local/bin/perl
@@ -203,8 +210,8 @@ uczenia maszyny.
 rm -f ./doc/keyword-test.orig ./etc/undoc/R-funs.orig ./etc/undoc/extrExamp.orig 
 
 %build
-aclocal
-autoconf
+%{__aclocal}
+%{__autoconf}
 cp -f /usr/share/automake/config.* .
 %configure \
        %{!?_without_gnome:--with-gnome} \
@@ -262,7 +269,9 @@ cd ${R_HOME}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_libdir}/R}
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_libdir}/R,%{_applnkdir}/Scientific/Numerics}
+
+install %{SOURCE26} $RPM_BUILD_ROOT%{_applnkdir}/Scientific/Numerics/%{name}.desktop
 
 mv doc/R.1 $RPM_BUILD_ROOT%{_mandir}/man1/
 sed "s,`pwd`,%{_libdir}/R,g" < bin/R > bin/R. ; mv bin/R. bin/R
@@ -278,7 +287,7 @@ cp -R AUTHORS afm bin doc etc include library modules share \
 rm -rf $RPM_BUILD_ROOT
 
 %post base
-(cd %{_libdir}/R/library; cat */CONTENTS > ../doc/html/search/index.txt
+(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)
 
 #%preun base
@@ -292,28 +301,34 @@ rm -rf $RPM_BUILD_ROOT
 #fi
 
 %post contrib
-(cd %{_libdir}/R/library; cat */CONTENTS > ../doc/html/search/index.txt
+(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)
 
 %postun contrib
-(cd %{_libdir}/R/library; cat */CONTENTS > ../doc/html/search/index.txt
+if [ -f ../bin/Rcmd ];then
+(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)
+fi
 
 %post recommended
-(cd %{_libdir}/R/library; cat */CONTENTS > ../doc/html/search/index.txt
+(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)
 
 %postun recommended
-(cd %{_libdir}/R/library; cat */CONTENTS > ../doc/html/search/index.txt
+if [ -f ../bin/Rcmd ];then
+(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)
+fi
 
 %post mlbench
-(cd %{_libdir}/R/library; cat */CONTENTS > ../doc/html/search/index.txt
+(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)
 
 %postun mlbench
-(cd %{_libdir}/R/library; cat */CONTENTS > ../doc/html/search/index.txt
+if [ -f ../bin/Rcmd ];then
+(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)
+fi
 
 %files base
 %defattr(644,root,root,755)
@@ -327,6 +342,7 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/R/share
 %{_libdir}/R/AUTHORS
 %dir %{_libdir}/R/library
+%{_libdir}/R/library/*.css
 %{_libdir}/R/library/base
 %{_libdir}/R/library/ctest
 %{_libdir}/R/library/eda
@@ -354,6 +370,7 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/R/doc/html/search/[A-Z]*
 %ghost %{_libdir}/R/doc/html/search/index.txt
 %ghost %{_libdir}/R/doc/html/packages.html
+%{_applnkdir}/Scientific/Numerics/*
 
 %files recommended
 %defattr(644,root,root,755)
This page took 0.082825 seconds and 4 git commands to generate.