Compare commits
58 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
ab1894c8ea | ||
|
fdac3c777b | ||
|
b5cfc3c934 | ||
|
e97432d0d4 | ||
|
ab74457027 | ||
|
83f7cb302f | ||
|
db0fad4fe6 | ||
|
f15138d44f | ||
|
39d01e9c32 | ||
|
cef253c5e2 | ||
|
553a1f3ff4 | ||
|
8bddcdade2 | ||
|
1974ae5079 | ||
|
d343ef0cba | ||
|
99c5f6472c | ||
|
31f2c0d9c9 | ||
|
15f26bd718 | ||
|
837e8ba4cd | ||
|
2aa6c4d3d4 | ||
|
00a7141adf | ||
|
188afcb0ca | ||
|
aa197bb01c | ||
|
43427a9f58 | ||
|
e1d2f08f8f | ||
|
ab4a5e0ce9 | ||
|
ee45bfb122 | ||
|
55dc217d7b | ||
|
fbdc1d03a0 | ||
|
5d638a86e4 | ||
|
4fe5e534d2 | ||
|
e2b0005a59 | ||
|
65bb50936f | ||
|
19ec3c888b | ||
|
bae33b8321 | ||
|
5397f440bc | ||
|
5c3e5461a5 | ||
|
900d8cad7d | ||
|
992efe1d1d | ||
|
32a153128f | ||
|
d8e31cf621 | ||
|
60b4fd893d | ||
|
3ebc3832cd | ||
|
3be922ad6a | ||
|
91e6f4f4c7 | ||
|
b448c27b51 | ||
|
ad63dddee1 | ||
|
df57788c37 | ||
|
b0e1fba1b6 | ||
|
17712cb7c0 | ||
|
eafbcd7838 | ||
|
828d18a458 | ||
|
0e2d7567cb | ||
|
0395ba7c76 | ||
|
804dc02865 | ||
|
6479573a06 | ||
|
e3c0072f2f | ||
|
33291cb78f | ||
|
6b8622f152 |
@ -1 +0,0 @@
|
||||
R-2.0.1.tar.gz
|
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
R-2.0.1.tar.gz
|
||||
R-2.1.0.tar.gz
|
||||
R-2.1.1.tar.gz
|
21
Makefile
21
Makefile
@ -1,21 +0,0 @@
|
||||
# Makefile for source rpm: R
|
||||
# $Id$
|
||||
NAME := R
|
||||
SPECFILE = $(firstword $(wildcard *.spec))
|
||||
|
||||
define find-makefile-common
|
||||
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
||||
|
||||
ifeq ($(MAKEFILE_COMMON),)
|
||||
# attept a checkout
|
||||
define checkout-makefile-common
|
||||
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
|
||||
endif
|
||||
|
||||
include $(MAKEFILE_COMMON)
|
@ -51,3 +51,14 @@
|
||||
#define ERROR ),error(R_problem_buf);}
|
||||
#define RECOVER(x) ),error(R_problem_buf);}
|
||||
#define WARNING(x) ),warning(R_problem_buf);}
|
||||
--- R-2.1.0/src/main/scan.c.BAD 2005-04-18 09:00:40.000000000 -0500
|
||||
+++ R-2.1.0/src/main/scan.c 2005-04-18 09:00:56.000000000 -0500
|
||||
@@ -1638,7 +1638,7 @@
|
||||
{
|
||||
va_list(ap);
|
||||
va_start(ap, format);
|
||||
- con->vfprintf(con, format, ap);
|
||||
+ (con->vfprintf)(con, format, ap);
|
||||
va_end(ap);
|
||||
}
|
||||
|
27
R-2.7.1-javareconf-tmpfix.patch
Normal file
27
R-2.7.1-javareconf-tmpfix.patch
Normal file
@ -0,0 +1,27 @@
|
||||
diff -up R-2.7.1/src/scripts/javareconf.BAD R-2.7.1/src/scripts/javareconf
|
||||
--- R-2.7.1/src/scripts/javareconf.BAD 2008-08-29 11:04:21.000000000 -0400
|
||||
+++ R-2.7.1/src/scripts/javareconf 2008-08-29 11:05:34.000000000 -0400
|
||||
@@ -125,16 +125,17 @@ fi
|
||||
javac_works='not present'
|
||||
if test -n "$JAVAC"; then
|
||||
javac_works='not functional'
|
||||
- rm -rf /tmp/A.java /tmp/A.class
|
||||
- echo "public class A { }" > /tmp/A.java
|
||||
- if test -e /tmp/A.java; then
|
||||
- if "${JAVAC}" /tmp/A.java >/dev/null; then
|
||||
- if test -e /tmp/A.class; then
|
||||
+ tempdir=`mktemp -d`
|
||||
+ echo "public class A { }" > ${tempdir}/A.java
|
||||
+ if test -e ${tempdir}/A.java; then
|
||||
+ if "${JAVAC}" ${tempdir}/A.java >/dev/null; then
|
||||
+ if test -e ${tempdir}/A.class; then
|
||||
javac_works=yes
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
- rm -rf /tmp/A.java /tmp/A.class
|
||||
+ rm -rf ${tempdir}
|
||||
+
|
||||
fi
|
||||
if test "${javac_works}" = yes; then
|
||||
echo "Java compiler : ${JAVAC}"
|
11
R-2.7.2-filter_asoption.patch
Normal file
11
R-2.7.2-filter_asoption.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- 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"
|
26
R-2.8.0-HAVE_BZLIB_H.patch
Normal file
26
R-2.8.0-HAVE_BZLIB_H.patch
Normal file
@ -0,0 +1,26 @@
|
||||
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}"
|
34
R-make-search-index.sh
Executable file
34
R-make-search-index.sh
Executable file
@ -0,0 +1,34 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Determine R versions
|
||||
R_SUPER_VERSION=`R --version | grep "R version" | cut -d " " -f 3 | cut -d "." -f 1`
|
||||
R_MAJOR_VERSION=`R --version | grep "R version" | cut -d " " -f 3 | cut -d "." -f 2`
|
||||
|
||||
# If R 3.0.* ever comes out, we'll need to revisit this logic.
|
||||
# Or, just nuke this script and the macros entirely.
|
||||
if [ "$R_SUPER_VERSION" -ge "2" -a "$R_MAJOR_VERSION" -ge "10" ]; then
|
||||
# echo "R is new enough to not need this anymore."
|
||||
exit 0
|
||||
else
|
||||
|
||||
# Figure out what RHOME is set to
|
||||
TMP_R_HOME=`R RHOME`
|
||||
|
||||
# Figure out what R_DOC_DIR is set to
|
||||
# Ideally, we could ask R just like we do for RHOME, but we can't yet.
|
||||
TMP_R_DOC_DIR=`grep "R_DOC_DIR=" /usr/bin/R | cut -d "=" -f 2`
|
||||
|
||||
# Write out all the contents in arch library locations
|
||||
cat $TMP_R_HOME/library/*/CONTENTS > $TMP_R_DOC_DIR/html/search/index.txt 2>/dev/null
|
||||
# Don't use .. based paths, substitute TMP_R_HOME
|
||||
sed -i "s!../../..!$TMP_R_HOME!g" $TMP_R_DOC_DIR/html/search/index.txt
|
||||
|
||||
# Write out all the contents in noarch library locations
|
||||
cat /usr/share/R/library/*/CONTENTS >> $TMP_R_DOC_DIR/html/search/index.txt 2>/dev/null
|
||||
# Don't use .. based paths, substitute /usr/share/R
|
||||
sed -i "s!../../..!/usr/share/R!g" $TMP_R_DOC_DIR/html/search/index.txt
|
||||
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
9
macros.R
Normal file
9
macros.R
Normal file
@ -0,0 +1,9 @@
|
||||
#
|
||||
# RPM macros for R packaging
|
||||
#
|
||||
|
||||
#
|
||||
# Make R search index.txt
|
||||
#
|
||||
%_R_make_search_index /usr/lib/rpm/R-make-search-index.sh
|
||||
|
Loading…
Reference in New Issue
Block a user