Accepting request 46504 from devel:languages:python:Factory
Copy from devel:languages:python:Factory/python based on submit request 46504 from user matejcik OBS-URL: https://build.opensuse.org/request/show/46504 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python?expand=0&rev=52
This commit is contained in:
parent
2b70f7ad6c
commit
12b0f39c97
@ -1,23 +0,0 @@
|
|||||||
# force use of directories passed to configure script
|
|
||||||
|
|
||||||
Index: Makefile.pre.in
|
|
||||||
===================================================================
|
|
||||||
--- Makefile.pre.in.orig
|
|
||||||
+++ Makefile.pre.in
|
|
||||||
@@ -86,12 +86,12 @@ exec_prefix= @exec_prefix@
|
|
||||||
datarootdir= @datarootdir@
|
|
||||||
|
|
||||||
# Expanded directories
|
|
||||||
-BINDIR= $(exec_prefix)/bin
|
|
||||||
-LIBDIR= $(exec_prefix)/lib
|
|
||||||
+BINDIR= @bindir@
|
|
||||||
+LIBDIR= @libdir@
|
|
||||||
MANDIR= @mandir@
|
|
||||||
INCLUDEDIR= @includedir@
|
|
||||||
-CONFINCLUDEDIR= $(exec_prefix)/include
|
|
||||||
-SCRIPTDIR= $(prefix)/lib
|
|
||||||
+CONFINCLUDEDIR= @includedir@
|
|
||||||
+SCRIPTDIR= @libdir@
|
|
||||||
|
|
||||||
# Detailed destination directories
|
|
||||||
BINLIBDEST= $(LIBDIR)/python$(VERSION)
|
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:62da62eb685621ede2be1275f11b89fa0e0be578db8daa5320d0a7855c0a9ebc
|
|
||||||
size 11095581
|
|
3
Python-2.7.tar.bz2
Normal file
3
Python-2.7.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:935d3316edfec5eb98c2f6930756b47b00dc27192541e62d6fd0077ffa008af8
|
||||||
|
size 11735195
|
@ -1,7 +1,7 @@
|
|||||||
Index: Python-2.6.2/Include/pythonrun.h
|
Index: Python-2.7/Include/pythonrun.h
|
||||||
===================================================================
|
===================================================================
|
||||||
--- Python-2.6.2.orig/Include/pythonrun.h
|
--- Python-2.7.orig/Include/pythonrun.h
|
||||||
+++ Python-2.6.2/Include/pythonrun.h
|
+++ Python-2.7/Include/pythonrun.h
|
||||||
@@ -108,6 +108,8 @@ PyAPI_FUNC(char *) Py_GetPath(void);
|
@@ -108,6 +108,8 @@ PyAPI_FUNC(char *) Py_GetPath(void);
|
||||||
/* In their own files */
|
/* In their own files */
|
||||||
PyAPI_FUNC(const char *) Py_GetVersion(void);
|
PyAPI_FUNC(const char *) Py_GetVersion(void);
|
||||||
@ -11,10 +11,10 @@ Index: Python-2.6.2/Include/pythonrun.h
|
|||||||
PyAPI_FUNC(const char *) Py_GetCopyright(void);
|
PyAPI_FUNC(const char *) Py_GetCopyright(void);
|
||||||
PyAPI_FUNC(const char *) Py_GetCompiler(void);
|
PyAPI_FUNC(const char *) Py_GetCompiler(void);
|
||||||
PyAPI_FUNC(const char *) Py_GetBuildInfo(void);
|
PyAPI_FUNC(const char *) Py_GetBuildInfo(void);
|
||||||
Index: Python-2.6.2/Lib/distutils/command/install.py
|
Index: Python-2.7/Lib/distutils/command/install.py
|
||||||
===================================================================
|
===================================================================
|
||||||
--- Python-2.6.2.orig/Lib/distutils/command/install.py
|
--- Python-2.7.orig/Lib/distutils/command/install.py
|
||||||
+++ Python-2.6.2/Lib/distutils/command/install.py
|
+++ Python-2.7/Lib/distutils/command/install.py
|
||||||
@@ -22,6 +22,8 @@ from site import USER_BASE
|
@@ -22,6 +22,8 @@ from site import USER_BASE
|
||||||
from site import USER_SITE
|
from site import USER_SITE
|
||||||
|
|
||||||
@ -33,11 +33,11 @@ Index: Python-2.6.2/Lib/distutils/command/install.py
|
|||||||
'headers': '$base/include/python$py_version_short/$dist_name',
|
'headers': '$base/include/python$py_version_short/$dist_name',
|
||||||
'scripts': '$base/bin',
|
'scripts': '$base/bin',
|
||||||
'data' : '$base',
|
'data' : '$base',
|
||||||
Index: Python-2.6.2/Lib/distutils/sysconfig.py
|
Index: Python-2.7/Lib/distutils/sysconfig.py
|
||||||
===================================================================
|
===================================================================
|
||||||
--- Python-2.6.2.orig/Lib/distutils/sysconfig.py
|
--- Python-2.7.orig/Lib/distutils/sysconfig.py
|
||||||
+++ Python-2.6.2/Lib/distutils/sysconfig.py
|
+++ Python-2.7/Lib/distutils/sysconfig.py
|
||||||
@@ -115,8 +115,11 @@ def get_python_lib(plat_specific=0, stan
|
@@ -114,8 +114,11 @@ def get_python_lib(plat_specific=0, stan
|
||||||
prefix = plat_specific and EXEC_PREFIX or PREFIX
|
prefix = plat_specific and EXEC_PREFIX or PREFIX
|
||||||
|
|
||||||
if os.name == "posix":
|
if os.name == "posix":
|
||||||
@ -51,11 +51,11 @@ Index: Python-2.6.2/Lib/distutils/sysconfig.py
|
|||||||
if standard_lib:
|
if standard_lib:
|
||||||
return libpython
|
return libpython
|
||||||
else:
|
else:
|
||||||
Index: Python-2.6.2/Lib/pydoc.py
|
Index: Python-2.7/Lib/pydoc.py
|
||||||
===================================================================
|
===================================================================
|
||||||
--- Python-2.6.2.orig/Lib/pydoc.py
|
--- Python-2.7.orig/Lib/pydoc.py
|
||||||
+++ Python-2.6.2/Lib/pydoc.py
|
+++ Python-2.7/Lib/pydoc.py
|
||||||
@@ -350,7 +350,7 @@ class Doc:
|
@@ -349,7 +349,7 @@ class Doc:
|
||||||
|
|
||||||
docloc = os.environ.get("PYTHONDOCS",
|
docloc = os.environ.get("PYTHONDOCS",
|
||||||
"http://docs.python.org/library")
|
"http://docs.python.org/library")
|
||||||
@ -64,40 +64,39 @@ Index: Python-2.6.2/Lib/pydoc.py
|
|||||||
"python"+sys.version[0:3])
|
"python"+sys.version[0:3])
|
||||||
if (isinstance(object, type(os)) and
|
if (isinstance(object, type(os)) and
|
||||||
(object.__name__ in ('errno', 'exceptions', 'gc', 'imp',
|
(object.__name__ in ('errno', 'exceptions', 'gc', 'imp',
|
||||||
Index: Python-2.6.2/Lib/site.py
|
Index: Python-2.7/Lib/site.py
|
||||||
===================================================================
|
===================================================================
|
||||||
--- Python-2.6.2.orig/Lib/site.py
|
--- Python-2.7.orig/Lib/site.py
|
||||||
+++ Python-2.6.2/Lib/site.py
|
+++ Python-2.7/Lib/site.py
|
||||||
@@ -265,13 +265,19 @@ def addsitepackages(known_paths):
|
@@ -286,13 +286,18 @@ def getsitepackages():
|
||||||
if sys.platform in ('os2emx', 'riscos'):
|
if sys.platform in ('os2emx', 'riscos'):
|
||||||
sitedirs.append(os.path.join(prefix, "Lib", "site-packages"))
|
sitepackages.append(os.path.join(prefix, "Lib", "site-packages"))
|
||||||
elif os.sep == '/':
|
elif os.sep == '/':
|
||||||
- sitedirs.append(os.path.join(prefix, "lib",
|
- sitepackages.append(os.path.join(prefix, "lib",
|
||||||
+ sitedirs.append(os.path.join(prefix, sys.lib,
|
+ sitepackages.append(os.path.join(prefix, sys.lib,
|
||||||
"python" + sys.version[:3],
|
"python" + sys.version[:3],
|
||||||
"site-packages"))
|
"site-packages"))
|
||||||
- sitedirs.append(os.path.join(prefix, "lib", "site-python"))
|
- sitepackages.append(os.path.join(prefix, "lib", "site-python"))
|
||||||
|
+ sitepackages.append(os.path.join(prefix, sys.lib, "site-python"))
|
||||||
+ if sys.lib != "lib":
|
+ if sys.lib != "lib":
|
||||||
+ sitedirs.append(os.path.join(prefix, "lib",
|
+ sitepackages.append(os.path.join(prefix, "lib",
|
||||||
+ "python" + sys.version[:3],
|
+ "python" + sys.version[:3],
|
||||||
+ "site-packages"))
|
+ "site-packages"))
|
||||||
+ sitedirs.append(os.path.join(prefix, sys.lib, "site-python"))
|
+ sitepackages.append(os.path.join(prefix, "lib", "site-python"))
|
||||||
+ if sys.lib != "lib":
|
|
||||||
+ sitedirs.append(os.path.join(prefix, "lib", "site-python"))
|
|
||||||
else:
|
else:
|
||||||
sitedirs.append(prefix)
|
sitepackages.append(prefix)
|
||||||
- sitedirs.append(os.path.join(prefix, "lib", "site-packages"))
|
- sitepackages.append(os.path.join(prefix, "lib", "site-packages"))
|
||||||
+ sitedirs.append(os.path.join(prefix, sys.lib, "site-packages"))
|
+ sitepackages.append(os.path.join(prefix, sys.lib, "site-packages"))
|
||||||
|
|
||||||
if sys.platform == "darwin":
|
if sys.platform == "darwin":
|
||||||
# for framework builds *only* we add the standard Apple
|
# for framework builds *only* we add the standard Apple
|
||||||
Index: Python-2.6.2/Lib/test/test_dl.py
|
# locations.
|
||||||
|
Index: Python-2.7/Lib/test/test_dl.py
|
||||||
===================================================================
|
===================================================================
|
||||||
--- Python-2.6.2.orig/Lib/test/test_dl.py
|
--- Python-2.7.orig/Lib/test/test_dl.py
|
||||||
+++ Python-2.6.2/Lib/test/test_dl.py
|
+++ Python-2.7/Lib/test/test_dl.py
|
||||||
@@ -4,10 +4,11 @@
|
@@ -5,10 +5,11 @@
|
||||||
"""
|
import unittest
|
||||||
from test.test_support import verbose,TestSkipped, import_module
|
from test.test_support import verbose, import_module
|
||||||
dl = import_module('dl', deprecated=True)
|
dl = import_module('dl', deprecated=True)
|
||||||
+import sys
|
+import sys
|
||||||
|
|
||||||
@ -109,10 +108,10 @@ Index: Python-2.6.2/Lib/test/test_dl.py
|
|||||||
('/usr/bin/cygwin1.dll', 'getpid'),
|
('/usr/bin/cygwin1.dll', 'getpid'),
|
||||||
('/usr/lib/libc.dylib', 'getpid'),
|
('/usr/lib/libc.dylib', 'getpid'),
|
||||||
]
|
]
|
||||||
Index: Python-2.6.2/Lib/trace.py
|
Index: Python-2.7/Lib/trace.py
|
||||||
===================================================================
|
===================================================================
|
||||||
--- Python-2.6.2.orig/Lib/trace.py
|
--- Python-2.7.orig/Lib/trace.py
|
||||||
+++ Python-2.6.2/Lib/trace.py
|
+++ Python-2.7/Lib/trace.py
|
||||||
@@ -757,10 +757,10 @@ def main(argv=None):
|
@@ -757,10 +757,10 @@ def main(argv=None):
|
||||||
# should I also call expanduser? (after all, could use $HOME)
|
# should I also call expanduser? (after all, could use $HOME)
|
||||||
|
|
||||||
@ -126,11 +125,11 @@ Index: Python-2.6.2/Lib/trace.py
|
|||||||
"python" + sys.version[:3]))
|
"python" + sys.version[:3]))
|
||||||
s = os.path.normpath(s)
|
s = os.path.normpath(s)
|
||||||
ignore_dirs.append(s)
|
ignore_dirs.append(s)
|
||||||
Index: Python-2.6.2/Makefile.pre.in
|
Index: Python-2.7/Makefile.pre.in
|
||||||
===================================================================
|
===================================================================
|
||||||
--- Python-2.6.2.orig/Makefile.pre.in
|
--- Python-2.7.orig/Makefile.pre.in
|
||||||
+++ Python-2.6.2/Makefile.pre.in
|
+++ Python-2.7/Makefile.pre.in
|
||||||
@@ -75,6 +75,8 @@ PY_CFLAGS= $(CFLAGS) $(CPPFLAGS) $(CFLAG
|
@@ -78,6 +78,8 @@ PY_CFLAGS= $(CFLAGS) $(CPPFLAGS) $(CFLAG
|
||||||
|
|
||||||
# Machine-dependent subdirectories
|
# Machine-dependent subdirectories
|
||||||
MACHDEP= @MACHDEP@
|
MACHDEP= @MACHDEP@
|
||||||
@ -139,7 +138,7 @@ Index: Python-2.6.2/Makefile.pre.in
|
|||||||
|
|
||||||
# Install prefix for architecture-independent files
|
# Install prefix for architecture-independent files
|
||||||
prefix= @prefix@
|
prefix= @prefix@
|
||||||
@@ -509,6 +511,7 @@ Modules/getpath.o: $(srcdir)/Modules/get
|
@@ -530,6 +532,7 @@ Modules/getpath.o: $(srcdir)/Modules/get
|
||||||
-DEXEC_PREFIX='"$(exec_prefix)"' \
|
-DEXEC_PREFIX='"$(exec_prefix)"' \
|
||||||
-DVERSION='"$(VERSION)"' \
|
-DVERSION='"$(VERSION)"' \
|
||||||
-DVPATH='"$(VPATH)"' \
|
-DVPATH='"$(VPATH)"' \
|
||||||
@ -147,8 +146,8 @@ Index: Python-2.6.2/Makefile.pre.in
|
|||||||
-o $@ $(srcdir)/Modules/getpath.c
|
-o $@ $(srcdir)/Modules/getpath.c
|
||||||
|
|
||||||
Modules/python.o: $(srcdir)/Modules/python.c
|
Modules/python.o: $(srcdir)/Modules/python.c
|
||||||
@@ -540,7 +543,7 @@ $(AST_C): $(AST_ASDL) $(ASDLGEN_FILES)
|
@@ -561,7 +564,7 @@ $(AST_C): $(AST_ASDL) $(ASDLGEN_FILES)
|
||||||
Python/compile.o Python/symtable.o: $(GRAMMAR_H) $(AST_H)
|
Python/compile.o Python/symtable.o Python/ast.o: $(GRAMMAR_H) $(AST_H)
|
||||||
|
|
||||||
Python/getplatform.o: $(srcdir)/Python/getplatform.c
|
Python/getplatform.o: $(srcdir)/Python/getplatform.c
|
||||||
- $(CC) -c $(PY_CFLAGS) -DPLATFORM='"$(MACHDEP)"' -o $@ $(srcdir)/Python/getplatform.c
|
- $(CC) -c $(PY_CFLAGS) -DPLATFORM='"$(MACHDEP)"' -o $@ $(srcdir)/Python/getplatform.c
|
||||||
@ -156,10 +155,10 @@ Index: Python-2.6.2/Makefile.pre.in
|
|||||||
|
|
||||||
Python/importdl.o: $(srcdir)/Python/importdl.c
|
Python/importdl.o: $(srcdir)/Python/importdl.c
|
||||||
$(CC) -c $(PY_CFLAGS) -I$(DLINCLDIR) -o $@ $(srcdir)/Python/importdl.c
|
$(CC) -c $(PY_CFLAGS) -I$(DLINCLDIR) -o $@ $(srcdir)/Python/importdl.c
|
||||||
Index: Python-2.6.2/Modules/getpath.c
|
Index: Python-2.7/Modules/getpath.c
|
||||||
===================================================================
|
===================================================================
|
||||||
--- Python-2.6.2.orig/Modules/getpath.c
|
--- Python-2.7.orig/Modules/getpath.c
|
||||||
+++ Python-2.6.2/Modules/getpath.c
|
+++ Python-2.7/Modules/getpath.c
|
||||||
@@ -116,9 +116,11 @@
|
@@ -116,9 +116,11 @@
|
||||||
#define EXEC_PREFIX PREFIX
|
#define EXEC_PREFIX PREFIX
|
||||||
#endif
|
#endif
|
||||||
@ -183,10 +182,10 @@ Index: Python-2.6.2/Modules/getpath.c
|
|||||||
|
|
||||||
static void
|
static void
|
||||||
reduce(char *dir)
|
reduce(char *dir)
|
||||||
Index: Python-2.6.2/Python/getplatform.c
|
Index: Python-2.7/Python/getplatform.c
|
||||||
===================================================================
|
===================================================================
|
||||||
--- Python-2.6.2.orig/Python/getplatform.c
|
--- Python-2.7.orig/Python/getplatform.c
|
||||||
+++ Python-2.6.2/Python/getplatform.c
|
+++ Python-2.7/Python/getplatform.c
|
||||||
@@ -10,3 +10,23 @@ Py_GetPlatform(void)
|
@@ -10,3 +10,23 @@ Py_GetPlatform(void)
|
||||||
{
|
{
|
||||||
return PLATFORM;
|
return PLATFORM;
|
||||||
@ -211,26 +210,26 @@ Index: Python-2.6.2/Python/getplatform.c
|
|||||||
+{
|
+{
|
||||||
+ return LIB;
|
+ return LIB;
|
||||||
+}
|
+}
|
||||||
Index: Python-2.6.2/Python/sysmodule.c
|
Index: Python-2.7/Python/sysmodule.c
|
||||||
===================================================================
|
===================================================================
|
||||||
--- Python-2.6.2.orig/Python/sysmodule.c
|
--- Python-2.7.orig/Python/sysmodule.c
|
||||||
+++ Python-2.6.2/Python/sysmodule.c
|
+++ Python-2.7/Python/sysmodule.c
|
||||||
@@ -1379,6 +1379,10 @@ _PySys_Init(void)
|
@@ -1470,6 +1470,10 @@ _PySys_Init(void)
|
||||||
PyString_FromString(Py_GetCopyright()));
|
PyString_FromString(Py_GetCopyright()));
|
||||||
SET_SYS_FROM_STRING("platform",
|
SET_SYS_FROM_STRING("platform",
|
||||||
PyString_FromString(Py_GetPlatform()));
|
PyString_FromString(Py_GetPlatform()));
|
||||||
+ SET_SYS_FROM_STRING("arch",
|
+ SET_SYS_FROM_STRING("arch",
|
||||||
+ PyString_FromString(Py_GetArch()));
|
+ PyString_FromString(Py_GetArch()));
|
||||||
+ SET_SYS_FROM_STRING("lib",
|
+ SET_SYS_FROM_STRING("lib",
|
||||||
+ PyString_FromString(Py_GetLib()));
|
+ PyString_FromString(Py_GetLib()));
|
||||||
SET_SYS_FROM_STRING("executable",
|
SET_SYS_FROM_STRING("executable",
|
||||||
PyString_FromString(Py_GetProgramFullPath()));
|
PyString_FromString(Py_GetProgramFullPath()));
|
||||||
SET_SYS_FROM_STRING("prefix",
|
SET_SYS_FROM_STRING("prefix",
|
||||||
Index: Python-2.6.2/configure.in
|
Index: Python-2.7/configure.in
|
||||||
===================================================================
|
===================================================================
|
||||||
--- Python-2.6.2.orig/configure.in
|
--- Python-2.7.orig/configure.in
|
||||||
+++ Python-2.6.2/configure.in
|
+++ Python-2.7/configure.in
|
||||||
@@ -574,6 +574,41 @@ SunOS*)
|
@@ -636,6 +636,41 @@ SunOS*)
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
@ -272,11 +271,11 @@ Index: Python-2.6.2/configure.in
|
|||||||
|
|
||||||
AC_SUBST(LIBRARY)
|
AC_SUBST(LIBRARY)
|
||||||
AC_MSG_CHECKING(LIBRARY)
|
AC_MSG_CHECKING(LIBRARY)
|
||||||
Index: Python-2.6.2/setup.py
|
Index: Python-2.7/setup.py
|
||||||
===================================================================
|
===================================================================
|
||||||
--- Python-2.6.2.orig/setup.py
|
--- Python-2.7.orig/setup.py
|
||||||
+++ Python-2.6.2/setup.py
|
+++ Python-2.7/setup.py
|
||||||
@@ -310,7 +310,7 @@ class PyBuildExt(build_ext):
|
@@ -347,7 +347,7 @@ class PyBuildExt(build_ext):
|
||||||
|
|
||||||
def detect_modules(self):
|
def detect_modules(self):
|
||||||
# Ensure that /usr/local is always used
|
# Ensure that /usr/local is always used
|
||||||
@ -285,7 +284,7 @@ Index: Python-2.6.2/setup.py
|
|||||||
add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
|
add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
|
||||||
|
|
||||||
# Add paths specified in the environment variables LDFLAGS and
|
# Add paths specified in the environment variables LDFLAGS and
|
||||||
@@ -362,8 +362,7 @@ class PyBuildExt(build_ext):
|
@@ -399,8 +399,7 @@ class PyBuildExt(build_ext):
|
||||||
# if a file is found in one of those directories, it can
|
# if a file is found in one of those directories, it can
|
||||||
# be assumed that no additional -I,-L directives are needed.
|
# be assumed that no additional -I,-L directives are needed.
|
||||||
lib_dirs = self.compiler.library_dirs + [
|
lib_dirs = self.compiler.library_dirs + [
|
||||||
@ -295,13 +294,13 @@ Index: Python-2.6.2/setup.py
|
|||||||
]
|
]
|
||||||
inc_dirs = self.compiler.include_dirs + ['/usr/include']
|
inc_dirs = self.compiler.include_dirs + ['/usr/include']
|
||||||
exts = []
|
exts = []
|
||||||
@@ -585,11 +584,11 @@ class PyBuildExt(build_ext):
|
@@ -643,11 +642,11 @@ class PyBuildExt(build_ext):
|
||||||
elif self.compiler.find_library_file(lib_dirs, 'curses'):
|
elif curses_library:
|
||||||
readline_libs.append('curses')
|
readline_libs.append(curses_library)
|
||||||
elif self.compiler.find_library_file(lib_dirs +
|
elif self.compiler.find_library_file(lib_dirs +
|
||||||
- ['/usr/lib/termcap'],
|
- ['/usr/lib/termcap'],
|
||||||
+ ['/usr/'+sys.lib+'/termcap'],
|
+ ['/usr/'+sys.lib+'/termcap'],
|
||||||
'termcap'):
|
'termcap'):
|
||||||
readline_libs.append('termcap')
|
readline_libs.append('termcap')
|
||||||
exts.append( Extension('readline', ['readline.c'],
|
exts.append( Extension('readline', ['readline.c'],
|
||||||
- library_dirs=['/usr/lib/termcap'],
|
- library_dirs=['/usr/lib/termcap'],
|
||||||
@ -309,7 +308,7 @@ Index: Python-2.6.2/setup.py
|
|||||||
extra_link_args=readline_extra_link_args,
|
extra_link_args=readline_extra_link_args,
|
||||||
libraries=readline_libs) )
|
libraries=readline_libs) )
|
||||||
else:
|
else:
|
||||||
@@ -1582,18 +1581,17 @@ class PyBuildExt(build_ext):
|
@@ -1719,18 +1718,17 @@ class PyBuildExt(build_ext):
|
||||||
# Check for various platform-specific directories
|
# Check for various platform-specific directories
|
||||||
if platform == 'sunos5':
|
if platform == 'sunos5':
|
||||||
include_dirs.append('/usr/openwin/include')
|
include_dirs.append('/usr/openwin/include')
|
||||||
@ -332,3 +331,56 @@ Index: Python-2.6.2/setup.py
|
|||||||
|
|
||||||
# If Cygwin, then verify that X is installed before proceeding
|
# If Cygwin, then verify that X is installed before proceeding
|
||||||
if platform == 'cygwin':
|
if platform == 'cygwin':
|
||||||
|
Index: Python-2.7/Lib/test/test_site.py
|
||||||
|
===================================================================
|
||||||
|
--- Python-2.7.orig/Lib/test/test_site.py
|
||||||
|
+++ Python-2.7/Lib/test/test_site.py
|
||||||
|
@@ -172,9 +172,14 @@ class HelperFunctionsTests(unittest.Test
|
||||||
|
self.assertTrue(len(dirs), 2)
|
||||||
|
wanted = os.path.join('xoxo', 'lib', 'python' + sys.version[:3],
|
||||||
|
'site-packages')
|
||||||
|
- self.assertEquals(dirs[0], wanted)
|
||||||
|
+ self.assertTrue(wanted in dirs)
|
||||||
|
wanted = os.path.join('xoxo', 'lib', 'site-python')
|
||||||
|
- self.assertEquals(dirs[1], wanted)
|
||||||
|
+ self.assertTrue(wanted in dirs)
|
||||||
|
+ wanted = os.path.join('xoxo', sys.lib, 'python' + sys.version[:3],
|
||||||
|
+ 'site-packages')
|
||||||
|
+ self.assertTrue(wanted in dirs)
|
||||||
|
+ wanted = os.path.join('xoxo', sys.lib, 'site-python')
|
||||||
|
+ self.assertTrue(wanted in dirs)
|
||||||
|
else:
|
||||||
|
self.assertTrue(len(dirs), 2)
|
||||||
|
self.assertEquals(dirs[0], 'xoxo')
|
||||||
|
Index: Python-2.7/Lib/sysconfig.py
|
||||||
|
===================================================================
|
||||||
|
--- Python-2.7.orig/Lib/sysconfig.py
|
||||||
|
+++ Python-2.7/Lib/sysconfig.py
|
||||||
|
@@ -7,10 +7,10 @@ from os.path import pardir, realpath
|
||||||
|
|
||||||
|
_INSTALL_SCHEMES = {
|
||||||
|
'posix_prefix': {
|
||||||
|
- 'stdlib': '{base}/lib/python{py_version_short}',
|
||||||
|
- 'platstdlib': '{platbase}/lib/python{py_version_short}',
|
||||||
|
+ 'stdlib': '{base}/'+sys.lib+'/python{py_version_short}',
|
||||||
|
+ 'platstdlib': '{platbase}/'+sys.lib+'/python{py_version_short}',
|
||||||
|
'purelib': '{base}/lib/python{py_version_short}/site-packages',
|
||||||
|
- 'platlib': '{platbase}/lib/python{py_version_short}/site-packages',
|
||||||
|
+ 'platlib': '{platbase}/'+sys.lib+'/python{py_version_short}/site-packages',
|
||||||
|
'include': '{base}/include/python{py_version_short}',
|
||||||
|
'platinclude': '{platbase}/include/python{py_version_short}',
|
||||||
|
'scripts': '{base}/bin',
|
||||||
|
@@ -65,10 +65,10 @@ _INSTALL_SCHEMES = {
|
||||||
|
'data' : '{userbase}',
|
||||||
|
},
|
||||||
|
'posix_user': {
|
||||||
|
- 'stdlib': '{userbase}/lib/python{py_version_short}',
|
||||||
|
- 'platstdlib': '{userbase}/lib/python{py_version_short}',
|
||||||
|
+ 'stdlib': '{userbase}/'+sys.lib+'/python{py_version_short}',
|
||||||
|
+ 'platstdlib': '{userbase}/'+sys.lib+'/python{py_version_short}',
|
||||||
|
'purelib': '{userbase}/lib/python{py_version_short}/site-packages',
|
||||||
|
- 'platlib': '{userbase}/lib/python{py_version_short}/site-packages',
|
||||||
|
+ 'platlib': '{userbase}/'+sys.lib+'/python{py_version_short}/site-packages',
|
||||||
|
'include': '{userbase}/include/python{py_version_short}',
|
||||||
|
'scripts': '{userbase}/bin',
|
||||||
|
'data' : '{userbase}',
|
@ -1,16 +0,0 @@
|
|||||||
--- Lib/ssl.py
|
|
||||||
+++ Lib/ssl.py
|
|
||||||
@@ -112,12 +112,7 @@
|
|
||||||
keyfile, certfile,
|
|
||||||
cert_reqs, ssl_version, ca_certs)
|
|
||||||
if do_handshake_on_connect:
|
|
||||||
- timeout = self.gettimeout()
|
|
||||||
- try:
|
|
||||||
- self.settimeout(None)
|
|
||||||
- self.do_handshake()
|
|
||||||
- finally:
|
|
||||||
- self.settimeout(timeout)
|
|
||||||
+ self.do_handshake()
|
|
||||||
self.keyfile = keyfile
|
|
||||||
self.certfile = certfile
|
|
||||||
self.cert_reqs = cert_reqs
|
|
@ -1,8 +1,8 @@
|
|||||||
Index: Python-2.6.5/Lib/distutils/tests/test_build_ext.py
|
Index: Python-2.7/Lib/distutils/tests/test_build_ext.py
|
||||||
===================================================================
|
===================================================================
|
||||||
--- Python-2.6.5.orig/Lib/distutils/tests/test_build_ext.py
|
--- Python-2.7.orig/Lib/distutils/tests/test_build_ext.py
|
||||||
+++ Python-2.6.5/Lib/distutils/tests/test_build_ext.py
|
+++ Python-2.7/Lib/distutils/tests/test_build_ext.py
|
||||||
@@ -253,20 +253,14 @@ class BuildExtTestCase(support.TempdirMa
|
@@ -261,20 +261,14 @@ class BuildExtTestCase(support.TempdirMa
|
||||||
|
|
||||||
# issue #5977 : distutils build_ext.get_outputs
|
# issue #5977 : distutils build_ext.get_outputs
|
||||||
# returns wrong result with --inplace
|
# returns wrong result with --inplace
|
||||||
@ -27,3 +27,26 @@ Index: Python-2.6.5/Lib/distutils/tests/test_build_ext.py
|
|||||||
cmd.compiler = None
|
cmd.compiler = None
|
||||||
cmd.inplace = 0
|
cmd.inplace = 0
|
||||||
cmd.run()
|
cmd.run()
|
||||||
|
Index: Python-2.7/Lib/test/regrtest.py
|
||||||
|
===================================================================
|
||||||
|
--- Python-2.7.orig/Lib/test/regrtest.py
|
||||||
|
+++ Python-2.7/Lib/test/regrtest.py
|
||||||
|
@@ -1503,16 +1503,5 @@ if __name__ == '__main__':
|
||||||
|
if not os.path.exists(TEMPDIR):
|
||||||
|
os.mkdir(TEMPDIR)
|
||||||
|
|
||||||
|
- # Define a writable temp dir that will be used as cwd while running
|
||||||
|
- # the tests. The name of the dir includes the pid to allow parallel
|
||||||
|
- # testing (see the -j option).
|
||||||
|
- TESTCWD = 'test_python_{}'.format(os.getpid())
|
||||||
|
-
|
||||||
|
- TESTCWD = os.path.join(TEMPDIR, TESTCWD)
|
||||||
|
-
|
||||||
|
- # Run the tests in a context manager that temporary changes the CWD to a
|
||||||
|
- # temporary and writable directory. If it's not possible to create or
|
||||||
|
- # change the CWD, the original CWD will be used. The original CWD is
|
||||||
|
- # available from test_support.SAVEDCWD.
|
||||||
|
- with test_support.temp_cwd(TESTCWD, quiet=True):
|
||||||
|
- main()
|
||||||
|
+ # do not change directory, because it breaks distutils tests
|
||||||
|
+ main()
|
||||||
|
@ -1,85 +0,0 @@
|
|||||||
Index: Python/sysmodule.c
|
|
||||||
===================================================================
|
|
||||||
--- Python/sysmodule.c.orig
|
|
||||||
+++ Python/sysmodule.c
|
|
||||||
@@ -1550,7 +1550,20 @@ PySys_SetArgv(int argc, char **argv)
|
|
||||||
char *p = NULL;
|
|
||||||
Py_ssize_t n = 0;
|
|
||||||
PyObject *a;
|
|
||||||
-#ifdef HAVE_READLINK
|
|
||||||
+#ifdef HAVE_CANONICALIZE_FILE_NAME
|
|
||||||
+ int errnum;
|
|
||||||
+
|
|
||||||
+ if (argc > 0 && argv0 != NULL && strcmp(argv0, "-c") != 0) {
|
|
||||||
+ argv0 = canonicalize_file_name(argv0);
|
|
||||||
+ if (argv0 == NULL) argv0 = strdup(argv[0]);
|
|
||||||
+ }
|
|
||||||
+#elif defined(HAVE_REALPATH)
|
|
||||||
+ if (argc > 0 && argv0 != NULL && strcmp(argv0, "-c") != 0) {
|
|
||||||
+ if (realpath(argv0, fullpath)) {
|
|
||||||
+ argv0 = fullpath;
|
|
||||||
+ }
|
|
||||||
+ }
|
|
||||||
+#elif defined(HAVE_READLINK)
|
|
||||||
char link[MAXPATHLEN+1];
|
|
||||||
char argv0copy[2*MAXPATHLEN+1];
|
|
||||||
int nr = 0;
|
|
||||||
@@ -1577,7 +1590,8 @@ PySys_SetArgv(int argc, char **argv)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-#endif /* HAVE_READLINK */
|
|
||||||
+#endif /* resolve method selection */
|
|
||||||
+
|
|
||||||
#if SEP == '\\' /* Special case for MS filename syntax */
|
|
||||||
if (argc > 0 && argv0 != NULL && strcmp(argv0, "-c") != 0) {
|
|
||||||
char *q;
|
|
||||||
@@ -1606,11 +1620,6 @@ PySys_SetArgv(int argc, char **argv)
|
|
||||||
}
|
|
||||||
#else /* All other filename syntaxes */
|
|
||||||
if (argc > 0 && argv0 != NULL && strcmp(argv0, "-c") != 0) {
|
|
||||||
-#if defined(HAVE_REALPATH)
|
|
||||||
- if (realpath(argv0, fullpath)) {
|
|
||||||
- argv0 = fullpath;
|
|
||||||
- }
|
|
||||||
-#endif
|
|
||||||
p = strrchr(argv0, SEP);
|
|
||||||
}
|
|
||||||
if (p != NULL) {
|
|
||||||
@@ -1628,6 +1637,9 @@ PySys_SetArgv(int argc, char **argv)
|
|
||||||
a = PyString_FromStringAndSize(argv0, n);
|
|
||||||
if (a == NULL)
|
|
||||||
Py_FatalError("no mem for sys.path insertion");
|
|
||||||
+#ifdef HAVE_CANONICALIZE_FILE_NAME
|
|
||||||
+ if (argc > 0 && argv0 != NULL && strcmp(argv0, "-c") != 0) free(argv0);
|
|
||||||
+#endif /* HAVE_CANONICALIZE_FILE_NAME */
|
|
||||||
if (PyList_Insert(path, 0, a) < 0)
|
|
||||||
Py_FatalError("sys.path.insert(0) failed");
|
|
||||||
Py_DECREF(a);
|
|
||||||
Index: configure.in
|
|
||||||
===================================================================
|
|
||||||
--- configure.in.orig
|
|
||||||
+++ configure.in
|
|
||||||
@@ -2495,7 +2495,7 @@ AC_CHECK_FUNCS(alarm setitimer getitimer
|
|
||||||
getpriority getpwent getspnam getspent getsid getwd \
|
|
||||||
kill killpg lchmod lchown lstat mkfifo mknod mktime \
|
|
||||||
mremap nice pathconf pause plock poll pthread_init \
|
|
||||||
- putenv readlink realpath \
|
|
||||||
+ putenv readlink realpath canonicalize_file_name \
|
|
||||||
select setegid seteuid setgid \
|
|
||||||
setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
|
|
||||||
sigaction siginterrupt sigrelse strftime \
|
|
||||||
Index: pyconfig.h.in
|
|
||||||
===================================================================
|
|
||||||
--- pyconfig.h.in.orig
|
|
||||||
+++ pyconfig.h.in
|
|
||||||
@@ -79,6 +79,9 @@
|
|
||||||
/* Define to 1 if you have the `chflags' function. */
|
|
||||||
#undef HAVE_CHFLAGS
|
|
||||||
|
|
||||||
+/* Define to 1 if you have the `canonicalize_file_name' function. */
|
|
||||||
+#undef HAVE_CANONICALIZE_FILE_NAME
|
|
||||||
+
|
|
||||||
/* Define to 1 if you have the `chown' function. */
|
|
||||||
#undef HAVE_CHOWN
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
|||||||
--- Modules/_ssl.c
|
|
||||||
+++ Modules/_ssl.c
|
|
||||||
@@ -311,6 +311,8 @@
|
|
||||||
goto fail;
|
|
||||||
}
|
|
||||||
|
|
||||||
+ SSL_CTX_set_options(self->ctx, SSL_OP_ALL); /* ssl compatibility */
|
|
||||||
+
|
|
||||||
if (certreq != PY_SSL_CERT_NONE) {
|
|
||||||
if (cacerts_file == NULL) {
|
|
||||||
errstr = ERRSTR("No root certificates specified for "
|
|
13
python-2.7-acrequire.patch
Normal file
13
python-2.7-acrequire.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
Index: Python-2.7/configure.in
|
||||||
|
===================================================================
|
||||||
|
--- Python-2.7.orig/configure.in
|
||||||
|
+++ Python-2.7/configure.in
|
||||||
|
@@ -12,7 +12,7 @@ m4_define([version_required],
|
||||||
|
[],
|
||||||
|
[m4_fatal([Autoconf version $1 is required for Python], 63)])
|
||||||
|
])
|
||||||
|
-version_required(2.65)
|
||||||
|
+dnl version_required(2.65)
|
||||||
|
|
||||||
|
AC_REVISION($Revision: 81582 $)
|
||||||
|
AC_INIT(python, PYTHON_VERSION, http://bugs.python.org/)
|
13
python-2.7-dirs.patch
Normal file
13
python-2.7-dirs.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
Index: Python-2.7/Makefile.pre.in
|
||||||
|
===================================================================
|
||||||
|
--- Python-2.7.orig/Makefile.pre.in
|
||||||
|
+++ Python-2.7/Makefile.pre.in
|
||||||
|
@@ -94,7 +94,7 @@ LIBDIR= @libdir@
|
||||||
|
MANDIR= @mandir@
|
||||||
|
INCLUDEDIR= @includedir@
|
||||||
|
CONFINCLUDEDIR= $(exec_prefix)/include
|
||||||
|
-SCRIPTDIR= $(prefix)/lib
|
||||||
|
+SCRIPTDIR= @libdir@
|
||||||
|
|
||||||
|
# Detailed destination directories
|
||||||
|
BINLIBDEST= $(LIBDIR)/python$(VERSION)
|
3
python-2.7-docs-html.tar.bz2
Normal file
3
python-2.7-docs-html.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:d57e66e853cb67f7a017f1454b890f5019dbb3d550e57d5e5b1b8b91996b8c23
|
||||||
|
size 4183320
|
3
python-2.7-docs-pdf-a4.tar.bz2
Normal file
3
python-2.7-docs-pdf-a4.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:612b18862ab5dcc602b19e03ab4da1360c515729f7969c673ba85cee20630756
|
||||||
|
size 9332572
|
3
python-2.7-docs-pdf-letter.tar.bz2
Normal file
3
python-2.7-docs-pdf-letter.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:c3e797283b7af7628161edc64a437b52e252069b43df8a698c89d14159da2d06
|
||||||
|
size 9383244
|
85
python-2.7rc2-canonicalize2.patch
Normal file
85
python-2.7rc2-canonicalize2.patch
Normal file
@ -0,0 +1,85 @@
|
|||||||
|
Index: Python/sysmodule.c
|
||||||
|
===================================================================
|
||||||
|
--- Python/sysmodule.c.orig
|
||||||
|
+++ Python/sysmodule.c
|
||||||
|
@@ -1671,7 +1671,20 @@ PySys_SetArgvEx(int argc, char **argv, i
|
||||||
|
char *p = NULL;
|
||||||
|
Py_ssize_t n = 0;
|
||||||
|
PyObject *a;
|
||||||
|
-#ifdef HAVE_READLINK
|
||||||
|
+#ifdef HAVE_CANONICALIZE_FILE_NAME
|
||||||
|
+ int errnum;
|
||||||
|
+
|
||||||
|
+ if (argc > 0 && argv0 != NULL && strcmp(argv0, "-c") != 0) {
|
||||||
|
+ argv0 = canonicalize_file_name(argv0);
|
||||||
|
+ if (argv0 == NULL) argv0 = strdup(argv[0]);
|
||||||
|
+ }
|
||||||
|
+#elif defined(HAVE_REALPATH)
|
||||||
|
+ if (argc > 0 && argv0 != NULL && strcmp(argv0, "-c") != 0) {
|
||||||
|
+ if (realpath(argv0, fullpath)) {
|
||||||
|
+ argv0 = fullpath;
|
||||||
|
+ }
|
||||||
|
+ }
|
||||||
|
+#elif defined(HAVE_READLINK)
|
||||||
|
char link[MAXPATHLEN+1];
|
||||||
|
char argv0copy[2*MAXPATHLEN+1];
|
||||||
|
int nr = 0;
|
||||||
|
@@ -1698,7 +1711,8 @@ PySys_SetArgvEx(int argc, char **argv, i
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
-#endif /* HAVE_READLINK */
|
||||||
|
+#endif /* resolve method selection */
|
||||||
|
+
|
||||||
|
#if SEP == '\\' /* Special case for MS filename syntax */
|
||||||
|
if (argc > 0 && argv0 != NULL && strcmp(argv0, "-c") != 0) {
|
||||||
|
char *q;
|
||||||
|
@@ -1727,11 +1741,6 @@ PySys_SetArgvEx(int argc, char **argv, i
|
||||||
|
}
|
||||||
|
#else /* All other filename syntaxes */
|
||||||
|
if (argc > 0 && argv0 != NULL && strcmp(argv0, "-c") != 0) {
|
||||||
|
-#if defined(HAVE_REALPATH)
|
||||||
|
- if (realpath(argv0, fullpath)) {
|
||||||
|
- argv0 = fullpath;
|
||||||
|
- }
|
||||||
|
-#endif
|
||||||
|
p = strrchr(argv0, SEP);
|
||||||
|
}
|
||||||
|
if (p != NULL) {
|
||||||
|
@@ -1749,6 +1758,9 @@ PySys_SetArgvEx(int argc, char **argv, i
|
||||||
|
a = PyString_FromStringAndSize(argv0, n);
|
||||||
|
if (a == NULL)
|
||||||
|
Py_FatalError("no mem for sys.path insertion");
|
||||||
|
+#ifdef HAVE_CANONICALIZE_FILE_NAME
|
||||||
|
+ if (argc > 0 && argv0 != NULL && strcmp(argv0, "-c") != 0) free(argv0);
|
||||||
|
+#endif /* HAVE_CANONICALIZE_FILE_NAME */
|
||||||
|
if (PyList_Insert(path, 0, a) < 0)
|
||||||
|
Py_FatalError("sys.path.insert(0) failed");
|
||||||
|
Py_DECREF(a);
|
||||||
|
Index: configure.in
|
||||||
|
===================================================================
|
||||||
|
--- configure.in.orig
|
||||||
|
+++ configure.in
|
||||||
|
@@ -2728,7 +2728,7 @@ AC_CHECK_FUNCS(alarm setitimer getitimer
|
||||||
|
getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \
|
||||||
|
initgroups kill killpg lchmod lchown lstat mkfifo mknod mktime \
|
||||||
|
mremap nice pathconf pause plock poll pthread_init \
|
||||||
|
- putenv readlink realpath \
|
||||||
|
+ putenv readlink realpath canonicalize_file_name \
|
||||||
|
select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \
|
||||||
|
setgid \
|
||||||
|
setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
|
||||||
|
Index: pyconfig.h.in
|
||||||
|
===================================================================
|
||||||
|
--- pyconfig.h.in.orig
|
||||||
|
+++ pyconfig.h.in
|
||||||
|
@@ -97,6 +97,9 @@
|
||||||
|
/* Define to 1 if you have the `chflags' function. */
|
||||||
|
#undef HAVE_CHFLAGS
|
||||||
|
|
||||||
|
+/* Define to 1 if you have the `canonicalize_file_name' function. */
|
||||||
|
+#undef HAVE_CANONICALIZE_FILE_NAME
|
||||||
|
+
|
||||||
|
/* Define to 1 if you have the `chown' function. */
|
||||||
|
#undef HAVE_CHOWN
|
||||||
|
|
@ -2,27 +2,7 @@ Index: configure.in
|
|||||||
===================================================================
|
===================================================================
|
||||||
--- configure.in.orig
|
--- configure.in.orig
|
||||||
+++ configure.in
|
+++ configure.in
|
||||||
@@ -511,9 +511,6 @@ then
|
@@ -3892,9 +3892,18 @@ then
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
-# checks for UNIX variants that set C preprocessor variables
|
|
||||||
-AC_AIX
|
|
||||||
-
|
|
||||||
# Check for unsupported systems
|
|
||||||
case $ac_sys_system/$ac_sys_release in
|
|
||||||
atheos*|Linux*/1*)
|
|
||||||
@@ -574,6 +571,9 @@ SunOS*)
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
+# checks for UNIX variants that set C preprocessor variables
|
|
||||||
+AC_AIX
|
|
||||||
+
|
|
||||||
AC_SUBST(ARCH)
|
|
||||||
AC_MSG_CHECKING(ARCH)
|
|
||||||
ARCH=`uname -m`
|
|
||||||
@@ -3413,9 +3413,18 @@ then
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# check for readline 4.0
|
# check for readline 4.0
|
@ -1,3 +1,29 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Aug 26 15:13:49 UTC 2010 - suse-tux@gmx.de
|
||||||
|
|
||||||
|
- fix for urllib2 (http://bugs.python.org/issue9639)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Aug 26 13:45:19 UTC 2010 - jmatejek@novell.com
|
||||||
|
|
||||||
|
- fixed distutils test
|
||||||
|
- dropped autoconf version requirement (it builds just fine with other versions)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Aug 26 11:37:28 UTC 2010 - jmatejek@novell.com
|
||||||
|
|
||||||
|
- update to version 2.7
|
||||||
|
* improved handling of numeric types
|
||||||
|
* deprecation warnings are now silent by default
|
||||||
|
* new argparse module for command line arguments
|
||||||
|
* many new features, see http://docs.python.org/dev/whatsnew/2.7.html
|
||||||
|
for complete list
|
||||||
|
*** 2.7 is supposed to be the last version from the 2.x series,
|
||||||
|
so its (upstream) maintenance period will probably be longer than usual.
|
||||||
|
However, upstream development now focuses on 3.x series.
|
||||||
|
|
||||||
|
- cleaned up spec and patches
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Jul 2 13:58:38 UTC 2010 - jengelh@medozas.de
|
Fri Jul 2 13:58:38 UTC 2010 - jengelh@medozas.de
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-base (Version 2.6.5)
|
# spec file for package python-base (Version 2.7)
|
||||||
#
|
#
|
||||||
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
@ -18,10 +18,7 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: python-base
|
Name: python-base
|
||||||
BuildRequires: zlib-devel
|
BuildRequires: fdupes pkg-config zlib-devel
|
||||||
%if %suse_version >= 1030
|
|
||||||
BuildRequires: fdupes
|
|
||||||
%endif
|
|
||||||
Url: http://www.python.org/
|
Url: http://www.python.org/
|
||||||
License: MIT License (or similar)
|
License: MIT License (or similar)
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
@ -32,24 +29,28 @@ Obsoletes: python-64bit
|
|||||||
%endif
|
%endif
|
||||||
#
|
#
|
||||||
Summary: Python Interpreter base package
|
Summary: Python Interpreter base package
|
||||||
Version: 2.6.5
|
Version: 2.7
|
||||||
Release: 3
|
Release: 1
|
||||||
%define tarversion %{version}
|
%define tarversion %{version}
|
||||||
%define tarname Python-%{tarversion}
|
%define tarname Python-%{tarversion}
|
||||||
Source0: %{tarname}.tar.bz2
|
Source0: %{tarname}.tar.bz2
|
||||||
Source1: macros.python
|
Source1: macros.python
|
||||||
Source2: baselibs.conf
|
Source2: baselibs.conf
|
||||||
Source6: README.SUSE
|
Source3: README.SUSE
|
||||||
Source13: distutils.cfg
|
Source4: distutils.cfg
|
||||||
Source14: _local.pth
|
Source5: _local.pth
|
||||||
Patch01: Python-2.3.3-dirs.patch
|
|
||||||
Patch10: python-distutils-rpm-8.patch
|
Patch1: python-2.7-dirs.patch
|
||||||
Patch21: Python-2.6.2-multilib.patch
|
Patch2: python-distutils-rpm-8.patch
|
||||||
Patch25: python-2.6b1-canonicalize2.patch
|
Patch3: Python-2.7rc2-multilib.patch
|
||||||
Patch35: python-2.5.2-configure.patch
|
Patch4: python-2.7rc2-canonicalize2.patch
|
||||||
Patch38: python-2.6-gettext-plurals.patch
|
Patch5: python-2.7rc2-configure.patch
|
||||||
Patch39: python-2.6.5-distutils_test_path.patch
|
Patch6: python-2.6-gettext-plurals.patch
|
||||||
Patch40: sparc_longdouble.patch
|
Patch7: python-2.6.5-distutils_test_path.patch
|
||||||
|
Patch8: sparc_longdouble.patch
|
||||||
|
Patch9: python-2.7-acrequire.patch
|
||||||
|
Patch10: urllib2-AbstractBasicAuthHandler_reset_attr.diff
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%define python_version %(echo %{version} | head -c 3)
|
%define python_version %(echo %{version} | head -c 3)
|
||||||
Provides: %{name} = %{python_version}
|
Provides: %{name} = %{python_version}
|
||||||
@ -103,14 +104,14 @@ Python2.x, it is part of the core Python distribution.
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
%package -n libpython2_6-1_0
|
%package -n libpython2_7-1_0
|
||||||
License: MIT License (or similar)
|
License: MIT License (or similar)
|
||||||
Summary: Python Interpreter shared library
|
Summary: Python Interpreter shared library
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
AutoReqProv: on
|
AutoReqProv: on
|
||||||
#%description -n libpython%{lib_version}
|
#%description -n libpython%{lib_version}
|
||||||
|
|
||||||
%description -n libpython2_6-1_0
|
%description -n libpython2_7-1_0
|
||||||
Python is an interpreted, object-oriented programming language, and is
|
Python is an interpreted, object-oriented programming language, and is
|
||||||
often compared to Tcl, Perl, Scheme, or Java. You can find an overview
|
often compared to Tcl, Perl, Scheme, or Java. You can find an overview
|
||||||
of Python in the documentation and tutorials included in the python-doc
|
of Python in the documentation and tutorials included in the python-doc
|
||||||
@ -128,14 +129,16 @@ Authors:
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n %{tarname}
|
%setup -q -n %{tarname}
|
||||||
# patching
|
# patching
|
||||||
%patch01
|
%patch1 -p1
|
||||||
%patch10 -p1
|
%patch2 -p1
|
||||||
%patch21 -p1
|
%patch3 -p1
|
||||||
%patch25
|
%patch4
|
||||||
%patch35
|
%patch5
|
||||||
%patch38
|
%patch6
|
||||||
%patch39 -p1
|
%patch7 -p1
|
||||||
%patch40 -p1
|
%patch8 -p1
|
||||||
|
%patch9 -p1
|
||||||
|
%patch10
|
||||||
|
|
||||||
# some cleanup
|
# some cleanup
|
||||||
find . -name .cvsignore -type f -print0 | xargs -0 rm -f
|
find . -name .cvsignore -type f -print0 | xargs -0 rm -f
|
||||||
@ -182,9 +185,9 @@ LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH \
|
|||||||
# at some point, and the machine does not build anything more until a
|
# at some point, and the machine does not build anything more until a
|
||||||
# timeout several hours later.
|
# timeout several hours later.
|
||||||
%ifnarch hppa %arm
|
%ifnarch hppa %arm
|
||||||
# test_file fails in autobuild env - "stdin.seek(-1)" wrongly succeeds. probably an issue with autobuild's stdin
|
# test_file(2k) fails in autobuild env - "stdin.seek(-1)" wrongly succeeds. probably an issue with autobuild's stdin
|
||||||
# test_urllib2 relies on being able to resolve local address, which is notoriously impossible in autobuild
|
# test_urllib2 relies on being able to resolve local address, which is notoriously impossible in autobuild
|
||||||
EXCLUDE="-x test_urllib2 -x test_file"
|
EXCLUDE="-x test_urllib2 -x test_file -x test_file2k"
|
||||||
# test_nis and test_threading are AWFULLY slow.
|
# test_nis and test_threading are AWFULLY slow.
|
||||||
EXCLUDE="$EXCLUDE -x test_nis -x test_threading"
|
EXCLUDE="$EXCLUDE -x test_nis -x test_threading"
|
||||||
%ifarch ia64
|
%ifarch ia64
|
||||||
@ -213,8 +216,8 @@ make \
|
|||||||
install
|
install
|
||||||
# install site-specific tweaks
|
# install site-specific tweaks
|
||||||
ln -s python%{python_version} ${RPM_BUILD_ROOT}%{_bindir}/python2
|
ln -s python%{python_version} ${RPM_BUILD_ROOT}%{_bindir}/python2
|
||||||
install -m 644 %{S:13} ${RPM_BUILD_ROOT}%{_libdir}/python%{python_version}/distutils
|
install -m 644 %{S:4} ${RPM_BUILD_ROOT}%{_libdir}/python%{python_version}/distutils
|
||||||
install -m 644 %{S:14} ${RPM_BUILD_ROOT}%{_libdir}/python%{python_version}/site-packages
|
install -m 644 %{S:5} ${RPM_BUILD_ROOT}%{_libdir}/python%{python_version}/site-packages
|
||||||
install -d -m 755 ${RPM_BUILD_ROOT}/etc/rpm
|
install -d -m 755 ${RPM_BUILD_ROOT}/etc/rpm
|
||||||
install -m 644 %{S:1} ${RPM_BUILD_ROOT}/etc/rpm
|
install -m 644 %{S:1} ${RPM_BUILD_ROOT}/etc/rpm
|
||||||
# make sure /usr/lib/python/site-packages exists even on lib64 machines
|
# make sure /usr/lib/python/site-packages exists even on lib64 machines
|
||||||
@ -238,18 +241,17 @@ rm $RPM_BUILD_ROOT%{_bindir}/idle
|
|||||||
rm -r $CLEANUP_DIR/{curses,bsddb,idlelib,lib-tk,sqlite3}
|
rm -r $CLEANUP_DIR/{curses,bsddb,idlelib,lib-tk,sqlite3}
|
||||||
rm $CLEANUP_DIR/ssl.py*
|
rm $CLEANUP_DIR/ssl.py*
|
||||||
# does not work without _ssl.so anyway
|
# does not work without _ssl.so anyway
|
||||||
%if %suse_version >= 1030
|
|
||||||
# replace duplicate .pyo/.pyc with hardlinks
|
# replace duplicate .pyo/.pyc with hardlinks
|
||||||
%fdupes $RPM_BUILD_ROOT/%{_libdir}/python%{python_version}
|
%fdupes $RPM_BUILD_ROOT/%{_libdir}/python%{python_version}
|
||||||
%endif
|
|
||||||
########################################
|
########################################
|
||||||
# documentation
|
# documentation
|
||||||
########################################
|
########################################
|
||||||
export PDOCS=${RPM_BUILD_ROOT}%{_docdir}/%{name}
|
export PDOCS=${RPM_BUILD_ROOT}%{_docdir}/%{name}
|
||||||
install -d -m 755 $PDOCS
|
install -d -m 755 $PDOCS
|
||||||
install -c -m 644 %{SOURCE6} $PDOCS/
|
install -c -m 644 %{S:3} $PDOCS/
|
||||||
install -c -m 644 LICENSE $PDOCS/
|
install -c -m 644 LICENSE $PDOCS/
|
||||||
install -c -m 644 README $PDOCS/
|
install -c -m 644 README $PDOCS/
|
||||||
|
ln -s python%{python_version}.1.gz ${RPM_BUILD_ROOT}%{_mandir}/man1/python.1.gz
|
||||||
########################################
|
########################################
|
||||||
# devel
|
# devel
|
||||||
########################################
|
########################################
|
||||||
@ -260,11 +262,11 @@ cp Makefile Makefile.pre.in Makefile.pre $RPM_BUILD_ROOT%{_libdir}/python%{pytho
|
|||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
#%post -n libpython%{lib_version}
|
#%post -n libpython%{lib_version}
|
||||||
|
|
||||||
%post -n libpython2_6-1_0
|
%post -n libpython2_7-1_0
|
||||||
%{run_ldconfig}
|
%{run_ldconfig}
|
||||||
#%postun -n libpython%{lib_version}
|
#%postun -n libpython%{lib_version}
|
||||||
|
|
||||||
%postun -n libpython2_6-1_0
|
%postun -n libpython2_7-1_0
|
||||||
%{run_ldconfig}
|
%{run_ldconfig}
|
||||||
|
|
||||||
%files -n python-devel
|
%files -n python-devel
|
||||||
@ -274,9 +276,12 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%exclude %{_libdir}/python%{python_version}/config/Makefile
|
%exclude %{_libdir}/python%{python_version}/config/Makefile
|
||||||
%defattr(644, root, root, 755)
|
%defattr(644, root, root, 755)
|
||||||
%{_libdir}/libpython*.so
|
%{_libdir}/libpython*.so
|
||||||
|
%{_libdir}/pkgconfig/python-%{python_version}.pc
|
||||||
|
%{_libdir}/pkgconfig/python.pc
|
||||||
%{_includedir}/python*
|
%{_includedir}/python*
|
||||||
%exclude %{_includedir}/python%{python_version}/pyconfig.h
|
%exclude %{_includedir}/python%{python_version}/pyconfig.h
|
||||||
%{_libdir}/python%{python_version}/test
|
%{_libdir}/python%{python_version}/test
|
||||||
|
%{_libdir}/python%{python_version}/unittest
|
||||||
%defattr(755, root, root)
|
%defattr(755, root, root)
|
||||||
%{_bindir}/python-config
|
%{_bindir}/python-config
|
||||||
%{_bindir}/python%{python_version}-config
|
%{_bindir}/python%{python_version}-config
|
||||||
@ -287,7 +292,7 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_libdir}/python%{python_version}/lib-dynload/pyexpat.so
|
%{_libdir}/python%{python_version}/lib-dynload/pyexpat.so
|
||||||
#%files -n libpython%{lib_version}
|
#%files -n libpython%{lib_version}
|
||||||
|
|
||||||
%files -n libpython2_6-1_0
|
%files -n libpython2_7-1_0
|
||||||
%defattr(644, root, root)
|
%defattr(644, root, root)
|
||||||
%{_libdir}/libpython*.so.*
|
%{_libdir}/libpython*.so.*
|
||||||
|
|
||||||
@ -299,6 +304,7 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%doc %{_docdir}/%{name}/LICENSE
|
%doc %{_docdir}/%{name}/LICENSE
|
||||||
%doc %{_docdir}/%{name}/README.SUSE
|
%doc %{_docdir}/%{name}/README.SUSE
|
||||||
%doc %{_mandir}/man1/python.1*
|
%doc %{_mandir}/man1/python.1*
|
||||||
|
%doc %{_mandir}/man1/python%{python_version}.1*
|
||||||
%dir %{_includedir}/python%{python_version}
|
%dir %{_includedir}/python%{python_version}
|
||||||
%{_includedir}/python%{python_version}/pyconfig.h
|
%{_includedir}/python%{python_version}/pyconfig.h
|
||||||
%{_libdir}/python
|
%{_libdir}/python
|
||||||
@ -315,27 +321,30 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_libdir}/python%{python_version}/email
|
%{_libdir}/python%{python_version}/email
|
||||||
%{_libdir}/python%{python_version}/encodings
|
%{_libdir}/python%{python_version}/encodings
|
||||||
%{_libdir}/python%{python_version}/hotshot
|
%{_libdir}/python%{python_version}/hotshot
|
||||||
|
%{_libdir}/python%{python_version}/importlib
|
||||||
%{_libdir}/python%{python_version}/json
|
%{_libdir}/python%{python_version}/json
|
||||||
%{_libdir}/python%{python_version}/lib2to3
|
%{_libdir}/python%{python_version}/lib2to3
|
||||||
%{_libdir}/python%{python_version}/logging
|
%{_libdir}/python%{python_version}/logging
|
||||||
%{_libdir}/python%{python_version}/multiprocessing
|
%{_libdir}/python%{python_version}/multiprocessing
|
||||||
%{_libdir}/python%{python_version}/plat-*
|
%{_libdir}/python%{python_version}/plat-*
|
||||||
|
%{_libdir}/python%{python_version}/pydoc_data
|
||||||
%{_libdir}/python%{python_version}/wsgiref
|
%{_libdir}/python%{python_version}/wsgiref
|
||||||
%dir %{_libdir}/python%{python_version}/site-packages
|
%dir %{_libdir}/python%{python_version}/site-packages
|
||||||
%{_libdir}/python%{python_version}/site-packages/README
|
%{_libdir}/python%{python_version}/site-packages/README
|
||||||
%{_libdir}/python%{python_version}/site-packages/_local.pth
|
%{_libdir}/python%{python_version}/site-packages/_local.pth
|
||||||
%dir %{_libdir}/python%{python_version}/lib-dynload
|
%dir %{_libdir}/python%{python_version}/lib-dynload
|
||||||
%{_libdir}/python%{python_version}/lib-dynload/_bisect.so
|
%{_libdir}/python%{python_version}/lib-dynload/_bisect.so
|
||||||
%{_libdir}/python%{python_version}/lib-dynload/_bytesio.so
|
#%{_libdir}/python%{python_version}/lib-dynload/_bytesio.so
|
||||||
%{_libdir}/python%{python_version}/lib-dynload/_csv.so
|
%{_libdir}/python%{python_version}/lib-dynload/_csv.so
|
||||||
%{_libdir}/python%{python_version}/lib-dynload/_collections.so
|
%{_libdir}/python%{python_version}/lib-dynload/_collections.so
|
||||||
%{_libdir}/python%{python_version}/lib-dynload/_ctypes.so
|
%{_libdir}/python%{python_version}/lib-dynload/_ctypes.so
|
||||||
%{_libdir}/python%{python_version}/lib-dynload/_ctypes_test.so
|
%{_libdir}/python%{python_version}/lib-dynload/_ctypes_test.so
|
||||||
%{_libdir}/python%{python_version}/lib-dynload/_elementtree.so
|
%{_libdir}/python%{python_version}/lib-dynload/_elementtree.so
|
||||||
%{_libdir}/python%{python_version}/lib-dynload/_fileio.so
|
#%{_libdir}/python%{python_version}/lib-dynload/_fileio.so
|
||||||
%{_libdir}/python%{python_version}/lib-dynload/_functools.so
|
%{_libdir}/python%{python_version}/lib-dynload/_functools.so
|
||||||
%{_libdir}/python%{python_version}/lib-dynload/_heapq.so
|
%{_libdir}/python%{python_version}/lib-dynload/_heapq.so
|
||||||
%{_libdir}/python%{python_version}/lib-dynload/_hotshot.so
|
%{_libdir}/python%{python_version}/lib-dynload/_hotshot.so
|
||||||
|
%{_libdir}/python%{python_version}/lib-dynload/_io.so
|
||||||
%{_libdir}/python%{python_version}/lib-dynload/_json.so
|
%{_libdir}/python%{python_version}/lib-dynload/_json.so
|
||||||
%{_libdir}/python%{python_version}/lib-dynload/_locale.so
|
%{_libdir}/python%{python_version}/lib-dynload/_locale.so
|
||||||
%{_libdir}/python%{python_version}/lib-dynload/_lsprof.so
|
%{_libdir}/python%{python_version}/lib-dynload/_lsprof.so
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Aug 26 11:43:28 UTC 2010 - jmatejek@novell.com
|
||||||
|
|
||||||
|
- updated to 2.7
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Mar 11 19:19:07 CET 2010 - matejcik@suse.cz
|
Thu Mar 11 19:19:07 CET 2010 - matejcik@suse.cz
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-doc (Version 2.6)
|
# spec file for package python-doc (Version 2.7)
|
||||||
#
|
#
|
||||||
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
@ -23,17 +23,17 @@ License: Python License ..
|
|||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
Summary: Additional Package Documentation for Python.
|
Summary: Additional Package Documentation for Python.
|
||||||
Version: 2.6
|
Version: 2.7
|
||||||
Release: 24
|
Release: 1
|
||||||
%define pyver 2.6.5
|
%define pyver 2.7
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%define tarname Python-%{pyver}
|
%define tarname Python-%{pyver}
|
||||||
%define pyname python
|
%define pyname python
|
||||||
Enhances: %{pyname}=%{pyver}
|
Enhances: %{pyname}=%{pyver}
|
||||||
Source0: %{tarname}.tar.bz2
|
Source0: %{tarname}.tar.bz2
|
||||||
Source1: python-docs-html-%{version}.tar.bz2
|
Source1: python-%{version}-docs-html.tar.bz2
|
||||||
Source2: python-docs-pdf-a4-%{version}.tar.bz2
|
Source2: python-%{version}-docs-pdf-a4.tar.bz2
|
||||||
Source3: python-docs-pdf-letter-%{version}.tar.bz2
|
Source3: python-%{version}-docs-pdf-letter.tar.bz2
|
||||||
Provides: pyth_doc pyth_ps
|
Provides: pyth_doc pyth_ps
|
||||||
Obsoletes: pyth_doc pyth_ps
|
Obsoletes: pyth_doc pyth_ps
|
||||||
|
|
||||||
@ -74,7 +74,7 @@ export PDOCS=${RPM_BUILD_ROOT}%{_docdir}/%{pyname}
|
|||||||
install -d -m 755 $PDOCS/Misc
|
install -d -m 755 $PDOCS/Misc
|
||||||
install -d -m 755 $PDOCS/paper-a4 $PDOCS/paper-letter $PDOCS/html
|
install -d -m 755 $PDOCS/paper-a4 $PDOCS/paper-letter $PDOCS/html
|
||||||
tar xfj %{S:1} -C $PDOCS/
|
tar xfj %{S:1} -C $PDOCS/
|
||||||
mv $PDOCS/python-docs-html $PDOCS/html
|
mv $PDOCS/python-%{version}-docs-html $PDOCS/html
|
||||||
tar xfj %{S:2} -C $PDOCS
|
tar xfj %{S:2} -C $PDOCS
|
||||||
mv $PDOCS/docs-pdf $PDOCS/paper-a4
|
mv $PDOCS/docs-pdf $PDOCS/paper-a4
|
||||||
tar xfj %{S:3} -C $PDOCS
|
tar xfj %{S:3} -C $PDOCS
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:e9c39e51fc19c6ec367f41cd47c0831bc1e4f4c6d615dccfd37337cd7843ae0a
|
|
||||||
size 3445776
|
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:efddc99e33933c6ca898551db9252592fd0a3f18904f53a5b0c0d41d4de393a4
|
|
||||||
size 8804548
|
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:a3bc9b18b2a77fdd73c2779632324e6c83e5c56472dfd80ba60714073b963887
|
|
||||||
size 8847332
|
|
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Aug 26 11:42:44 UTC 2010 - jmatejek@novell.com
|
||||||
|
|
||||||
|
- update to 2.7
|
||||||
|
* see changes in python-base.changes
|
||||||
|
- cleaned up the spec and patches
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Jul 2 13:57:02 UTC 2010 - jengelh@medozas.de
|
Fri Jul 2 13:57:02 UTC 2010 - jengelh@medozas.de
|
||||||
|
|
||||||
|
77
python.spec
77
python.spec
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python (Version 2.6.5)
|
# spec file for package python (Version 2.7)
|
||||||
#
|
#
|
||||||
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
@ -18,10 +18,7 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: python
|
Name: python
|
||||||
BuildRequires: db-devel gdbm-devel gmp-devel libbz2-devel libopenssl-devel ncurses-devel readline-devel sqlite-devel tk-devel xorg-x11-devel
|
BuildRequires: db-devel fdupes gdbm-devel gmp-devel libbz2-devel libopenssl-devel ncurses-devel readline-devel sqlite-devel tk-devel xorg-x11-devel
|
||||||
%if %suse_version >= 1030
|
|
||||||
BuildRequires: fdupes
|
|
||||||
%endif
|
|
||||||
#Requires: openssl >= 0.9.8e
|
#Requires: openssl >= 0.9.8e
|
||||||
Url: http://www.python.org/
|
Url: http://www.python.org/
|
||||||
License: MIT License (or similar)
|
License: MIT License (or similar)
|
||||||
@ -34,28 +31,28 @@ Obsoletes: python-64bit
|
|||||||
#
|
#
|
||||||
Obsoletes: python-nothreads python21 python-elementtree python-sqlite
|
Obsoletes: python-nothreads python21 python-elementtree python-sqlite
|
||||||
Summary: Python Interpreter
|
Summary: Python Interpreter
|
||||||
Version: 2.6.5
|
Version: 2.7
|
||||||
Release: 3
|
Release: 1
|
||||||
Requires: python-base = %{version}
|
Requires: python-base = %{version}
|
||||||
%define tarversion %{version}
|
%define tarversion %{version}
|
||||||
%define tarname Python-%{tarversion}
|
%define tarname Python-%{tarversion}
|
||||||
Source0: %{tarname}.tar.bz2
|
Source0: %{tarname}.tar.bz2
|
||||||
Source6: README.SUSE
|
Source1: README.SUSE
|
||||||
Source8: pythonstart
|
Source2: pythonstart
|
||||||
Source9: python.sh
|
Source3: python.sh
|
||||||
Source10: python.csh
|
Source4: python.csh
|
||||||
#Source11: testfiles.tar.bz2
|
#Source11: testfiles.tar.bz2
|
||||||
# issues with copyrighted Unicode testing files
|
# issues with copyrighted Unicode testing files
|
||||||
Patch01: Python-2.3.3-dirs.patch
|
Patch1: python-2.7-dirs.patch
|
||||||
Patch21: Python-2.6.2-multilib.patch
|
Patch2: Python-2.7rc2-multilib.patch
|
||||||
Patch23: python-2.6b3-ssl-compat.patch
|
Patch3: python-2.7rc2-canonicalize2.patch
|
||||||
Patch25: python-2.6b1-canonicalize2.patch
|
Patch4: python-2.5.1-sqlite.patch
|
||||||
Patch30: python-2.5.1-sqlite.patch
|
Patch5: python-2.7rc2-configure.patch
|
||||||
Patch35: python-2.5.2-configure.patch
|
Patch6: python-2.6b3-curses-panel.patch
|
||||||
Patch38: python-2.6b3-curses-panel.patch
|
Patch7: sparc_longdouble.patch
|
||||||
Patch39: python-2.6.2-ssl_handshake_timeout.patch
|
Patch8: python-2.7-acrequire.patch
|
||||||
Patch40: sparc_longdouble.patch
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
%define python_version %(echo %{version} | head -c 3)
|
%define python_version %(echo %{version} | head -c 3)
|
||||||
%define idle_name idle
|
%define idle_name idle
|
||||||
Provides: %{name} = %{python_version}
|
Provides: %{name} = %{python_version}
|
||||||
@ -177,19 +174,14 @@ Authors:
|
|||||||
#%%setup -q -n %{tarname} -a11
|
#%%setup -q -n %{tarname} -a11
|
||||||
%setup -q -n %{tarname}
|
%setup -q -n %{tarname}
|
||||||
# patching
|
# patching
|
||||||
%patch01
|
%patch1 -p1
|
||||||
%patch21 -p1
|
%patch2 -p1
|
||||||
%patch23
|
%patch3
|
||||||
%patch25
|
%patch4
|
||||||
%patch30
|
%patch5
|
||||||
#%if 0%{?suse_version}
|
%patch6
|
||||||
#%endif
|
%patch7 -p1
|
||||||
%patch35
|
%patch8 -p1
|
||||||
%if %suse_version > 1100
|
|
||||||
%patch38
|
|
||||||
%endif
|
|
||||||
%patch39
|
|
||||||
%patch40 -p1
|
|
||||||
# some cleanup
|
# some cleanup
|
||||||
find . -name .cvsignore -type f -print0 | xargs -0 rm -f
|
find . -name .cvsignore -type f -print0 | xargs -0 rm -f
|
||||||
find . -name CVS -type d -print0 | xargs -0 rm -rf
|
find . -name CVS -type d -print0 | xargs -0 rm -rf
|
||||||
@ -236,7 +228,7 @@ make %{?_smp_mflags} DESTDIR=$RPM_BUILD_ROOT
|
|||||||
if test $(ulimit -v) = unlimited || test $(ulimit -v) -gt 10000000; then
|
if test $(ulimit -v) = unlimited || test $(ulimit -v) -gt 10000000; then
|
||||||
ulimit -v 10000000 || :
|
ulimit -v 10000000 || :
|
||||||
fi
|
fi
|
||||||
LIST="test_urllib test_ssl test_hashlib test_hmac test_urllib2_localnet test_unicodedata test_tarfile test_sqlite test_tcl test_anydbm test_dumbdbm test_gdbm test_whichdb"
|
LIST="test_urllib test_ssl test_hashlib test_hmac test_urllib2_localnet test_unicodedata test_tarfile test_sqlite test_tcl test_anydbm test_dumbdbm test_gdbm test_whichdb test_tk test_ttk_textonly test_bsddb test_readline "
|
||||||
make test TESTOPTS="$LIST"
|
make test TESTOPTS="$LIST"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -266,12 +258,13 @@ rm $RPM_BUILD_ROOT%{_bindir}/python{,%{python_version}}
|
|||||||
rm $RPM_BUILD_ROOT%{_bindir}/smtpd.py
|
rm $RPM_BUILD_ROOT%{_bindir}/smtpd.py
|
||||||
rm $RPM_BUILD_ROOT%{_bindir}/pydoc
|
rm $RPM_BUILD_ROOT%{_bindir}/pydoc
|
||||||
rm $RPM_BUILD_ROOT%{_bindir}/2to3
|
rm $RPM_BUILD_ROOT%{_bindir}/2to3
|
||||||
rm $RPM_BUILD_ROOT%{_mandir}/man1/python.1*
|
rm $RPM_BUILD_ROOT%{_mandir}/man1/python*
|
||||||
rm $RPM_BUILD_ROOT%{_libdir}/libpython*.so.*
|
rm $RPM_BUILD_ROOT%{_libdir}/libpython*.so.*
|
||||||
rm $RPM_BUILD_ROOT%{_libdir}/python
|
rm $RPM_BUILD_ROOT%{_libdir}/python
|
||||||
find $RPM_BUILD_ROOT%{_libdir}/python%{python_version} -maxdepth 1 ! \( -name "ssl.py" \) -exec rm {} ";"
|
find $RPM_BUILD_ROOT%{_libdir}/python%{python_version} -maxdepth 1 ! \( -name "ssl.py" \) -exec rm {} ";"
|
||||||
rm $RPM_BUILD_ROOT%{_bindir}/python%{python_version}-config
|
rm $RPM_BUILD_ROOT%{_bindir}/python%{python_version}-config
|
||||||
rm $RPM_BUILD_ROOT%{_bindir}/python-config
|
rm $RPM_BUILD_ROOT%{_bindir}/python-config
|
||||||
|
rm $RPM_BUILD_ROOT%{_libdir}/pkgconfig/*
|
||||||
rm -r $RPM_BUILD_ROOT%{_includedir}/python
|
rm -r $RPM_BUILD_ROOT%{_includedir}/python
|
||||||
rm -r $RPM_BUILD_ROOT%{_includedir}/python%{python_version}
|
rm -r $RPM_BUILD_ROOT%{_includedir}/python%{python_version}
|
||||||
rm -r $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/compiler
|
rm -r $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/compiler
|
||||||
@ -281,27 +274,29 @@ rm -r $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/distutils
|
|||||||
rm -r $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/email
|
rm -r $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/email
|
||||||
rm -r $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/encodings
|
rm -r $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/encodings
|
||||||
rm -r $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/hotshot
|
rm -r $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/hotshot
|
||||||
|
rm -r $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/importlib
|
||||||
rm -r $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/json
|
rm -r $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/json
|
||||||
rm -r $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/lib2to3
|
rm -r $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/lib2to3
|
||||||
rm -r $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/logging
|
rm -r $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/logging
|
||||||
rm -r $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/multiprocessing
|
rm -r $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/multiprocessing
|
||||||
rm -r $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/plat-*
|
rm -r $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/plat-*
|
||||||
|
rm -r $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/pydoc_data
|
||||||
rm -r $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/test
|
rm -r $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/test
|
||||||
|
rm -r $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/unittest
|
||||||
rm -r $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/wsgiref
|
rm -r $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/wsgiref
|
||||||
rm -r $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/xml
|
rm -r $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/xml
|
||||||
rm $RPM_BUILD_ROOT%{_libdir}/libpython%{python_version}.so
|
rm $RPM_BUILD_ROOT%{_libdir}/libpython%{python_version}.so
|
||||||
rm $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/site-packages/README
|
rm $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/site-packages/README
|
||||||
rm $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/lib-dynload/_bisect.so
|
rm $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/lib-dynload/_bisect.so
|
||||||
rm $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/lib-dynload/_bytesio.so
|
|
||||||
rm $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/lib-dynload/_csv.so
|
rm $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/lib-dynload/_csv.so
|
||||||
rm $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/lib-dynload/_collections.so
|
rm $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/lib-dynload/_collections.so
|
||||||
rm $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/lib-dynload/_ctypes.so
|
rm $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/lib-dynload/_ctypes.so
|
||||||
rm $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/lib-dynload/_ctypes_test.so
|
rm $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/lib-dynload/_ctypes_test.so
|
||||||
rm $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/lib-dynload/_elementtree.so
|
rm $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/lib-dynload/_elementtree.so
|
||||||
rm $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/lib-dynload/_fileio.so
|
|
||||||
rm $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/lib-dynload/_functools.so
|
rm $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/lib-dynload/_functools.so
|
||||||
rm $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/lib-dynload/_heapq.so
|
rm $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/lib-dynload/_heapq.so
|
||||||
rm $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/lib-dynload/_hotshot.so
|
rm $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/lib-dynload/_hotshot.so
|
||||||
|
rm $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/lib-dynload/_io.so
|
||||||
rm $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/lib-dynload/_json.so
|
rm $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/lib-dynload/_json.so
|
||||||
rm $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/lib-dynload/_locale.so
|
rm $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/lib-dynload/_locale.so
|
||||||
rm $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/lib-dynload/_lsprof.so
|
rm $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/lib-dynload/_lsprof.so
|
||||||
@ -345,16 +340,14 @@ rm $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/lib-dynload/_multibytecodec
|
|||||||
rm $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/lib-dynload/audioop.so
|
rm $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/lib-dynload/audioop.so
|
||||||
rm -f $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/lib-dynload/dl.so
|
rm -f $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/lib-dynload/dl.so
|
||||||
rm $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/lib-dynload/Python-%{tarversion}-py%{python_version}.egg-info
|
rm $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/lib-dynload/Python-%{tarversion}-py%{python_version}.egg-info
|
||||||
%if %suse_version >= 1030
|
|
||||||
# replace duplicate .pyo/.pyc with hardlinks
|
# replace duplicate .pyo/.pyc with hardlinks
|
||||||
%fdupes $RPM_BUILD_ROOT/%{_libdir}/python%{python_version}
|
%fdupes $RPM_BUILD_ROOT/%{_libdir}/python%{python_version}
|
||||||
%endif
|
|
||||||
########################################
|
########################################
|
||||||
# documentation
|
# documentation
|
||||||
########################################
|
########################################
|
||||||
export PDOCS=${RPM_BUILD_ROOT}%{_docdir}/%{name}
|
export PDOCS=${RPM_BUILD_ROOT}%{_docdir}/%{name}
|
||||||
install -d -m 755 $PDOCS
|
install -d -m 755 $PDOCS
|
||||||
install -c -m 644 %{SOURCE6} $PDOCS/
|
install -c -m 644 %{S:1} $PDOCS/
|
||||||
install -c -m 644 LICENSE $PDOCS/
|
install -c -m 644 LICENSE $PDOCS/
|
||||||
install -c -m 644 README $PDOCS/
|
install -c -m 644 README $PDOCS/
|
||||||
########################################
|
########################################
|
||||||
@ -380,9 +373,9 @@ install -d -m755 ${RPM_BUILD_ROOT}/etc/%{idle_name}
|
|||||||
########################################
|
########################################
|
||||||
# startup script
|
# startup script
|
||||||
########################################
|
########################################
|
||||||
install -m 644 %{S:8} $RPM_BUILD_ROOT/etc
|
install -m 644 %{S:2} $RPM_BUILD_ROOT/etc
|
||||||
install -d -m 755 $RPM_BUILD_ROOT/etc/profile.d
|
install -d -m 755 $RPM_BUILD_ROOT/etc/profile.d
|
||||||
install -m 644 %{S:9} %{S:10} $RPM_BUILD_ROOT/etc/profile.d
|
install -m 644 %{S:3} %{S:4} $RPM_BUILD_ROOT/etc/profile.d
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
27
urllib2-AbstractBasicAuthHandler_reset_attr.diff
Normal file
27
urllib2-AbstractBasicAuthHandler_reset_attr.diff
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
Index: Lib/urllib2.py
|
||||||
|
===================================================================
|
||||||
|
--- Lib/urllib2.py (Revision 84196)
|
||||||
|
+++ Lib/urllib2.py (Arbeitskopie)
|
||||||
|
@@ -821,6 +821,9 @@
|
||||||
|
self.add_password = self.passwd.add_password
|
||||||
|
self.retried = 0
|
||||||
|
|
||||||
|
+ def reset_retry_count(self):
|
||||||
|
+ self.retried = 0
|
||||||
|
+
|
||||||
|
def http_error_auth_reqed(self, authreq, host, req, headers):
|
||||||
|
# host may be an authority (without userinfo) or a URL with an
|
||||||
|
# authority
|
||||||
|
@@ -860,8 +863,10 @@
|
||||||
|
|
||||||
|
def http_error_401(self, req, fp, code, msg, headers):
|
||||||
|
url = req.get_full_url()
|
||||||
|
- return self.http_error_auth_reqed('www-authenticate',
|
||||||
|
- url, req, headers)
|
||||||
|
+ response = self.http_error_auth_reqed('www-authenticate',
|
||||||
|
+ url, req, headers)
|
||||||
|
+ self.reset_retry_count()
|
||||||
|
+ return response
|
||||||
|
|
||||||
|
|
||||||
|
class ProxyBasicAuthHandler(AbstractBasicAuthHandler, BaseHandler):
|
Loading…
Reference in New Issue
Block a user