[packages/python-virtualenv] - fix fuckup in new version of rebuild-script.py - rel 2

baggins baggins at pld-linux.org
Wed Apr 17 21:20:59 CEST 2013


commit b6f6fd16964255a2f42732d8f4e5345145144ffc
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Wed Apr 17 21:20:38 2013 +0200

    - fix fuckup in new version of rebuild-script.py
    - rel 2

 python-virtualenv.spec           |  4 +++-
 virtualenv-rebuild-support.patch | 12 ++++++++++++
 2 files changed, 15 insertions(+), 1 deletion(-)
---
diff --git a/python-virtualenv.spec b/python-virtualenv.spec
index 1e357bb..354dcb0 100644
--- a/python-virtualenv.spec
+++ b/python-virtualenv.spec
@@ -2,7 +2,7 @@ Summary:	Tool to create isolated Python environments
 Summary(pl.UTF-8):	Narzędzie do tworzenia oddzielonych środowisk Pythona
 Name:		python-virtualenv
 Version:	1.9.1
-Release:	1
+Release:	2
 License:	MIT
 Group:		Development/Languages
 Source0:	http://pypi.python.org/packages/source/v/virtualenv/virtualenv-%{version}.tar.gz
@@ -11,6 +11,7 @@ Source1:	https://raw.github.com/pypa/virtualenv/%{version}/bin/rebuild-script.py
 # Source1-md5:	5925c9a7d8e8b101c76b9c6cfa9ff297
 Source2:	unpack-support.py
 Patch0:		virtualenv-pld.patch
+Patch1:		virtualenv-rebuild-support.patch
 URL:		http://pypi.python.org/pypi/virtualenv
 BuildRequires:	python
 BuildRequires:	python-modules
@@ -40,6 +41,7 @@ Project. Zostało wydane na liberalnej licencji w stylu MIT.
 %{__install} -d bin
 %{__install} -m 755 -p %{SOURCE1} bin/
 %{__install} -m 755 -p %{SOURCE2} bin/
+%patch1 -p1
 
 %{__python} ./bin/unpack-support.py
 
diff --git a/virtualenv-rebuild-support.patch b/virtualenv-rebuild-support.patch
new file mode 100644
index 0000000..906c99a
--- /dev/null
+++ b/virtualenv-rebuild-support.patch
@@ -0,0 +1,12 @@
+--- virtualenv-1.8.4/bin/rebuild-script.py	2011-08-31 12:30:48.000000000 +0200
++++ virtualenv-1.9.1/bin/rebuild-script.py	2013-04-05 20:06:30.000000000 +0200
+@@ -29,7 +29,7 @@
+         varname = match.group(2)
+         data = match.group(3)
+         print('Found reference to file %s' % filename)
+-        pathname = os.path.join(here, '..', 'virtualenv_embedded', filename)
++        pathname = os.path.join(here, '..', 'virtualenv_support', filename)
+         f = open(pathname, 'rb')
+         c = f.read()
+         f.close()
+
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-virtualenv.git/commitdiff/b6f6fd16964255a2f42732d8f4e5345145144ffc



More information about the pld-cvs-commit mailing list