From 73e32db043d1e63b0381631299a133ea1b63b335 Mon Sep 17 00:00:00 2001 From: Jacek Konieczny Date: Fri, 15 Jul 2011 18:20:10 +0000 Subject: [PATCH] - sysconfig.get_path('purelib') fix (it is our %py3_sitescriptdir) - Release: 3 Changed files: python3-noarch_to_datadir.patch -> 1.7 python3.spec -> 1.58 --- python3-noarch_to_datadir.patch | 48 ++++++++++++++++++++------------- python3.spec | 2 +- 2 files changed, 31 insertions(+), 19 deletions(-) diff --git a/python3-noarch_to_datadir.patch b/python3-noarch_to_datadir.patch index 03955b8..8520db6 100644 --- a/python3-noarch_to_datadir.patch +++ b/python3-noarch_to_datadir.patch @@ -1,6 +1,6 @@ -diff -dur -x '*~' -x '*.orig' -x '*.rej' Python-3.2.1.orig/Lib/distutils/command/install.py Python-3.2.1/Lib/distutils/command/install.py ---- Python-3.2.1.orig/Lib/distutils/command/install.py 2011-07-15 13:44:25.000000000 +0200 -+++ Python-3.2.1/Lib/distutils/command/install.py 2011-07-15 13:45:43.000000000 +0200 +diff -dur Python-3.2.1.orig/Lib/distutils/command/install.py Python-3.2.1/Lib/distutils/command/install.py +--- Python-3.2.1.orig/Lib/distutils/command/install.py 2011-07-15 20:16:35.526223992 +0200 ++++ Python-3.2.1/Lib/distutils/command/install.py 2011-07-15 20:17:09.131071575 +0200 @@ -48,14 +48,14 @@ INSTALL_SCHEMES = { @@ -18,9 +18,9 @@ diff -dur -x '*~' -x '*.orig' -x '*.rej' Python-3.2.1.orig/Lib/distutils/command 'platlib': '$base/'+libname+'/python', 'headers': '$base/include/python/$dist_name', 'scripts': '$base/bin', -diff -dur -x '*~' -x '*.orig' -x '*.rej' Python-3.2.1.orig/Lib/distutils/sysconfig.py Python-3.2.1/Lib/distutils/sysconfig.py ---- Python-3.2.1.orig/Lib/distutils/sysconfig.py 2011-07-15 13:44:25.000000000 +0200 -+++ Python-3.2.1/Lib/distutils/sysconfig.py 2011-07-15 13:45:43.000000000 +0200 +diff -dur Python-3.2.1.orig/Lib/distutils/sysconfig.py Python-3.2.1/Lib/distutils/sysconfig.py +--- Python-3.2.1.orig/Lib/distutils/sysconfig.py 2011-07-15 20:16:35.526223992 +0200 ++++ Python-3.2.1/Lib/distutils/sysconfig.py 2011-07-15 20:17:09.131071575 +0200 @@ -124,12 +124,12 @@ prefix = plat_specific and EXEC_PREFIX or PREFIX @@ -39,9 +39,9 @@ diff -dur -x '*~' -x '*.orig' -x '*.rej' Python-3.2.1.orig/Lib/distutils/sysconf if standard_lib: return libpython else: -diff -dur -x '*~' -x '*.orig' -x '*.rej' Python-3.2.1.orig/Lib/distutils/tests/test_install.py Python-3.2.1/Lib/distutils/tests/test_install.py ---- Python-3.2.1.orig/Lib/distutils/tests/test_install.py 2011-07-15 13:44:25.000000000 +0200 -+++ Python-3.2.1/Lib/distutils/tests/test_install.py 2011-07-15 13:45:43.000000000 +0200 +diff -dur Python-3.2.1.orig/Lib/distutils/tests/test_install.py Python-3.2.1/Lib/distutils/tests/test_install.py +--- Python-3.2.1.orig/Lib/distutils/tests/test_install.py 2011-07-15 20:16:35.529557475 +0200 ++++ Python-3.2.1/Lib/distutils/tests/test_install.py 2011-07-15 20:17:09.131071575 +0200 @@ -48,7 +48,7 @@ expected = os.path.normpath(expected) self.assertEqual(got, expected) @@ -51,9 +51,9 @@ diff -dur -x '*~' -x '*.orig' -x '*.rej' Python-3.2.1.orig/Lib/distutils/tests/t platlibdir = os.path.join(destination, sys.lib, "python") check_path(cmd.install_lib, libdir) check_path(cmd.install_platlib, platlibdir) -diff -dur -x '*~' -x '*.orig' -x '*.rej' Python-3.2.1.orig/Lib/site.py Python-3.2.1/Lib/site.py ---- Python-3.2.1.orig/Lib/site.py 2011-07-15 13:44:25.000000000 +0200 -+++ Python-3.2.1/Lib/site.py 2011-07-15 13:45:43.000000000 +0200 +diff -dur Python-3.2.1.orig/Lib/site.py Python-3.2.1/Lib/site.py +--- Python-3.2.1.orig/Lib/site.py 2011-07-15 20:16:35.529557475 +0200 ++++ Python-3.2.1/Lib/site.py 2011-07-15 20:17:09.134405059 +0200 @@ -289,9 +289,8 @@ "python" + sys.version[:3], "site-packages")) @@ -66,9 +66,21 @@ diff -dur -x '*~' -x '*.orig' -x '*.rej' Python-3.2.1.orig/Lib/site.py Python-3. else: sitepackages.append(prefix) sitepackages.append(os.path.join(prefix, sys.lib, "site-packages")) -diff -dur -x '*~' -x '*.orig' -x '*.rej' Python-3.2.1.orig/Makefile.pre.in Python-3.2.1/Makefile.pre.in ---- Python-3.2.1.orig/Makefile.pre.in 2011-07-15 13:44:25.000000000 +0200 -+++ Python-3.2.1/Makefile.pre.in 2011-07-15 13:45:43.000000000 +0200 +diff -dur Python-3.2.1.orig/Lib/sysconfig.py Python-3.2.1/Lib/sysconfig.py +--- Python-3.2.1.orig/Lib/sysconfig.py 2011-07-15 20:16:35.532890958 +0200 ++++ Python-3.2.1/Lib/sysconfig.py 2011-07-15 20:18:27.267925241 +0200 +@@ -23,7 +23,7 @@ + 'posix_prefix': { + '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', ++ 'purelib': '{base}/share/python{py_version_short}/site-packages', + 'platlib': '{platbase}/' + sys.lib + '/python{py_version_short}/site-packages', + 'include': + '{base}/include/python{py_version_short}{abiflags}', +diff -dur Python-3.2.1.orig/Makefile.pre.in Python-3.2.1/Makefile.pre.in +--- Python-3.2.1.orig/Makefile.pre.in 2011-07-15 20:16:35.532890958 +0200 ++++ Python-3.2.1/Makefile.pre.in 2011-07-15 20:17:09.134405059 +0200 @@ -108,7 +108,7 @@ MANDIR= @mandir@ INCLUDEDIR= @includedir@ @@ -98,9 +110,9 @@ diff -dur -x '*~' -x '*.orig' -x '*.rej' Python-3.2.1.orig/Makefile.pre.in Pytho fi; \ else \ echo Skip install of $(LIBRARY) - use make frameworkinstall; \ -diff -dur -x '*~' -x '*.orig' -x '*.rej' Python-3.2.1.orig/Modules/getpath.c Python-3.2.1/Modules/getpath.c ---- Python-3.2.1.orig/Modules/getpath.c 2011-07-15 13:44:25.000000000 +0200 -+++ Python-3.2.1/Modules/getpath.c 2011-07-15 13:47:22.000000000 +0200 +diff -dur Python-3.2.1.orig/Modules/getpath.c Python-3.2.1/Modules/getpath.c +--- Python-3.2.1.orig/Modules/getpath.c 2011-07-15 20:16:35.536224442 +0200 ++++ Python-3.2.1/Modules/getpath.c 2011-07-15 20:17:09.137738543 +0200 @@ -131,7 +131,8 @@ #ifndef PYTHONPATH diff --git a/python3.spec b/python3.spec index a15f670..e4f3c43 100644 --- a/python3.spec +++ b/python3.spec @@ -34,7 +34,7 @@ Summary(tr.UTF-8): X arayüzlü, yüksek düzeyli, kabuk yorumlayıcı dili Summary(uk.UTF-8): Мова програмування дуже високого рівня з X-інтерфейсом Name: python3 Version: %{py_ver}.1 -Release: 2 +Release: 3 Epoch: 1 License: PSF Group: Applications -- 2.44.0