%global pyver 26 %global pybasever 2.6 %global __python %{_bindir}/python%{pybasever} %global __os_install_post %{__python26_os_install_post} %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} Name: python%{pyver}-virtualenv Version: 1.5.1 Release: 3%{?dist} Summary: Tool to create isolated Python environments Group: Development/Languages License: MIT URL: http://pypi.python.org/pypi/virtualenv Source0: http://pypi.python.org/packages/source/v/virtualenv/virtualenv-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python%{pyver}-devel Requires: python%{pyver}-distribute, python%{pyver}-devel %description virtualenv is a tool to create isolated Python environments. virtualenv is a successor to workingenv, and an extension of virtual-python. It is written by Ian Bicking, and sponsored by the Open Planning Project. It is licensed under an MIT-style permissive license. %prep %setup -q -n virtualenv-%{version} %{__sed} -i -e "1s|#!/usr/bin/env python||" virtualenv.py %build %{__python} setup.py build %install rm -rf %{buildroot} %{__python} setup.py install --skip-build --root %{buildroot} mv %{buildroot}/%{_bindir}/virtualenv %{buildroot}/%{_bindir}/virtualenv-%{pybasever} %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc docs/index.txt docs/license.txt docs/news.txt PKG-INFO # For noarch packages: sitelib %{python_sitelib}/* %attr(755,root,root) %{_bindir}/virtualenv-%{pybasever} %changelog * Thu Feb 24 2011 Mark McKinstry - 1.5.1-3 - make macros use consistent - use a macro for all the hard coded '2.6' stuff * Fri Jan 28 2011 Mark McKinstry - 1.5.1-2 - repackage for python26 in EPEL 5 * Sat Oct 16 2010 Steve 'Ashcrow' Milner - 1.5.1-1 - Added _weakrefset requirement for Python 2.7.1. - Add support for PyPy. - Uses a proper temporary dir when installing environment requirements. - Add --prompt option to be able to override the default prompt prefix. - Add fish and csh activate scripts. * Thu Jul 22 2010 David Malcolm - 1.4.8-4 - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild * Tue Jul 7 2010 Steve 'Ashcrow' Milner - 1.4.8-3 - Fixed EPEL installation issue from BZ#611536 * Tue Jun 8 2010 Steve 'Ashcrow' Milner - 1.4.8-2 - Only replace the python shebang on the first line (Robert Buchholz) * Fri Apr 28 2010 Steve 'Ashcrow' Milner - 1.4.8-1 - update pip to 0.7 - move regen-docs into bin/ - Fix #31, make activate_this.py work on Windows (use Lib/site-packages) unset PYTHONHOME envioronment variable -- first step towards fixing the PYTHONHOME issue; see e.g. https://bugs.launchpad.net/virtualenv/+bug/290844 - unset PYTHONHOME in the (Unix) activate script (and reset it in deactivate()) - use the activate.sh in virtualenv.py via running bin/rebuild-script.py - add warning message if PYTHONHOME is set * Fri Apr 2 2010 Steve 'Ashcrow' Milner - 1.4.6-1 - allow script creation without setuptools - fix problem with --relocate when bin/ has subdirs (fixes #12) - Allow more flexible .pth file fixup - make nt a required module, along with posix. it may not be a builtin module on jython - don't mess with PEP 302-supplied __file__, from CPython, and merge in a small startup optimization for Jython, from Jython * Tue Dec 22 2009 Steve 'Ashcrow' Milner - 1.4.3-1 - Updated for upstream release. * Thu Nov 12 2009 Steve 'Ashcrow' Milner - 1.4.2-1 - Updated for upstream release. * Sun Jul 26 2009 Fedora Release Engineering - 1.3.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Tue Apr 28 2009 Steve 'Ashcrow' Milner - 1.3.3-1 - Updated for upstream release. * Thu Feb 26 2009 Fedora Release Engineering - 1.3.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Thu Dec 25 2008 Steve 'Ashcrow' Milner - 1.3.2-1 - Updated for upstream release. * Thu Dec 04 2008 Ignacio Vazquez-Abrams - 1.3.1-4 - Rebuild for Python 2.6 * Mon Dec 1 2008 Steve 'Ashcrow' Milner - 1.3.1-3 - Added missing dependencies. * Sat Nov 29 2008 Ignacio Vazquez-Abrams - 1.3.1-2 - Rebuild for Python 2.6 * Fri Nov 28 2008 Steve 'Ashcrow' Milner - 1.3.1-1 - Updated for upstream release * Sun Sep 28 2008 Steve 'Ashcrow' Milner - 1.3-1 - Updated for upstream release * Sat Aug 30 2008 Steve 'Ashcrow' Milner - 1.2-1 - Updated for upstream release * Fri Aug 29 2008 Steve 'Ashcrow' Milner - 1.1-3 - Updated from review notes * Thu Aug 28 2008 Steve 'Ashcrow' Milner - 1.1-2 - Updated from review notes * Tue Aug 26 2008 Steve 'Ashcrow' Milner - 1.1-1 - Initial Version