forked from pool/python-virtualenv-clone
Accepting request 263630 from home:TheBlackCat:branches:devel:languages:python
Update to 2.5 OBS-URL: https://build.opensuse.org/request/show/263630 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-virtualenv-clone?expand=0&rev=5
This commit is contained in:
@@ -1,3 +1,16 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 1 12:34:42 UTC 2014 - toddrme2178@gmail.com
|
||||
|
||||
- Update to 2.5
|
||||
* Speed clone_virtualenv up slightly by removing duplicate calls
|
||||
to spawn process
|
||||
* Improve windows compatibility
|
||||
* Ship LICENSE along with the source distribution to pypi.
|
||||
* Added verbose mode with logging.
|
||||
* Bugfixes
|
||||
- Implement update alternatives to allow co-install with python 3
|
||||
version.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 24 11:16:45 UTC 2013 - speilicke@suse.com
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-virtualenv-clone
|
||||
#
|
||||
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -17,19 +17,21 @@
|
||||
|
||||
|
||||
Name: python-virtualenv-clone
|
||||
Version: 0.2.4
|
||||
Version: 0.2.5
|
||||
Release: 0
|
||||
Summary: Script to clone virtualenvs
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
Url: http://github.com/edwardgeorge/virtualenv-clone
|
||||
Source: virtualenv-clone-%{version}.tar.bz2
|
||||
Source: virtualenv-clone-%{version}.tar.gz
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-setuptools
|
||||
Recommends: python-virtualenv
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%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()")}
|
||||
%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
||||
%else
|
||||
BuildArch: noarch
|
||||
%endif
|
||||
@@ -75,10 +77,28 @@ python setup.py build
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
mv %{buildroot}%{_bindir}/virtualenv-clone %{buildroot}%{_bindir}/virtualenv-clone-%{py_ver}
|
||||
ln -s %{_bindir}/virtualenv-clone-%{py_ver} %{buildroot}%{_bindir}/virtualenv-clone
|
||||
|
||||
%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:
|
||||
[ -h %{_bindir}/virtualenv-clone ] || rm -f %{_bindir}/virtualenv-clone
|
||||
|
||||
%post
|
||||
update-alternatives \
|
||||
--install %{_bindir}/virtualenv-clone virtualenv-clone %{_bindir}/virtualenv-clone-%{py_ver} 30
|
||||
|
||||
%preun
|
||||
if [ $1 -eq 0 ] ; then
|
||||
update-alternatives --remove virtualenv-clone %{_bindir}/virtualenv-clone-%{py_ver}
|
||||
fi
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc LICENSE README
|
||||
%ghost %{_bindir}/virtualenv-clone
|
||||
%{_bindir}/virtualenv-clone-%{py_ver}
|
||||
%{python_sitelib}/*
|
||||
%{_bindir}/virtualenv-clone
|
||||
|
||||
%changelog
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:5af73cfd5a973222f625d4453af567233772094ec6a92deae0998b23c0109dc9
|
||||
size 6085
|
||||
3
virtualenv-clone-0.2.5.tar.gz
Normal file
3
virtualenv-clone-0.2.5.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:7087ba4eb48acfd5209a3fd03e15d072f28742619127c98333057e32748d91c4
|
||||
size 5311
|
||||
Reference in New Issue
Block a user