%global oname virtualenv Summary: Tool to create isolated Python environments Summary(ja): 隔離されたPython環境を構築するためのツール Name: python-%{oname} Version: 20.0.31 Release: 1%{?_dist_release} Group: programming Vendor: Project Vine Distribution: Vine Linux Packager: yasumichi License: MIT URL: https://pypi.python.org/pypi/%{oname} Source0: https://pypi.python.org/packages/source/v/%{oname}/%{oname}-%{version}.tar.gz # Add /usr/share/python-wheels to extra_search_dir BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: python-rpm-macros BuildRequires: python2-rpm-macros BuildRequires: python-devel BuildRequires: python-setuptools Requires: python-devel Requires: python-setuptools BuildRequires: python3-rpm-macros BuildRequires: python3-setuptools BuildRequires: python3-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. %package -n python3-virtualenv Summary: Tool to create isolated Python environments Summary(ja): 隔離されたPython環境を構築するためのツール Group: programming Requires: python3-setuptools Requires: python3-devel %description -n python3-virtualenv 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 %{oname}-%{version} %{__sed} -i -e "1s|#!/usr/bin/env python||" tasks/update_embedded.py # Remove the wheels provided by RPM packages rm src/virtualenv/seed/wheels/embed/pip-* rm src/virtualenv/seed/wheels/embed/setuptools-* rm src/virtualenv/seed/wheels/embed/wheel-* test ! -f src/virtualenv/seed/embed/wheels/*.whl %build # Build code %{py2_build} %{py3_build} %install rm -rf %{buildroot} %{py2_install} # The versioned 2.x script was removed from upstream. Add it back. cp %{buildroot}/%{_bindir}/virtualenv %{buildroot}/%{_bindir}/virtualenv-%{python_version} cp %{buildroot}/%{_bindir}/virtualenv %{buildroot}/%{_bindir}/virtualenv-2 rm %{buildroot}/%{_bindir}/virtualenv %{py3_install} # The versioned 3.x script was removed from upstream. Add it back. cp %{buildroot}/%{_bindir}/virtualenv %{buildroot}/%{_bindir}/virtualenv-%{python3_version} cp %{buildroot}/%{_bindir}/virtualenv %{buildroot}/%{_bindir}/virtualenv-3 %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %license LICENSE %doc docs/*rst README* %{_bindir}/virtualenv-2 %{_bindir}/virtualenv-%{python_version} %{python_sitelib}/* %files -n python3-virtualenv %license LICENSE %doc docs/*rst README* %{_bindir}/virtualenv %{_bindir}/virtualenv-3 %{_bindir}/virtualenv-%{python3_version} %{python3_sitelib}/virtualenv %{python3_sitelib}/virtualenv-*.egg-info/ %changelog * Sat Aug 22 2020 Tomohiro "Tomo-p" KATO 20.0.31-1 - new upstream release. - made python3 primary (/usr/bin/virtualenv). - dropped Patch0. * Mon Dec 18 2017 Tomohiro "Tomo-p" KATO 15.1.0-1 - new upstream release. - added Patch0. - made to use python{,3}-rpm-macros. - added a sub-package for python3. * Sat Aug 02 2014 Yasumichi Akahoshi 1.11.6-1 - new upstream release - add Vendor, Distribution and Packager * Sun Feb 19 2012 Yoji TOYODA 1.5.1-2 - rebuild with python-2.7.2 * Mon Nov 22 2010 Shu KONNO 1.5.1-1 - updated virtualenv to 1.5.1 * Sat Sep 04 2010 Daisuke SUZUKI 1.4.8-1 - initial build for Vine Linux * Thu Jul 22 2010 David Malcolm - 1.4.8-4 - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild * Wed 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) * Wed 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