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
|
|
|
#
|
2015-04-06 22:11:43 +00:00
|
|
|
# Copyright (c) 2015 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
|
2015-04-06 22:11:43 +00:00
|
|
|
Version: 4.3.2
|
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
|
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
|
|
|
|
|
Requires(postun): 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
|
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
|
|
|
mv %{buildroot}%{_bindir}/virtualenvwrapper_lazy.sh %{buildroot}%{_bindir}/virtualenvwrapper_lazy-%{py_ver}.sh
|
|
|
|
|
mv %{buildroot}%{_bindir}/virtualenvwrapper.sh %{buildroot}%{_bindir}/virtualenvwrapper-%{py_ver}.sh
|
|
|
|
|
ln -s %{_bindir}/virtualenvwrapper-%{py_ver}.sh %{buildroot}%{_bindir}/virtualenvwrapper.sh
|
|
|
|
|
ln -s %{_bindir}/virtualenvwrapper_lazy-%{py_ver}.sh %{buildroot}%{_bindir}/virtualenvwrapper_lazy.sh
|
|
|
|
|
|
|
|
|
|
%pre
|
|
|
|
|
# Since python scripts became ghosted to be used with update-alternatives, we have to get rid
|
|
|
|
|
# of the old binary resulting from the non-update-alternativies-ified package:
|
2014-11-14 15:30:48 +00:00
|
|
|
[ -h %{_bindir}/virtualenvwrapper.sh ] || rm -f %{_bindir}/virtualenvwrapper.sh
|
|
|
|
|
[ -h %{_bindir}/virtualenvwrapper_lazy.sh ] || rm -f %{_bindir}/virtualenvwrapper_lazy.sh
|
2013-10-12 16:43:39 +00:00
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
update-alternatives \
|
|
|
|
|
--install %{_bindir}/virtualenvwrapper.sh virtualenvwrapper.sh %{_bindir}/virtualenvwrapper-%{py_ver}.sh 30 \
|
|
|
|
|
--slave %{_bindir}/virtualenvwrapper_lazy.sh virtualenvwrapper_lazy.sh %{_bindir}/virtualenvwrapper_lazy-%{py_ver}.sh
|
|
|
|
|
|
|
|
|
|
%preun
|
|
|
|
|
if [ $1 -eq 0 ] ; then
|
|
|
|
|
update-alternatives --remove virtualenvwrapper.sh %{_bindir}/virtualenvwrapper.sh-%{py_ver}
|
|
|
|
|
fi
|
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
|
2011-12-29 03:05:54 +00:00
|
|
|
%{python_sitelib}/*
|
2013-10-12 16:43:39 +00:00
|
|
|
%ghost %{_bindir}/virtualenvwrapper.sh
|
|
|
|
|
%{_bindir}/virtualenvwrapper-%{py_ver}.sh
|
|
|
|
|
%ghost %{_bindir}/virtualenvwrapper_lazy.sh
|
|
|
|
|
%{_bindir}/virtualenvwrapper_lazy-%{py_ver}.sh
|
2010-11-09 15:29:34 +00:00
|
|
|
|
2011-04-13 17:54:38 +00:00
|
|
|
%changelog
|