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