2010-11-09 15:29:34 +00:00
|
|
|
#
|
2011-02-27 15:55:13 +00:00
|
|
|
# spec file for package python-virtualenvwrapper
|
2010-11-09 15:29:34 +00:00
|
|
|
#
|
2016-05-09 18:52:59 +00:00
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
2010-11-09 15:29:34 +00:00
|
|
|
#
|
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
2012-04-10 08:56:34 +00:00
|
|
|
|
2010-11-09 15:29:34 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
2012-05-12 23:32:03 +00:00
|
|
|
|
2011-12-29 03:05:54 +00:00
|
|
|
Name: python-virtualenvwrapper
|
2016-05-09 18:52:59 +00:00
|
|
|
Version: 4.7.1
|
2011-04-13 17:54:38 +00:00
|
|
|
Release: 0
|
2010-11-09 15:29:34 +00:00
|
|
|
Url: http://www.doughellmann.com/projects/virtualenvwrapper/
|
2011-04-13 17:54:38 +00:00
|
|
|
Summary: Enhancements to virtualenv
|
2012-04-12 09:13:38 +00:00
|
|
|
License: HPND
|
2011-04-13 17:54:38 +00:00
|
|
|
Group: Development/Languages/Python
|
2013-10-12 15:33:59 +00:00
|
|
|
Source: https://pypi.python.org/packages/source/v/virtualenvwrapper/virtualenvwrapper-%{version}.tar.gz
|
2014-11-17 18:59:48 +00:00
|
|
|
Patch: virtualenvwrapper-4.2-fix-bashisms.patch
|
2011-04-13 17:54:38 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-11-09 15:29:34 +00:00
|
|
|
BuildRequires: python-devel
|
2013-10-12 15:33:59 +00:00
|
|
|
BuildRequires: python-pbr
|
|
|
|
|
BuildRequires: python-setuptools
|
2016-05-09 18:52:59 +00:00
|
|
|
BuildRequires: python-stevedore
|
|
|
|
|
BuildRequires: python-virtualenv
|
|
|
|
|
Requires: python-virtualenv-clone
|
2012-08-19 06:20:18 +00:00
|
|
|
Requires: python-stevedore
|
2010-11-09 15:29:34 +00:00
|
|
|
Requires: python-virtualenv
|
2012-11-03 02:48:53 +00:00
|
|
|
Requires: python-virtualenv-clone
|
2013-10-12 16:43:39 +00:00
|
|
|
Requires(post): update-alternatives
|
2016-08-15 18:07:49 +00:00
|
|
|
Requires(preun): update-alternatives
|
2012-04-10 08:56:34 +00:00
|
|
|
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
|
|
|
|
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
|
|
%else
|
2010-11-09 15:29:34 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%description
|
2011-04-13 17:54:38 +00:00
|
|
|
virtualenvwrapper is a set of extensions to Ian Bicking's virtualenv
|
|
|
|
|
tool. The extensions include wrappers for creating and deleting virtual
|
|
|
|
|
environments and otherwise managing your development workflow, making it
|
|
|
|
|
easier to work on more than one project at a time without introducing
|
|
|
|
|
conflicts in their dependencies.
|
2010-11-09 15:29:34 +00:00
|
|
|
|
2011-04-13 17:54:38 +00:00
|
|
|
1. Organizes all of your virtual environments in one place.
|
|
|
|
|
2. Wrappers for creating, copying and deleting environments, including
|
|
|
|
|
user-configurable hooks.
|
|
|
|
|
3. Use a single command to switch between environments.
|
|
|
|
|
4. Tab completion for commands that take a virtual environment as
|
|
|
|
|
argument.
|
|
|
|
|
5. User-configurable hooks for all operations.
|
|
|
|
|
6. Plugin system for more creating sharable extensions.
|
2010-11-09 15:29:34 +00:00
|
|
|
|
|
|
|
|
%prep
|
2011-12-29 03:05:54 +00:00
|
|
|
%setup -q -n virtualenvwrapper-%{version}
|
2014-11-17 18:59:48 +00:00
|
|
|
%patch -p1
|
2016-08-15 18:07:49 +00:00
|
|
|
sed -i -e '1i#!/bin/sh' virtualenvwrapper.sh
|
2010-11-09 15:29:34 +00:00
|
|
|
|
|
|
|
|
%build
|
2011-04-13 17:54:38 +00:00
|
|
|
python setup.py build
|
2010-11-09 15:29:34 +00:00
|
|
|
|
|
|
|
|
%install
|
2011-04-13 17:54:38 +00:00
|
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
2013-10-12 16:43:39 +00:00
|
|
|
|
2016-05-09 18:52:59 +00:00
|
|
|
mv %{buildroot}%{_bindir}/virtualenvwrapper.sh %{buildroot}%{_bindir}/virtualenvwrapper
|
|
|
|
|
mv %{buildroot}%{_bindir}/virtualenvwrapper_lazy.sh %{buildroot}%{_bindir}/virtualenvwrapper_lazy
|
|
|
|
|
|
|
|
|
|
# Prepare for update-alternatives usage
|
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
|
|
|
|
|
for p in virtualenvwrapper virtualenvwrapper_lazy ; do
|
|
|
|
|
mv %{buildroot}%{_bindir}/$p %{buildroot}%{_bindir}/$p-%{py_ver}
|
|
|
|
|
ln -s -f %{_sysconfdir}/alternatives/$p %{buildroot}%{_bindir}/$p
|
|
|
|
|
done
|
2013-10-12 16:43:39 +00:00
|
|
|
|
|
|
|
|
%post
|
2016-08-15 18:07:49 +00:00
|
|
|
%_sbindir/update-alternatives \
|
2016-05-09 18:52:59 +00:00
|
|
|
--install %{_bindir}/virtualenvwrapper virtualenvwrapper %{_bindir}/virtualenvwrapper-%{py_ver} 30 \
|
|
|
|
|
--slave %{_bindir}/virtualenvwrapper_lazy virtualenvwrapper_lazy %{_bindir}/virtualenvwrapper_lazy-%{py_ver}
|
2013-10-12 16:43:39 +00:00
|
|
|
|
2016-08-15 18:07:49 +00:00
|
|
|
%preun
|
2013-10-12 16:43:39 +00:00
|
|
|
if [ $1 -eq 0 ] ; then
|
2016-08-15 18:07:49 +00:00
|
|
|
%_sbindir/update-alternatives --remove virtualenvwrapper %{_bindir}/virtualenvwrapper-%{py_ver}
|
2013-10-12 16:43:39 +00:00
|
|
|
fi
|
2011-04-13 17:54:38 +00:00
|
|
|
|
2016-05-09 18:52:59 +00:00
|
|
|
# %check
|
|
|
|
|
# sh tests/run_tests
|
|
|
|
|
|
2011-04-13 17:54:38 +00:00
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root,-)
|
2014-12-01 16:17:45 +00:00
|
|
|
%doc AUTHORS ChangeLog LICENSE README.txt README.es.rst README.ja.rst
|
2016-05-09 18:52:59 +00:00
|
|
|
%{_bindir}/virtualenvwrapper
|
|
|
|
|
%{_bindir}/virtualenvwrapper_lazy
|
|
|
|
|
%{_bindir}/virtualenvwrapper-%{py_ver}
|
|
|
|
|
%{_bindir}/virtualenvwrapper_lazy-%{py_ver}
|
|
|
|
|
%ghost %{_sysconfdir}/alternatives/virtualenvwrapper
|
|
|
|
|
%ghost %{_sysconfdir}/alternatives/virtualenvwrapper_lazy
|
2011-12-29 03:05:54 +00:00
|
|
|
%{python_sitelib}/*
|
2010-11-09 15:29:34 +00:00
|
|
|
|
2011-04-13 17:54:38 +00:00
|
|
|
%changelog
|