|
|
ac5e79 |
%{?scl:%scl_package python-virtualenv}
|
|
|
ac5e79 |
%{!?scl:%global pkg_name %{name}}
|
|
|
ac5e79 |
|
|
|
ac5e79 |
Name: %{?scl_prefix}python-virtualenv
|
|
|
ac5e79 |
Version: 15.1.0
|
|
|
08c083 |
Release: 3%{?dist}
|
|
|
ac5e79 |
Summary: Tool to create isolated Python environments
|
|
|
ac5e79 |
|
|
|
ac5e79 |
Group: Development/Languages
|
|
|
ac5e79 |
License: MIT
|
|
|
ac5e79 |
URL: https://pypi.python.org/pypi/virtualenv
|
|
|
ac5e79 |
Source0: https://files.pythonhosted.org/packages/source/v/virtualenv/virtualenv-%{version}.tar.gz
|
|
|
ac5e79 |
BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
ac5e79 |
|
|
|
ac5e79 |
# Disable downloading pip, wheel and setuptools from pypi
|
|
|
ac5e79 |
# automatically when creating a new venv.
|
|
|
ac5e79 |
# Upstream commit that was reverted:
|
|
|
ac5e79 |
# https://github.com/pypa/virtualenv/commit/3d7361ff2e31472cb69d00150fbdf5a3c9af2a0d
|
|
|
ac5e79 |
Patch0: disable-pypi-downloads-on-venv-creation.patch
|
|
|
ac5e79 |
|
|
|
08c083 |
# Fix CVE-2019-20916: directory traversal in _download_http_url() function within the bundled pip wheel
|
|
|
08c083 |
# Backported from upstream: https://github.com/pypa/pip/pull/6418
|
|
|
08c083 |
Patch5: CVE-2019-20916.patch
|
|
|
08c083 |
|
|
|
ac5e79 |
BuildArch: noarch
|
|
|
ac5e79 |
BuildRequires: %{?scl_prefix}python-devel
|
|
|
ac5e79 |
BuildRequires: %{?scl_prefix}python-sphinx
|
|
|
08c083 |
BuildRequires: zip
|
|
|
ac5e79 |
Requires: %{?scl_prefix}python-setuptools
|
|
|
ac5e79 |
Requires: %{?scl_prefix}python-devel
|
|
|
ac5e79 |
|
|
|
ac5e79 |
%description
|
|
|
ac5e79 |
virtualenv is a tool to create isolated Python environments. virtualenv
|
|
|
ac5e79 |
is a successor to workingenv, and an extension of virtual-python. It is
|
|
|
ac5e79 |
written by Ian Bicking, and sponsored by the Open Planning Project. It is
|
|
|
ac5e79 |
licensed under an MIT-style permissive license.
|
|
|
ac5e79 |
|
|
|
ac5e79 |
%prep
|
|
|
ac5e79 |
%setup -q -n virtualenv-%{version}
|
|
|
ac5e79 |
%{__sed} -i -e "1s|#!/usr/bin/env python||" virtualenv.py
|
|
|
ac5e79 |
%patch0 -p1
|
|
|
ac5e79 |
|
|
|
08c083 |
# Patching of bundled libraries
|
|
|
08c083 |
pushd virtualenv_support/
|
|
|
08c083 |
# Extract wheel content
|
|
|
08c083 |
unzip pip-9.0.*-any.whl
|
|
|
08c083 |
%patch5 -p1
|
|
|
08c083 |
# Replace the pip folder in the zip archive (.whl)
|
|
|
08c083 |
zip -r pip-9.0.*-any.whl pip
|
|
|
08c083 |
# Remove unzipped folders
|
|
|
08c083 |
rm -rf pip/ pip-9.0.*.dist-info/
|
|
|
08c083 |
popd # out of virtualenv_support
|
|
|
08c083 |
|
|
|
ac5e79 |
%build
|
|
|
ac5e79 |
# Build code
|
|
|
ac5e79 |
%{?scl:scl enable %{scl} "}
|
|
|
ac5e79 |
%{__python3} setup.py build
|
|
|
ac5e79 |
%{?scl:"}
|
|
|
ac5e79 |
|
|
|
ac5e79 |
# Build docs
|
|
|
ac5e79 |
%{?scl:scl enable %{scl} "}
|
|
|
ac5e79 |
%{__python3} setup.py build_sphinx
|
|
|
ac5e79 |
%{?scl:"}
|
|
|
ac5e79 |
|
|
|
ac5e79 |
%install
|
|
|
ac5e79 |
rm -rf $RPM_BUILD_ROOT
|
|
|
ac5e79 |
%{?scl:scl enable %{scl} "}
|
|
|
ac5e79 |
%{__python3} setup.py install --skip-build --root $RPM_BUILD_ROOT
|
|
|
ac5e79 |
%{?scl:"}
|
|
|
ac5e79 |
rm -f build/sphinx/html/.buildinfo
|
|
|
ac5e79 |
|
|
|
ac5e79 |
%clean
|
|
|
ac5e79 |
rm -rf $RPM_BUILD_ROOT
|
|
|
ac5e79 |
|
|
|
ac5e79 |
%files
|
|
|
ac5e79 |
%defattr(-,root,root,-)
|
|
|
ac5e79 |
%doc docs/*rst PKG-INFO AUTHORS.txt LICENSE.txt
|
|
|
ac5e79 |
%doc build/sphinx/*
|
|
|
ac5e79 |
%{python3_sitelib}/*
|
|
|
ac5e79 |
%attr(755,root,root) %{_bindir}/virtualenv*
|
|
|
ac5e79 |
|
|
|
ac5e79 |
%changelog
|
|
|
08c083 |
* Mon Sep 21 2020 Charalampos Stratakis <cstratak@redhat.com> - 15.1.0-3
|
|
|
08c083 |
- Security fix for CVE-2019-20916 for the bundled pip wheel
|
|
|
08c083 |
Resolves: rhbz#1877251
|
|
|
08c083 |
|
|
|
ac5e79 |
* Mon Jun 19 2017 Charalampos Stratakis <cstratak@redhat.com> 15.1.0-2
|
|
|
ac5e79 |
- Disable automatic downloads from pypi on new venv creation
|
|
|
ac5e79 |
Resolves: rhbz#1469594
|
|
|
ac5e79 |
|
|
|
ac5e79 |
* Mon Jun 19 2017 Charalampos Stratakis <cstratak@redhat.com> 15.1.0-1
|
|
|
ac5e79 |
- Update to 15.1.0 for rh-python36
|
|
|
ac5e79 |
|
|
|
ac5e79 |
* Tue Jul 19 2016 Charalampos Stratakis <cstratak@redhat.com> - 13.1.2-2
|
|
|
ac5e79 |
- Added a patch that shows a custom error message when a FILE passed to
|
|
|
ac5e79 |
virtualenv to be used as 'home dir' already exists and is NOT a directory.
|
|
|
ac5e79 |
Resolves: rhbz#1353206
|
|
|
ac5e79 |
|
|
|
ac5e79 |
* Sat Feb 13 2016 Robert Kuska <rkuska@redhat.com> 13.1.2-1
|
|
|
ac5e79 |
- Update to 13.1.2
|
|
|
ac5e79 |
|
|
|
ac5e79 |
* Thu Jan 22 2015 Matej Stuchlik <mstuchli@redhat.com> - 1.11.6-1
|
|
|
ac5e79 |
- Update to 1.11.6
|
|
|
ac5e79 |
|
|
|
ac5e79 |
* Mon Nov 18 2013 Robert Kuska <rkuska@redhat.com> - 1.10.1-2
|
|
|
ac5e79 |
- Bump release number to avoid conflict with rhel-7.0
|
|
|
ac5e79 |
|
|
|
ac5e79 |
* Tue Aug 20 2013 Robert Kuska <rkuska@redhat.com> - 1.10.1-1
|
|
|
ac5e79 |
- Update to v1.10.1
|
|
|
ac5e79 |
Resolves: rhbz#996707
|
|
|
ac5e79 |
|
|
|
ac5e79 |
* Fri May 17 2013 Robert Kuska <rkuska@redhat.com> - 1.7.2-4
|
|
|
ac5e79 |
- Fixed rhbz#963660
|
|
|
ac5e79 |
|
|
|
ac5e79 |
* Thu May 09 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 1.7.2-3
|
|
|
ac5e79 |
- Rebuild to generate bytecode properly after fixing rhbz#956289
|
|
|
ac5e79 |
|
|
|
ac5e79 |
* Wed Sep 19 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1.7.2-2
|
|
|
ac5e79 |
- Rebuilt for SCL.
|
|
|
ac5e79 |
|
|
|
ac5e79 |
* Tue Aug 14 2012 Steve Milner <me@stevemilner.org> - 1.7.2-1
|
|
|
ac5e79 |
- Update for upstream bug fixes.
|
|
|
ac5e79 |
- Added path for versioned binary.
|
|
|
ac5e79 |
- Patch no longer required.
|
|
|
ac5e79 |
|
|
|
ac5e79 |
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.1.2-3
|
|
|
ac5e79 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
ac5e79 |
|
|
|
ac5e79 |
* Wed Mar 14 2012 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.7.1.2-1
|
|
|
ac5e79 |
- Update for upstream bug fixes.
|
|
|
ac5e79 |
- Added patch for sphinx building
|
|
|
ac5e79 |
|
|
|
ac5e79 |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7-2
|
|
|
ac5e79 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
ac5e79 |
|
|
|
ac5e79 |
* Tue Dec 20 2011 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.7-1
|
|
|
ac5e79 |
- Update for https://bugzilla.redhat.com/show_bug.cgi?id=769067
|
|
|
ac5e79 |
|
|
|
ac5e79 |
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.1-2
|
|
|
ac5e79 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
ac5e79 |
|
|
|
ac5e79 |
* Sat Oct 16 2010 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.5.1-1
|
|
|
ac5e79 |
- Added _weakrefset requirement for Python 2.7.1.
|
|
|
ac5e79 |
- Add support for PyPy.
|
|
|
ac5e79 |
- Uses a proper temporary dir when installing environment requirements.
|
|
|
ac5e79 |
- Add --prompt option to be able to override the default prompt prefix.
|
|
|
ac5e79 |
- Add fish and csh activate scripts.
|
|
|
ac5e79 |
|
|
|
ac5e79 |
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 1.4.8-4
|
|
|
ac5e79 |
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
|
|
ac5e79 |
|
|
|
ac5e79 |
* Tue Jul 7 2010 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.4.8-3
|
|
|
ac5e79 |
- Fixed EPEL installation issue from BZ#611536
|
|
|
ac5e79 |
|
|
|
ac5e79 |
* Tue Jun 8 2010 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.4.8-2
|
|
|
ac5e79 |
- Only replace the python shebang on the first line (Robert Buchholz)
|
|
|
ac5e79 |
|
|
|
ac5e79 |
* Fri Apr 28 2010 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.4.8-1
|
|
|
ac5e79 |
- update pip to 0.7
|
|
|
ac5e79 |
- move regen-docs into bin/
|
|
|
ac5e79 |
- Fix #31, make activate_this.py work on Windows (use Lib/site-packages)
|
|
|
ac5e79 |
unset PYTHONHOME envioronment variable -- first step towards fixing the PYTHONHOME issue; see e.g. https://bugs.launchpad.net/virtualenv/+bug/290844
|
|
|
ac5e79 |
- unset PYTHONHOME in the (Unix) activate script (and reset it in deactivate())
|
|
|
ac5e79 |
- use the activate.sh in virtualenv.py via running bin/rebuild-script.py
|
|
|
ac5e79 |
- add warning message if PYTHONHOME is set
|
|
|
ac5e79 |
|
|
|
ac5e79 |
* Fri Apr 2 2010 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.4.6-1
|
|
|
ac5e79 |
- allow script creation without setuptools
|
|
|
ac5e79 |
- fix problem with --relocate when bin/ has subdirs (fixes #12)
|
|
|
ac5e79 |
- Allow more flexible .pth file fixup
|
|
|
ac5e79 |
- make nt a required module, along with posix. it may not be a builtin module on jython
|
|
|
ac5e79 |
- don't mess with PEP 302-supplied __file__, from CPython, and merge in a small startup optimization for Jython, from Jython
|
|
|
ac5e79 |
|
|
|
ac5e79 |
* Tue Dec 22 2009 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.4.3-1
|
|
|
ac5e79 |
- Updated for upstream release.
|
|
|
ac5e79 |
|
|
|
ac5e79 |
* Thu Nov 12 2009 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.4.2-1
|
|
|
ac5e79 |
- Updated for upstream release.
|
|
|
ac5e79 |
|
|
|
ac5e79 |
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.3-2
|
|
|
ac5e79 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
ac5e79 |
|
|
|
ac5e79 |
* Tue Apr 28 2009 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.3.3-1
|
|
|
ac5e79 |
- Updated for upstream release.
|
|
|
ac5e79 |
|
|
|
ac5e79 |
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.2-2
|
|
|
ac5e79 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
ac5e79 |
|
|
|
ac5e79 |
* Thu Dec 25 2008 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.3.2-1
|
|
|
ac5e79 |
- Updated for upstream release.
|
|
|
ac5e79 |
|
|
|
ac5e79 |
* Thu Dec 04 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.3.1-4
|
|
|
ac5e79 |
- Rebuild for Python 2.6
|
|
|
ac5e79 |
|
|
|
ac5e79 |
* Mon Dec 1 2008 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.3.1-3
|
|
|
ac5e79 |
- Added missing dependencies.
|
|
|
ac5e79 |
|
|
|
ac5e79 |
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.3.1-2
|
|
|
ac5e79 |
- Rebuild for Python 2.6
|
|
|
ac5e79 |
|
|
|
ac5e79 |
* Fri Nov 28 2008 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.3.1-1
|
|
|
ac5e79 |
- Updated for upstream release
|
|
|
ac5e79 |
|
|
|
ac5e79 |
* Sun Sep 28 2008 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.3-1
|
|
|
ac5e79 |
- Updated for upstream release
|
|
|
ac5e79 |
|
|
|
ac5e79 |
* Sat Aug 30 2008 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.2-1
|
|
|
ac5e79 |
- Updated for upstream release
|
|
|
ac5e79 |
|
|
|
ac5e79 |
* Fri Aug 29 2008 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.1-3
|
|
|
ac5e79 |
- Updated from review notes
|
|
|
ac5e79 |
|
|
|
ac5e79 |
* Thu Aug 28 2008 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.1-2
|
|
|
ac5e79 |
- Updated from review notes
|
|
|
ac5e79 |
|
|
|
ac5e79 |
* Tue Aug 26 2008 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.1-1
|
|
|
ac5e79 |
- Initial Version
|