From a9e7497383e5cb333a0e9acaf2c6029a7faaac49a4e72b8f289103c95fdfd1b8 Mon Sep 17 00:00:00 2001
From: Denisart Benjamin
Date: Mon, 17 Nov 2014 18:59:48 +0000
Subject: [PATCH] Accepting request 261862 from home:Ledest:misc
fix shebang in virtualenvwrapper_lazy.sh script that contains bash-specific constructions
OBS-URL: https://build.opensuse.org/request/show/261862
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-virtualenvwrapper?expand=0&rev=47
---
python-virtualenvwrapper.changes | 8 ++++++++
python-virtualenvwrapper.spec | 2 ++
virtualenvwrapper-4.2-fix-bashisms.patch | 9 +++++++++
3 files changed, 19 insertions(+)
create mode 100644 virtualenvwrapper-4.2-fix-bashisms.patch
diff --git a/python-virtualenvwrapper.changes b/python-virtualenvwrapper.changes
index 15bbe54..7bf02e0 100644
--- a/python-virtualenvwrapper.changes
+++ b/python-virtualenvwrapper.changes
@@ -1,3 +1,11 @@
+-------------------------------------------------------------------
+Sun Nov 16 00:03:00 UTC 2014 - Led
+
+- fix shebang in virtualenvwrapper_lazy.sh script that contains
+ bash-specific constructions
+- add patches:
+ * virtualenvwrapper-4.2-fix-bashisms.patch
+
-------------------------------------------------------------------
Sat Nov 08 20:14:00 UTC 2014 - Led
diff --git a/python-virtualenvwrapper.spec b/python-virtualenvwrapper.spec
index 276ce9e..b82735d 100644
--- a/python-virtualenvwrapper.spec
+++ b/python-virtualenvwrapper.spec
@@ -24,6 +24,7 @@ Summary: Enhancements to virtualenv
License: HPND
Group: Development/Languages/Python
Source: https://pypi.python.org/packages/source/v/virtualenvwrapper/virtualenvwrapper-%{version}.tar.gz
+Patch: virtualenvwrapper-4.2-fix-bashisms.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel
BuildRequires: python-pbr
@@ -57,6 +58,7 @@ conflicts in their dependencies.
%prep
%setup -q -n virtualenvwrapper-%{version}
+%patch -p1
%build
python setup.py build
diff --git a/virtualenvwrapper-4.2-fix-bashisms.patch b/virtualenvwrapper-4.2-fix-bashisms.patch
new file mode 100644
index 0000000..e17afe9
--- /dev/null
+++ b/virtualenvwrapper-4.2-fix-bashisms.patch
@@ -0,0 +1,9 @@
+diff -Ndur virtualenvwrapper-4.2/virtualenvwrapper_lazy.sh virtualenvwrapper-4.2-fix-bashisms/virtualenvwrapper_lazy.sh
+--- virtualenvwrapper-4.2/virtualenvwrapper_lazy.sh 2014-01-12 19:13:28.000000000 +0200
++++ virtualenvwrapper-4.2-fix-bashisms/virtualenvwrapper_lazy.sh 2014-11-16 02:00:13.185110170 +0200
+@@ -1,4 +1,4 @@
+-#!/bin/sh
++#!/bin/bash
+ # Alternative startup script for faster login times.
+
+ export _VIRTUALENVWRAPPER_API="$_VIRTUALENVWRAPPER_API mkvirtualenv rmvirtualenv lsvirtualenv showvirtualenv workon add2virtualenv cdsitepackages cdvirtualenv lssitepackages toggleglobalsitepackages cpvirtualenv setvirtualenvproject mkproject cdproject mktmpenv"