rpms/R/F-9 R-2.7.2-filter_asoption.patch, NONE, 1.1 R-2.8.0-HAVE_BZLIB_H.patch, NONE, 1.1 R.spec, 1.47, 1.48 sources, 1.19, 1.20

Tom Callaway spot at fedoraproject.org
Sun Oct 26 20:11:56 UTC 2008


Author: spot

Update of /cvs/pkgs/rpms/R/F-9
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv2337/F-9

Modified Files:
	R.spec sources 
Added Files:
	R-2.7.2-filter_asoption.patch R-2.8.0-HAVE_BZLIB_H.patch 
Log Message:
push 2.8.0 to all branches

R-2.7.2-filter_asoption.patch:

--- NEW FILE R-2.7.2-filter_asoption.patch ---
--- R-2.7.2/configure.org	2008-09-25 15:00:20.000000000 +0900
+++ R-2.7.2/configure	2008-09-25 15:00:35.000000000 +0900
@@ -26995,7 +26995,7 @@
 
           ;;
           # Ignore these flags.
-        -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -LANG:=* | -LIST:* | -LNO:*)
+        -little | -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -LANG:=* | -LIST:* | -LNO:*)
           ;;
         -lkernel32)
           test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"

R-2.8.0-HAVE_BZLIB_H.patch:

--- NEW FILE R-2.8.0-HAVE_BZLIB_H.patch ---
diff -up R-2.8.0/configure.BAD R-2.8.0/configure
--- R-2.8.0/configure.BAD	2008-10-26 11:51:56.000000000 -0400
+++ R-2.8.0/configure	2008-10-26 11:52:31.000000000 -0400
@@ -44779,6 +44779,11 @@ else
   have_bzlib=no
 fi
 if test "x${have_bzlib}" = xyes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_BZLIB_H 1
+_ACEOF
+
 { echo "$as_me:$LINENO: checking if bzip2 version >= 1.0.5" >&5
 echo $ECHO_N "checking if bzip2 version >= 1.0.5... $ECHO_C" >&6; }
 if test "${r_cv_have_bzlib+set}" = set; then
diff -up R-2.8.0/m4/R.m4.BAD R-2.8.0/m4/R.m4
--- R-2.8.0/m4/R.m4.BAD	2008-09-21 18:05:06.000000000 -0400
+++ R-2.8.0/m4/R.m4	2008-10-26 11:53:05.000000000 -0400
@@ -3055,6 +3055,7 @@ else
   have_bzlib=no
 fi
 if test "x${have_bzlib}" = xyes; then
+AC_DEFINE(HAVE_BZLIB_H, 1, [Define to 1 if you have bzlib.h.])
 AC_CACHE_CHECK([if bzip2 version >= 1.0.5], [r_cv_have_bzlib],
 [AC_LANG_PUSH(C)
 r_save_LIBS="${LIBS}"


Index: R.spec
===================================================================
RCS file: /cvs/pkgs/rpms/R/F-9/R.spec,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -r1.47 -r1.48
--- R.spec	29 Aug 2008 15:53:53 -0000	1.47
+++ R.spec	26 Oct 2008 20:11:25 -0000	1.48
@@ -1,14 +1,14 @@
 Name: R
-Version: 2.7.2
+Version: 2.8.0
 Release: 1%{?dist}
 Summary: A language for data analysis and graphics
 URL: http://www.r-project.org
 Source0: ftp://cran.r-project.org/pub/R/src/base/R-2/R-%{version}.tar.gz
 Source1: macros.R
 Source2: R-make-search-index.sh
-# Sent upstream:
-# http://bugs.r-project.org/cgi-bin/R/incoming?id=12636
-Patch0: R-2.7.1-javareconf-tmpfix.patch
+Patch1: R-2.7.2-filter_asoption.patch
+# fix bzlib2 detection, sent upstream 10-26-2008
+Patch2: R-2.8.0-HAVE_BZLIB_H.patch
 License: GPLv2+
 Group: Applications/Engineering
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -21,11 +21,36 @@
 BuildRequires: libSM-devel, libX11-devel, libICE-devel, libXt-devel
 BuildRequires: bzip2-devel, libXmu-devel, cairo-devel
 BuildRequires: gcc-objc
+# R-devel will pull in R-core
+Requires: R-devel = %{version}-%{release}
+# libRmath-devel will pull in libRmath
+Requires: libRmath-devel = %{version}-%{release}
+
+%description
+This is a metapackage that provides both core R userspace and 
+all R development components.
+
+R is 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.
+
+%package core
+Summary: The minimal R components necessary for a functional runtime
+Group: Applications/Engineering
 Requires: xdg-utils, cups
 
-# These are the submodules that R provides. Sometimes R modules say they
-# depend on one of these submodules rather than just R. These are 
-# provided for packager convenience. 
+# These are the submodules that R-core provides. Sometimes R modules say they
+# depend on one of these submodules rather than just R. These are provided for 
+# packager convenience.
 Provides: R-base = %{version}
 Provides: R-boot = 1.2
 Provides: R-class = 7.2
@@ -54,10 +79,10 @@
 Provides: R-utils = %{version}
 Provides: R-VR = 7.2
 
-%description
-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 
+%description core
+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, ...).
@@ -71,7 +96,7 @@
 %package devel
 Summary: files for development of R packages.
 Group: Applications/Engineering
-Requires: R = %{version}-%{release}
+Requires: R-core = %{version}-%{release}
 # You need all the BuildRequires for the development version
 Requires: gcc-c++, gcc-gfortran, tetex-latex, texinfo 
 Requires: libpng-devel, libjpeg-devel, readline-devel, ncurses-devel
@@ -102,7 +127,8 @@
 
 %prep
 %setup -q
-%patch0 -p1 -b .javareconf-tmpfix
+%patch1 -p1 -b .filter-little-out
+%patch2 -p1 -b .BZLIB_H
 
 # Filter false positive provides.
 cat <<EOF > %{name}-prov
@@ -137,7 +163,7 @@
           export F77="gfortran -m64"
           export FC="gfortran -m64"
       ;;
-      ia64|alpha)
+      ia64|alpha|sh*)
           export CC="gcc"
           export CXX="g++"
           export F77="gfortran"
