.gear/rules | 2 + .../tags/ec4060cf59d1353350b7cb267f9cb3a2fc86fdb3 | 13 + .gear/tags/list | 1 + R-base.spec | 523 ++++++++++++++++++++ doc/manual/Makefile.in | 2 +- src/extra/blas/Makefile.in | 2 +- src/extra/bzip2/Makefile.in | 4 +- src/extra/pcre/Makefile.in | 4 +- src/extra/xdr/Makefile.in | 4 +- src/extra/zlib/Makefile.in | 4 +- 10 files changed, 545 insertions(+), 14 deletions(-) diff --git a/.gear/rules b/.gear/rules new file mode 100644 index 0000000..4fd6ac0 --- /dev/null +++ b/.gear/rules @@ -0,0 +1,2 @@ +tar: @version@:. name=R-@version@ +diff: @version@:. . name=R-@version@-@release@.patch diff --git a/.gear/tags/ec4060cf59d1353350b7cb267f9cb3a2fc86fdb3 b/.gear/tags/ec4060cf59d1353350b7cb267f9cb3a2fc86fdb3 new file mode 100644 index 0000000..a27a057 --- /dev/null +++ b/.gear/tags/ec4060cf59d1353350b7cb267f9cb3a2fc86fdb3 @@ -0,0 +1,13 @@ +object ea38c4a77fb76c5281284547c456b10cea01491d +type commit +tag 2.9.2 +tagger Alexey Tourbin 1254293714 +0400 + +2.9.2 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.10 (GNU/Linux) + +iEYEABECAAYFAkrDANIACgkQfBKgtDjnu0bf9wCdHGkBimcE8hnrPNBki4yjrU9e +zlwAn32z39LWbgfkqLWC4ztWAgwAuUyM +=72+m +-----END PGP SIGNATURE----- diff --git a/.gear/tags/list b/.gear/tags/list new file mode 100644 index 0000000..56df960 --- /dev/null +++ b/.gear/tags/list @@ -0,0 +1 @@ +ec4060cf59d1353350b7cb267f9cb3a2fc86fdb3 2.9.2 diff --git a/R-base.spec b/R-base.spec new file mode 100644 index 0000000..8a4fbfd --- /dev/null +++ b/R-base.spec @@ -0,0 +1,523 @@ +Name: R-base +Version: 2.9.2 +Release: alt1 + +Summary: A language for data analysis and graphics +License: GPL +Group: Sciences/Mathematics + +URL: http://www.r-project.org +Source: R-%version.tar +Patch: R-%version-%release.patch + +BuildPreReq: perl-File-Copy-Recursive +BuildPreReq: perl-Text-DelimMatch + +# Automatically added by buildreq on Wed Sep 30 2009 +BuildRequires: bzlib-devel gcc-c++ gcc-fortran imake libXmu-devel libjpeg-devel liblapack-devel libpango-devel libpaper libpcre-devel libpng-devel libreadline-devel libtiff-devel tetex-context tetex-dvips tetex-latex tk-devel xorg-cf-files + +%description +R is `GNU S' - A language and environment for statistical computing +and graphics. R is similar to the award-winning S system, which was +developed at Bell Laboratories by John Chambers et al. It provides a +wide variety of statistical and graphical techniques (linear and +nonlinear modelling, statistical tests, time series analysis, +classification, clustering, ...). + +R is designed as a true computer language with control-flow +constructions for iteration and alternation, and it allows users to +add additional functionality by defining new functions. For +computationally intensive tasks, C, C++ and Fortran code can be +linked and called at run time. + +S is the statistician's Matlab and R is to S what Octave is to Matlab. + +%prep +%setup -q -n R-%version +%patch -p1 +rm src/extra/{zlib,bzip2,pcre}/*.[ch] +rm src/extra/blas/*.f src/modules/lapack/*.f + +%build +%define verid 2.9 +%define Rhome %_libdir/R +%define Rbindir %Rhome/bin +%define Rdocdir %_docdir/R-%verid +export ac_cv_path_R_ZIPCMD=zip ac_cv_path_R_UNZIPCMD=unzip \ + ac_cv_path_R_BROWSER=firefox ac_cv_path_R_PDFVIEWER=evince \ + ac_cv_path_PAGER='less -isR' ac_cv_prog_R_PRINTCMD=lpr +%configure \ + --enable-R-shlib --with-x \ + --with-system-zlib --with-system-bzlib --with-system-pcre \ + --with-blas=-lblas --with-lapack=-llapack \ + --with-tcl-config=%_libdir/tclConfig.sh --with-tk-config=%_libdir/tkConfig.sh \ + --libdir='${prefix}/%_lib' rincludedir='${prefix}/include/R' \ + rdocdir='${prefix}/share/doc/R-%verid' \ + # + +%define soname libR-%verid.so +mkdir -p lib +ln -s %soname lib/libR.so +%make_build libR_la=%soname LIBR_LDFLAGS=-Wl,-soname=%soname +%make_build pdf info + +%ifndef __buildreqs +make check +%endif + +%install +%make_install install install-pdf install-info DESTDIR=%buildroot libR_la=%soname +mv %buildroot%Rhome/lib/%soname %buildroot%_libdir/%soname +ln -s `relative %_libdir/%soname %Rhome/lib/libR.so` %buildroot%Rhome/lib/libR.so + +ln -s `relative %Rdocdir %Rhome/doc` %buildroot%Rhome/doc +ln -s `relative %_includedir/R %Rhome/include` %buildroot%Rhome/include + +cmp %buildroot%_bindir/R %buildroot%Rhome/bin/R +ln -snfv `relative %Rhome/bin/R %_bindir/R` %buildroot%_bindir/R +cmp %buildroot%_bindir/Rscript %buildroot%Rhome/bin/Rscript +ln -snfv `relative %Rhome/bin/Rscript %_bindir/Rscript` %buildroot%_bindir/Rscript + +fgrep -r %buildroot %buildroot && exit 1 + +mkdir -p %buildroot/etc/R +mv %buildroot%Rhome/etc/* %buildroot/etc/R/ +rmdir %buildroot%Rhome/etc +ln -s `relative /etc/R %Rhome/etc` %buildroot%Rhome/etc + +# libR is relocated, nuke LD_LIBRARY_PATH +[ -f %buildroot/etc/R/ldpaths ] +: >%buildroot/etc/R/ldpaths + +mkdir -p %buildroot%_menudir +cat >%buildroot%_menudir/%name </dev/null ||: +/bin/rm -rf %Rhome/etc/ 2>/dev/null ||: + +%triggerun -- R-base < 2.4.1 +/bin/mv %Rhome/doc %Rhome/doc~$PPID +/bin/mv %Rhome/etc %Rhome/etc~$PPID + +%triggerpostun -- R-base < 2.4.1 +/bin/mv %Rhome/doc~$PPID %Rhome/doc +/bin/mv %Rhome/etc~$PPID %Rhome/etc + +%files + %_bindir/R + %_bindir/Rscript + %_man1dir/R.* + %_man1dir/Rscript.* + %_libdir/%soname + %_menudir/%name + +%dir %Rhome + +%dir %Rbindir + %Rbindir/R + %Rbindir/Rscript + + %Rbindir/BATCH + %Rbindir/Rcmd + %Rbindir/Rd2dvi + %Rbindir/Rd2txt + %Rbindir/Rdconv + %Rbindir/Rprof + %Rbindir/Sd2Rd + %Rbindir/pager + %Rbindir/Stangle + %Rbindir/Sweave + %Rbindir/javareconf + +%dir %Rbindir/exec + %Rbindir/exec/R + +%dir /etc/R +%config(noreplace) /etc/R/* + %Rhome/etc + +%define R_library_path %Rhome/library +%dir %R_library_path +%doc %R_library_path/R.css + +%define R_library() \ +%dir %R_library_path/%1 \ + %R_library_path/%1/* \ +%doc %R_library_path/%1/man \ +%doc %R_library_path/%1/html \ +%doc %R_library_path/%1/latex \ +#doc %R_library_path/%1/help \ + # + +# Priority: base + %R_library base + %R_library datasets + %R_library grDevices + %R_library graphics + %R_library grid + %R_library methods + %R_library splines + %R_library stats + %R_library stats4 + %R_library tools + %R_library utils +# Priority: recommended + %R_library KernSmooth + %R_library MASS + %R_library Matrix + %R_library boot + %R_library class + %R_library cluster + %R_library codetools + %R_library foreign + %R_library lattice + %R_library mgcv + %R_library nlme + %R_library nnet + %R_library rpart + %R_library spatial + %R_library survival + +%dir %Rhome/modules + %Rhome/modules/*.so* +%dir %Rhome/share + %Rhome/share/* + +%dir %Rdocdir +%doc %Rdocdir/[A-Z]* +%exclude %Rdocdir/COPYING* + %Rhome/doc + +%package -n R-devel +Summary: Development files for the R Statistical Environment +Group: Development/Other +PreReq: R-base = %version-%release + +%description -n R-devel +R is `GNU S' - A language and environment for statistical computing +and graphics. R is similar to the award-winning S system, which was +developed at Bell Laboratories by John Chambers et al. It provides a +wide variety of statistical and graphical techniques (linear and +nonlinear modelling, statistical tests, time series analysis, +classification, clustering, ...). + +%files -n R-devel +%dir %Rbindir + %Rbindir/COMPILE + %Rbindir/INSTALL + %Rbindir/LINK + %Rbindir/REMOVE + %Rbindir/Rdiff + %Rbindir/SHLIB + %Rbindir/build + %Rbindir/check + %Rbindir/config + %Rbindir/f77_f2c + %Rbindir/libtool + %Rbindir/mkinstalldirs + +%dir %_includedir/R + %_includedir/R/*.h +%dir %_includedir/R/R_ext + %_includedir/R/R_ext/*.h + %Rhome/include + +%dir %Rhome +%dir %Rhome/lib + %Rhome/lib/libR.so + + %_pkgconfigdir/libR.pc + +%package -n R-tcltk +Summary: Tcl/Tk Interface for the R Statistical Environment +Group: Sciences/Mathematics +Requires: R-base = %version-%release + +%description -n R-tcltk +R is `GNU S' - A language and environment for statistical computing +and graphics. R is similar to the award-winning S system, which was +developed at Bell Laboratories by John Chambers et al. It provides a +wide variety of statistical and graphical techniques (linear and +nonlinear modelling, statistical tests, time series analysis, +classification, clustering, ...). + +This package provides access to the platform-independent Tcl scripting +language and Tk GUI elements. + +%files -n R-tcltk +%add_tcl_lib_path %R_library_path/tcltk +%dir %R_library_path + %R_library tcltk + +%package -n R-doc-html +Summary: HTML manuals for the R Statistical Environment +Group: Sciences/Mathematics +Requires: R-base = %version-%release +BuildArch: noarch + +%description -n R-doc-html +R is `GNU S' - A language and environment for statistical computing +and graphics. R is similar to the award-winning S system, which was +developed at Bell Laboratories by John Chambers et al. It provides a +wide variety of statistical and graphical techniques (linear and +nonlinear modelling, statistical tests, time series analysis, +classification, clustering, ...). + +%files -n R-doc-html +%dir %Rdocdir +%dir %Rdocdir/html/ +%doc %Rdocdir/html/* +%dir %Rdocdir/manual/ +%doc %Rdocdir/manual/*.html + +%package -n R-doc-pdf +Summary: PDF manuals for the R Statistical Environment +Group: Sciences/Mathematics +Conflicts: R-base > %version, R-base < %version +BuildArch: noarch + +%description -n R-doc-pdf +R is `GNU S' - A language and environment for statistical computing +and graphics. R is similar to the award-winning S system, which was +developed at Bell Laboratories by John Chambers et al. It provides a +wide variety of statistical and graphical techniques (linear and +nonlinear modelling, statistical tests, time series analysis, +classification, clustering, ...). + +%files -n R-doc-pdf +%dir %Rdocdir +%dir %Rdocdir/manual/ +%doc %Rdocdir/manual/*.pdf + +%package -n R-doc-info +Summary: Info manuals for the R Statistical Environment +Group: Sciences/Mathematics +Conflicts: R-base > %version, R-base < %version +BuildArch: noarch + +%description -n R-doc-info +R is `GNU S' - A language and environment for statistical computing +and graphics. R is similar to the award-winning S system, which was +developed at Bell Laboratories by John Chambers et al. It provides a +wide variety of statistical and graphical techniques (linear and +nonlinear modelling, statistical tests, time series analysis, +classification, clustering, ...). + +%files -n R-doc-info +%_infodir/R-*.info* + +%changelog +* Wed Sep 30 2009 Alexey Tourbin 2.9.2-alt1 +- 2.9.1 -> 2.9.2 + +* Fri Jul 17 2009 Alexey Tourbin 2.9.1-alt1 +- 2.9.0 -> 2.9.1 +- removed install_info scriptlets + +* Mon May 11 2009 Alexey Tourbin 2.9.0-alt1 +- 2.8.1 -> 2.9.0 +- packaged Matrix (new library) + +* Sat Mar 07 2009 Alexey Tourbin 2.8.1-alt1 +- 2.8.0 -> 2.8.1 + +* Tue Nov 04 2008 Alexey Tourbin 2.8.0-alt1 +- 2.7.2 -> 2.8.0 +- set default R_PRINTCMD to "lpr" (#17625) + +* Fri Sep 12 2008 Alexey Tourbin 2.7.2-alt1 +- 2.7.1 -> 2.7.2 + +* Sat Aug 09 2008 Alexey Tourbin 2.7.1-alt1 +- 2.6.2 -> 2.7.1 +- set default web browser to firefox, default pdf viewer to evince +- build with external perl-Text-DelimMatch module +- made R-doc-* subpackages noarch + +* Mon Mar 17 2008 Alexey Tourbin 2.6.2-alt1 +- 2.4.1 -> 2.6.2 + +* Mon Feb 19 2007 Alexey Tourbin 2.4.1-alt1 +- 2.3.1 -> 2.4.1 +- imported sources into git and adapted for gear +- split the package into subpackages: R-base, R-devel, R-tcltk, + R-doc-html, R-doc-pdf, R-doc-info +- relocated /usr/lib/R/doc/ to /usr/share/doc/R-2.4/, + /usr/lib/R/include/ to /usr/include/R/, /usr/lib/R/etc/ to /etc/R/; + provided compatibility symbolic links + +* Sun Jun 04 2006 Alexey Tourbin 2.3.1-alt1 +- 2.3.0 -> 2.3.1 +- built with gfortran +- eliminated libtool and texi2dvi copies in %Rhome/bin/ + +* Wed Apr 26 2006 Alexey Tourbin 2.3.0-alt1 +- picked up from oprphaned +- major revision, revamped specfile +- removed menu icons (icons suck) +- removed %%post doc index update (no cran packages yet) +- relocated libR.so to %_libdir, soname=libR-2.3.so.0 +- built against system zlib (#8243) and bzlib (#8249) +- also built against system BLAS and LAPACK shared libraries + +* Sun Aug 01 2004 Yehuda Ben-Yosef 1.9.1-alt1 +- 1.9.1 + +* Mon Mar 22 2004 Vitaly Lugovsky 1.8.1-alt1 +- a new version + +* Thu Oct 16 2003 Vitaly Lugovsky 1.8.0-alt1 +- a new version, library path fixed. + +* Mon Jun 23 2003 Yehuda Ben-Yosef 1.7.1-alt1 +- 1.7.1 + +* Wed Feb 26 2003 Yehuda Ben-Yosef 1.6.2-alt1 +- 1.6.2 + +* Mon Feb 10 2003 Yehuda Ben-Yosef 1.6.1-alt3 +- new autoreq + +* Tue Dec 10 2002 Yehuda Ben-Yosef 2:1.6.1-alt2 +- Building in new perl +- New snapshot path + +* Thu Nov 14 2002 Yehuda Ben-Yosef 1.6.1-alt1 +- 1.6.1 + +* Tue Oct 16 2002 Yehuda Ben-Yosef 1.6.0-alt1 +- 1.6.0 +- gcc-3.2, automake-2.5 + +* Thu Jun 13 2002 Sergey Bolshakov 1.4.1-alt2 +- rebuilt in new env + +* Fri Mar 01 2002 Stanislav Ievlev 1.4.1-alt1 +- 1.4.1 + +* Fri Dec 21 2001 Stanislav Ievlev 1.4.0-alt1 +- 1.4.0 + +* Thu Oct 11 2001 Stanislav Ievlev 1.3.1-alt2 +- Rebuild with new libpng + +* Mon Oct 01 2001 Stanislav Ievlev 1.3.1-alt1 +- 1.3.1 + +* Mon Jul 09 2001 Stanislav Ievlev 1.3.0-alt1 +- 1.3.0 + +* Thu May 24 2001 Stanislav Ievlev 1.2.3-alt1 +- 1.2.3. Spec cleanup. + +* Tue Jan 16 2001 AEN +- RE adaptations + +* Fri Dec 22 2000 Giuseppe Ghib? 1.2.0-4mdk +- added PDF of Reference Manual. +- added tcl, tk in BuildRequires. + +* Tue Dec 19 2000 Giuseppe Ghib? 1.2.0-3mdk +- removed stdout output in post scripts. + +* Tue Dec 19 2000 David BAUDENS 1.2.0-2mdk +- ExcludeArch: ppc + +* Tue Dec 19 2000 Giuseppe Ghib? 1.2.0-1mdk +- new fresh release. + +* Tue Dec 19 2000 Giuseppe Ghib? 1.1.1-3mdk +- fixed broken macros (aargh!). + +* Sun Oct 28 2000 David BAUDENS 1.1.1-2mdk +- Use %%make macro +- bzip2 patch + +* Fri Sep 01 2000 Giuseppe Ghib? 1.1.1-1mdk +- initial mandrake release. +- added BuildRequires. +- added -fno-fast-math, otherwise R doesn't passes the arith checks. +- switched order of make check and make pdf. + +* Wed Aug 16 2000 Martyn Plummer +- R 1.1.1 released. Removed R-1.1.0-cofig.sub-alpha.patch since + this version uses up to date config.sub. + +* Fri Jun 16 2000 Martyn Plummer +- Added patch R-1.1.0-cofig.sub-alpha.patch from Naoki Takebayashi + +* Thu Jun 15 2000 Martyn Plummer +- Removed dependencies on egcs egcs-g77 + +* Tue Feb 29 2000 Martyn Plummer +- Added egcs, egcs-g77 and perl as requirements. People who want to install + their own R packages need a working build environment. + +* Fri Feb 11 2000 Martyn Plummer +- Remove latex versions of help pages, to save a bit of space. +- PDF files installed in top level doc directory. +- Included R-0.99.0-fixes patch for some serious bugs + +* Tue Feb 8 2000 Martyn Plummer +- Added patch R-refman.patch which prevents building the reference manual + +* Fri Feb 4 2000 Martyn Plummer +- Updated in preparation for R-0.99.0. +- Now install manual in pdf format. + +* Wed Dec 15 1999 Martyn Plummer +- R-0.90.1. Removed Naoki's memory profile patch + +* Fri Dec 3 1999 Tim Powers +- move configure into build section +- quiet scripts +- built for Powertools-6.2 + +* Mon Nov 29 1999 Martyn Plummer +- Added patch from Naoki to fix problem with memory profile. + (will be folded in to next R version). + +* Mon Nov 22 1999 Martyn Plummer +- R 0.90.0 Naoki's patch for FFT bug no longer necessary. +- Updated URL tag to www.r-project.org + +* Thu Oct 28 1999 Martyn Plummer +- RHCN is officially dead. Changed the Packager field + back to my name and removed the Distribution field. + +* Thu Oct 14 1999 Martyn Plummer +- Set CFLAGS and FFLAGS to be RPM_OPT_FLAGS. Thanks to + Timothy H. Keitt +- Simplified file list. + +* Fri Oct 8 1999 Martyn Plummer +- Added patch from Naoki Takebayashi to fix FFT bug on Alpha + (also found on Sparc). + +* Tue Sep 7 1999 Martyn Plummer + [R-base-0.65.0-1] +- RHOME is now R_HOME. Changed sed scripts accordingly. +- TASKS file is no longer in file list. + diff --git a/doc/manual/Makefile.in b/doc/manual/Makefile.in index 277b513..0c6024c 100644 --- a/doc/manual/Makefile.in +++ b/doc/manual/Makefile.in @@ -110,7 +110,7 @@ docs: html $(ECHO) "ERROR: 'texi2dvi' needed but missing on your system."; \ exit 1; \ fi - TEXINPUTS="$(srcdir):$$TEXINPUTS" $(TEXI2PDF) $< + TEXINPUTS="$(srcdir):$$TEXINPUTS" $(TEXI2PDF) $< || [ -s $@ ] ## We have to be careful not to install a local R-admin.html made prior to ## texinfo 4.7, as doc/html/SearchEngine.html links to it. diff --git a/src/extra/blas/Makefile.in b/src/extra/blas/Makefile.in index 921df25..54ccb65 100644 --- a/src/extra/blas/Makefile.in +++ b/src/extra/blas/Makefile.in @@ -23,7 +23,7 @@ Rblas_la_LIBADD0 = @RBLAS_LDFLAGS@ all: Makefile @BLAS_SHLIB_TRUE@ R -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(SOURCES_C) +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ R: diff --git a/src/extra/bzip2/Makefile.in b/src/extra/bzip2/Makefile.in index 6b92f71..c7e28de 100644 --- a/src/extra/bzip2/Makefile.in +++ b/src/extra/bzip2/Makefile.in @@ -32,9 +32,7 @@ libbz2_a_OBJECTS = $(OBJECTS) all: Makefile Makedeps R -Makefile: $(srcdir)/Makefile.in \ - $(top_builddir)/config.status \ - $(SOURCES) +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ Makedeps: Makefile $(DEPENDS) diff --git a/src/extra/pcre/Makefile.in b/src/extra/pcre/Makefile.in index baa6f58..5d195fd 100644 --- a/src/extra/pcre/Makefile.in +++ b/src/extra/pcre/Makefile.in @@ -35,9 +35,7 @@ libpcre_a_OBJECTS = $(OBJECTS) all: R -Makefile: $(srcdir)/Makefile.in \ - $(top_builddir)/config.status \ - $(SOURCES) +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ Makedeps: Makefile $(DEPENDS) diff --git a/src/extra/xdr/Makefile.in b/src/extra/xdr/Makefile.in index d76937f..4d725b3 100644 --- a/src/extra/xdr/Makefile.in +++ b/src/extra/xdr/Makefile.in @@ -39,9 +39,7 @@ libxdr_a_OBJECTS = $(OBJECTS) all: Makefile Makedeps R -Makefile: $(srcdir)/Makefile.in \ - $(top_builddir)/config.status \ - $(SOURCES) +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ Makedeps: Makefile $(DEPENDS) diff --git a/src/extra/zlib/Makefile.in b/src/extra/zlib/Makefile.in index 668a08d..dc82108 100644 --- a/src/extra/zlib/Makefile.in +++ b/src/extra/zlib/Makefile.in @@ -33,9 +33,7 @@ libz_a_OBJECTS = $(OBJECTS) all: Makefile Makedeps R -Makefile: $(srcdir)/Makefile.in \ - $(top_builddir)/config.status \ - $(SOURCES) +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ Makedeps: Makefile $(DEPENDS)