From 5c7326d9e7db325df8f42c6ba6fa81251c227e29 Mon Sep 17 00:00:00 2001 From: kloczek Date: Tue, 11 May 1999 02:04:50 +0000 Subject: [PATCH] - raw version from RH contrib. Changed files: R.spec -> 1.1 --- R.spec | 291 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 291 insertions(+) create mode 100644 R.spec diff --git a/R.spec b/R.spec new file mode 100644 index 0000000..ecf3d2b --- /dev/null +++ b/R.spec @@ -0,0 +1,291 @@ +Summary: A language for data analysis and graphics +Name: R +Version: 0.61.1 +Release: 3 +Source0: ftp.stat.math.ethz.ch:/R-CRAN/src/base/r-0_61_1.tgz +Source1: ftp.stat.math.ethz.ch:/R-CRAN/src/contrib/mlbench_0.2-2.tar.gz +Source2: ftp.stat.math.ethz.ch:/R-CRAN/src/contrib/acepack_1.0-2.tar.gz +Source3: ftp.stat.math.ethz.ch:/R-CRAN/src/contrib/bootstrap_1.0-3.tar.gz +Source4: ftp.stat.math.ethz.ch:/R-CRAN/src/contrib/class_VR5-4.tar.gz +Source5: ftp.stat.math.ethz.ch:/R-CRAN/src/contrib/clus_1.0-2.tar.gz +Source6: ftp.stat.math.ethz.ch:/R-CRAN/src/contrib/ctest_0.9-1.tar.gz +Source7: ftp.stat.math.ethz.ch:/R-CRAN/src/contrib/date_1.0-3.tar.gz +Source8: ftp.stat.math.ethz.ch:/R-CRAN/src/contrib/e1071_0.7-3.tar.gz +Source9: ftp.stat.math.ethz.ch:/R-CRAN/src/contrib/fracdiff_1.0-2.tar.gz +Source10: ftp.stat.math.ethz.ch:/R-CRAN/src/contrib/gee_3.13-2.tar.gz +Source11: ftp.stat.math.ethz.ch:/R-CRAN/src/contrib/integrate_1.0-3.tar.gz +Source12: ftp.stat.math.ethz.ch:/R-CRAN/src/contrib/jpn_1.0-1.tar.gz +Source13: ftp.stat.math.ethz.ch:/R-CRAN/src/contrib/leaps_1.0-3.tar.gz +Source14: ftp.stat.math.ethz.ch:/R-CRAN/src/contrib/nnet_VR5-3.tar.gz +Source15: ftp.stat.math.ethz.ch:/R-CRAN/src/contrib/oz_1.0-1.tar.gz +Source16: ftp.stat.math.ethz.ch:/R-CRAN/src/contrib/polynom_1.0-3.tar.gz +Source17: ftp.stat.math.ethz.ch:/R-CRAN/src/contrib/ratetables_1.0-2.tar.gz +Source18: ftp.stat.math.ethz.ch:/R-CRAN/src/contrib/rational_1.0-1.tar.gz +Source19: ftp.stat.math.ethz.ch:/R-CRAN/src/contrib/spatial_VR5-2.tar.gz +Source20: ftp.stat.math.ethz.ch:/R-CRAN/src/contrib/splines_2.0-1.tar.gz +Source21: ftp.stat.math.ethz.ch:/R-CRAN/src/contrib/survival4_1.0-3.tar.gz +Source22: ftp.stat.math.ethz.ch:/R-CRAN/src/contrib/xgobi_1.0-2.tar.gz +Source23: ftp.stat.math.ethz.ch:/R-CRAN/src/contrib/principal.curve_1.0-2.tar.gz +Source24: ftp.stat.math.ethz.ch:/R-CRAN/src/contrib/quadprog_1.0-2.tar.gz +Patch0: R-0.61.rpm.patch3 +Copyright: gpl +Group: Development/Languages +Packager: Martyn Plummer +URL: http://stat.auckland.ac.nz/r/r.html +Provides: R-base R-contrib +BuildRoot: /tmp/R + +%description +A system for statistical computation and graphics. R consists of a +language plus a run-time environment with graphics, a debugger, access +to certain system functions, and the ability to run programs stored in +script files. + +The design of R has been heavily influenced by two existing languages: +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. + +%package base +Summary: The R base distribution +Group: Development/Languages +Version: 0.61.1 +Conflicts: R-contrib < 1998.1.1 +Provides: R-acepack R-bootstrap R-class R-clus R-ctest R-date R-e1071 +Provides: R-fracdiff R-gee R-integrate R-jpn R-leaps R-mlbench R-nnet R-oz +Provides: R-polynom R-principal.curve R-quadprog R-ratetables R-rational +Provides: R-spatial R-splines R-survival4 R-xgobi + +%description base +R is a language and run-time environment for carrying out interactive +statistical data analysis. It is not entirely dissimilar to the S language +developed at AT&T Bell Laboratories (and now Lucent Technologies). Indeed, +S users will find the environment quite familiar and a good deal of S +software will run without change under R. + +%package contrib +Summary: contributed packages for the R language +Group: Development/Languages +Copyright: Mixed +URL: http://www.ci.tuwien.ac.at/R/ +Version: 1998.01.22 +Release: 3 +Requires: R-base >= 0.60 + +%description contrib +Packages which extend the capabilities of the R base distribution +and are distributed on the Comprehensive R Archive Network (CRAN). + +%package mlbench +Summary: Machine learning benchmarks +Group: Development/Languages +Copyright: GPL +URL: http://www.ics.uci.edu/~mlearn/MLRepository.html +Version: 0.2.2 +Release: 3 +Requires: R-base >= 0.60 + +%description mlbench +R package which contains a collection of real-world datasets and +functions for creating artificial datasets that work as benchmarks +for machine learning methods. + +%prep +%setup -c -n R-cran -T -b 2 +%setup -c -n R-cran -T -D -b 3 +%setup -c -n R-cran -T -D -b 4 +%setup -c -n R-cran -T -D -b 5 +%setup -c -n R-cran -T -D -b 6 +%setup -c -n R-cran -T -D -b 7 +%setup -c -n R-cran -T -D -b 8 +%setup -c -n R-cran -T -D -b 9 +%setup -c -n R-cran -T -D -b 10 +%setup -c -n R-cran -T -D -b 11 +%setup -c -n R-cran -T -D -b 12 +%setup -c -n R-cran -T -D -b 13 +%setup -c -n R-cran -T -D -b 14 +%setup -c -n R-cran -T -D -b 15 +%setup -c -n R-cran -T -D -b 16 +%setup -c -n R-cran -T -D -b 17 +%setup -c -n R-cran -T -D -b 18 +%setup -c -n R-cran -T -D -b 19 +%setup -c -n R-cran -T -D -b 20 +%setup -c -n R-cran -T -D -b 21 +%setup -c -n R-cran -T -D -b 22 +%setup -c -n R-cran -T -D -b 23 +%setup -c -n R-cran -T -D -b 24 +%setup +%setup -T -D -a 1 +%patch0 -p1 +# These files have the path for PERL hard-coded as /usr/local/bin/perl +# We need to remove them to avoid dependency problems +rm ./doc/keyword-test.orig ./etc/undoc/R-funs.orig ./etc/undoc/extrExamp.orig + +%build + +make +make help +make html +make clean +make acclean + +# Install contrib packages +# +RHOME=`pwd`;export RHOME +cd ../R-cran +for pkg in `ls` +do + ${RHOME}/etc/INSTALL -latex ${pkg} +done +cd ${RHOME} + +# Install mlbench +# +${RHOME}/etc/INSTALL mlbench + +#Remove old template files. +# +for oldinfile in `find . -name '*.in' -print` +do + rm ${oldinfile} +done + +# Gather documentation from contrib packages in one directory +# Assume that anything not in one of the standard directories is +# documentation, and copy it. +# +mkdir ${RHOME}/contrib +cd ${RPM_BUILD_DIR}/R-cran +for pkg in `ls`; do + if [ -d ${pkg} ]; then + mkdir ${RHOME}/${pkg} + for docfile in `ls ${pkg}`; do + case $docfile in + INDEX) ;; + TITLE) ;; + R) ;; + man) ;; + src) ;; + src-c) ;; + data) ;; + *) cp -R -P ${pkg}/${docfile} ${RHOME};; + esac + done + fi +done +cd ${RHOME} + + +%install +install -d ${RPM_BUILD_ROOT}/usr/man/man1 +install R.1 ${RPM_BUILD_ROOT}/usr/man/man1/ +install -d ${RPM_BUILD_ROOT}/usr/lib/R +cp -R afm bin cmd demos doc etc html include library ${RPM_BUILD_ROOT}/usr/lib/R +install -d ${RPM_BUILD_ROOT}/usr/bin +install -m 755 bin/R ${RPM_BUILD_ROOT}/usr/bin/R + +%files base +%attr(-,root,root) /usr/man/man1/R.1 +%attr(-,root,root) /usr/bin/R +%attr(-,root,root) %dir /usr/lib/R +%attr(-,root,root) /usr/lib/R/afm +%attr(-,root,root) /usr/lib/R/bin +%attr(-,root,root) /usr/lib/R/cmd +%attr(-,root,root) /usr/lib/R/demos +%attr(-,root,root) /usr/lib/R/etc +%attr(-,root,root) /usr/lib/R/html +%attr(-,root,root) /usr/lib/R/include +%attr(-,root,root) %dir /usr/lib/R/library +%attr(-,root,root) /usr/lib/R/library/base/ +%attr(-,root,root) /usr/lib/R/library/eda/ +%attr(-,root,root) /usr/lib/R/library/mva/ +%attr(-,root,root) /usr/lib/R/library/stepfun/ +%attr(-,root,root) %doc CHANGES COPYING COPYRIGHTS MIRROR-SITES PROJECTS README RESOURCES TASKS + +%files contrib +%attr(-,root,root) /usr/lib/R/library/acepack +%attr(-,root,root) %doc acepack +%attr(-,root,root) /usr/lib/R/library/bootstrap +%attr(-,root,root) %doc bootstrap +%attr(-,root,root) /usr/lib/R/library/class +%attr(-,root,root) %doc class +%attr(-,root,root) /usr/lib/R/library/clus +%attr(-,root,root) %doc clus +%attr(-,root,root) /usr/lib/R/library/ctest +%attr(-,root,root) %doc ctest +%attr(-,root,root) /usr/lib/R/library/date +%attr(-,root,root) %doc date +%attr(-,root,root) /usr/lib/R/library/e1071 +%attr(-,root,root) %doc e1071 +%attr(-,root,root) /usr/lib/R/library/fracdiff +%attr(-,root,root) %doc fracdiff +%attr(-,root,root) /usr/lib/R/library/gee +%attr(-,root,root) %doc gee +%attr(-,root,root) /usr/lib/R/library/integrate +%attr(-,root,root) %doc integrate +%attr(-,root,root) /usr/lib/R/library/jpn +%attr(-,root,root) %doc jpn +%attr(-,root,root) /usr/lib/R/library/leaps +%attr(-,root,root) %doc leaps +%attr(-,root,root) /usr/lib/R/library/nnet +%attr(-,root,root) %doc nnet +%attr(-,root,root) /usr/lib/R/library/oz +%attr(-,root,root) %doc oz +%attr(-,root,root) /usr/lib/R/library/polynom +%attr(-,root,root) %doc polynom +%attr(-,root,root) /usr/lib/R/library/ratetables +%attr(-,root,root) %doc ratetables +%attr(-,root,root) /usr/lib/R/library/rational +%attr(-,root,root) %doc rational +%attr(-,root,root) /usr/lib/R/library/spatial +%attr(-,root,root) %doc spatial +%attr(-,root,root) /usr/lib/R/library/splines +%attr(-,root,root) %doc splines +%attr(-,root,root) /usr/lib/R/library/survival4 +%attr(-,root,root) %doc survival4 +%attr(-,root,root) /usr/lib/R/library/xgobi +%attr(-,root,root) %doc xgobi +%attr(-,root,root) /usr/lib/R/library/principal.curve +%attr(-,root,root) %doc principal.curve +%attr(-,root,root) /usr/lib/R/library/quadprog +%attr(-,root,root) %doc quadprog + +%files mlbench +%attr(-,root,root) /usr/lib/R/library/mlbench +%attr(-,root,root) %doc mlbench/COPYRIGHT +%attr(-,root,root) %doc mlbench/ChangeLog +%attr(-,root,root) %doc mlbench/README + +%clean +# Tidy up after build. We have to be quite careful here in case some +# idiot (me) uses a build root of /. This leaves the directory structure +# in place but removes the files owned by R. +rm -f ${RPM_BUILD_ROOT}/usr/man/man1/R.1 +rm -f ${RPM_BUILD_ROOT}/usr/bin/R +rm -rf ${RPM_BUILD_ROOT}/usr/lib/R +rm -rf ${RPM_BUILD_ROOT}/usr/doc/R-* + +%post base +(cd /usr/lib/R/library; cat */TITLE > LibIndex; ../etc/build-htmlpkglist) + +%preun base +# These files are not owned by any package, so we have to remove them +# but only if this is the last version of R-base on the system. +# +if [ "$1" = 0 ]; +then + rm -f /usr/lib/R/library/LibIndex + rm -f /usr/lib/R/library/index.html +fi + +%post contrib +(cd /usr/lib/R/library; cat */TITLE > LibIndex; ../etc/build-htmlpkglist) + +%postun contrib +(cd /usr/lib/R/library; cat */TITLE > LibIndex; ../etc/build-htmlpkglist) + +%post mlbench +(cd /usr/lib/R/library; cat */TITLE > LibIndex; ../etc/build-htmlpkglist) + +%postun mlbench +(cd /usr/lib/R/library; cat */TITLE > LibIndex; ../etc/build-htmlpkglist) -- 2.44.0