6d09f91
# sitelib for noarch packages
6d09f91
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
6d09f91
6d09f91
Name:           python-virtualenv
6d09f91
Version:        1.2
6d09f91
Release:        1%{?dist}
6d09f91
Summary:        Tool to create isolated Python environments
6d09f91
6d09f91
Group:          Development/Languages
6d09f91
License:        MIT
6d09f91
URL:            http://pypi.python.org/pypi/virtualenv
6d09f91
Source0:        http://pypi.python.org/packages/source/v/virtualenv/virtualenv-%{version}.tar.gz
6d09f91
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
6d09f91
6d09f91
BuildArch:      noarch
6d09f91
BuildRequires:  python-devel, python-setuptools-devel
6d09f91
6d09f91
6d09f91
%description
6d09f91
virtualenv is a tool to create isolated Python environments. virtualenv
6d09f91
is a successor to workingenv, and an extension of virtual-python. It is
6d09f91
written by Ian Bicking, and sponsored by the Open Planning Project. It is
6d09f91
licensed under an MIT-style permissive license.
6d09f91
6d09f91
6d09f91
%prep
6d09f91
%setup -q -n virtualenv-%{version}
6d09f91
%{__sed} -i -e "s|#!/usr/bin/env python||" virtualenv.py 
6d09f91
6d09f91
6d09f91
%build
6d09f91
%{__python} setup.py build
6d09f91
6d09f91
6d09f91
%install
6d09f91
rm -rf $RPM_BUILD_ROOT
6d09f91
%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT
6d09f91
6d09f91
 
6d09f91
%clean
6d09f91
rm -rf $RPM_BUILD_ROOT
6d09f91
6d09f91
6d09f91
%files
6d09f91
%defattr(-,root,root,-)
6d09f91
%doc docs/index.txt docs/license.txt PKG-INFO
6d09f91
# For noarch packages: sitelib
6d09f91
%{python_sitelib}/*
6d09f91
%attr(755,root,root) %{_bindir}/virtualenv
6d09f91
%exclude %{python_sitelib}/support-files
6d09f91
6d09f91
6d09f91
%changelog
6d09f91
* Sat Aug 30 2008 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.2-1
6d09f91
- Updated for upstream release
6d09f91
6d09f91
* Fri Aug 29 2008 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.1-3
6d09f91
- Updated from review notes
6d09f91
6d09f91
* Thu Aug 28 2008 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.1-2
6d09f91
- Updated from review notes
6d09f91
6d09f91
* Tue Aug 26 2008 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.1-1
6d09f91
- Initial Version