@@ -204,7 +230,10 @@
 done
 
 %files
-%defattr(-, root, root)
+# Metapackage
+
+%files core
+%defattr(-, root, root, -)
 %{_bindir}/R
 %{_bindir}/Rscript
 %{_datadir}/R
@@ -226,16 +255,16 @@
 /etc/ld.so.conf.d/*
 
 %files devel
-%defattr(-, root, root)
+%defattr(-, root, root, -)
 %{_libdir}/pkgconfig/libR.pc
 %{_includedir}/R
 
 %files -n libRmath
-%defattr(-, root, root)
+%defattr(-, root, root, -)
 %{_libdir}/libRmath.so
 
 %files -n libRmath-devel
-%defattr(-, root, root)
+%defattr(-, root, root, -)
 %{_libdir}/libRmath.a
 %{_includedir}/Rmath.h
 %{_libdir}/pkgconfig/libRmath.pc
@@ -243,7 +272,7 @@
 %clean
 rm -rf ${RPM_BUILD_ROOT};
 
-%post 
+%post core
 # Create directory entries for info files
 # (optional doc files, so we must check that they are installed)
 for doc in admin exts FAQ intro lang; do
@@ -266,7 +295,7 @@
 sed -i "s!../../..!/usr/share/R!g" %{_docdir}/R-%{version}/html/search/index.txt
 
 
-%preun 
+%preun core
 if [ $1 = 0 ]; then
    # Delete directory entries for info files (if they were installed)
    for doc in admin exts FAQ intro lang; do
@@ -277,7 +306,7 @@
    done
 fi
 
-%postun
+%postun core
 /sbin/ldconfig
 
 %post -n libRmath
@@ -287,6 +316,15 @@
 /sbin/ldconfig
 
 %changelog
+* Sun Oct 26 2008 Tom "spot" Callaway <tcallawa at redhat.com> 2.8.0-1
+- Update to 2.8.0
+- New subpackage layout: R-core is functional userspace, R is metapackage 
+  requiring everything
+- Fix system bzip2 detection
+
+* Thu Oct 16 2008 Tom "spot" Callaway <tcallawa at redhat.com> 2.7.2-2
+- fix sh compile (bz 464055)
+
 * Fri Aug 29 2008 Tom "spot" Callaway <tcallawa at redhat.com> 2.7.2-1
 - update to 2.7.2
 - fix spec for alpha compile (bz 458931)


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/R/F-9/sources,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- sources	29 Aug 2008 15:53:53 -0000	1.19
+++ sources	26 Oct 2008 20:11:25 -0000	1.20
@@ -1 +1 @@
-6122945e9301825b97a506151b3cefde  R-2.7.2.tar.gz
+5213c9644aec984278b669df1a63a2ce  R-2.8.0.tar.gz




More information about the scm-commits mailing list