python-virtualenv/python-virtualenv.spec

111 lines
4.2 KiB
RPMSpec
Raw Normal View History

2019-12-14 21:12:55 +08:00
Name: python-virtualenv
2020-06-23 16:22:45 +08:00
Version: 20.0.21
Release: 0
2019-12-14 21:12:55 +08:00
Summary: A tool to create isolated Python environments
License: MIT
URL: http://pypi.python.org/pypi/virtualenv
2020-06-23 16:22:45 +08:00
Source0: https://files.pythonhosted.org/packages/55/67/beb3ecfa973181a52fad76fc959b745631b258c5387348ae1e06c8ca7a81/virtualenv-20.0.21.tar.gz
2019-12-14 21:12:55 +08:00
BuildArch: noarch
BuildRequires: git-core python2-devel python3-devel python3-sphinx
2020-06-23 16:22:45 +08:00
BuildRequires: python-pip-wheel python-wheel-wheel python-setuptools >= 41.0.0
BuildRequires: python2-setuptools_scm python3-setuptools_scm
2019-12-14 21:12:55 +08:00
%description
Virtualenv is a tool to create isolated Python environments. Since Python
3.3, a subset of it has been integrated into the standard library under
the venv module. Note though, that the venv module does not offer all
features of this library (e.g. cannot create bootstrap scripts, cannot
create virtual environments for other python versions than the host python,
not relocatable, etc.). Tools in general as such still may prefer using
virtualenv for its ease of upgrading (via pip), unified handling of different
Python versions and some more advanced features.
%package -n python2-virtualenv
Summary: Tool to create isolated Python environments
Requires: python2-setuptools python2-devel python2-virtualenv-python26
%{?python_provide:%python_provide python2-virtualenv}
Requires: python-pip-wheel python-setuptools-wheel python-wheel-wheel
%description -n python2-virtualenv
virtualenv support in python2.
%package -n python2-virtualenv-python26
Summary: Extra bits of virtuelenv only needed with Python 2.6
Requires: python2-virtualenv = %{version}-%{release}
%{?python_provide:%python_provide python2-virtualenv-python26}
Provides: bundled(python2dist(argparse)) = 1.4.0
2020-06-23 16:22:45 +08:00
Provides: bundled(python2dist(pip)) = 19.1.1
Provides: bundled(python2dist(pip)) = 20.1.1
Provides: bundled(python2dist(setuptools)) = 43.0.0
Provides: bundled(python2dist(setuptools)) = 44.1.0
Provides: bundled(python2dist(setuptools)) = 46.4.0
Provides: bundled(python2dist(wheel)) = 0.33.6
Provides: bundled(python2dist(wheel)) = 0.34.2
2019-12-14 21:12:55 +08:00
%description -n python2-virtualenv-python26
Tools that support for python2.6 virtual environments with python2.
%package -n python3-virtualenv
Summary: Tool to create isolated Python environments
Requires: python3-setuptools python3-devel python3-virtualenv-python26
%{?python_provide:%python_provide python3-virtualenv}
Conflicts: python2-virtualenv < 16.0.0-5
Provides: virtualenv = %{version}-%{release}
Requires: python-pip-wheel python-setuptools-wheel python-wheel-wheel
%description -n python3-virtualenv
virtualenv support in python3.
%package -n python3-virtualenv-python26
Summary: Extra bits of virtuelenv only needed with Python 2.6
Requires: python3-virtualenv = %{version}-%{release}
%{?python_provide:%python_provide python3-virtualenv-python26}
Provides: bundled(python2dist(argparse)) = 1.4.0
2020-06-23 16:22:45 +08:00
Provides: bundled(python2dist(pip)) = 19.1.1
Provides: bundled(python2dist(pip)) = 20.1.1
Provides: bundled(python2dist(setuptools)) = 43.0.0
Provides: bundled(python2dist(setuptools)) = 44.1.0
Provides: bundled(python2dist(setuptools)) = 46.4.0
Provides: bundled(python2dist(wheel)) = 0.33.6
Provides: bundled(python2dist(wheel)) = 0.34.2
2019-12-14 21:12:55 +08:00
%description -n python3-virtualenv-python26
Tools that support for python2.6 virtual environments with python3.
%prep
2020-06-23 16:22:45 +08:00
%autosetup -n virtualenv-%{version} -p1
2019-12-14 21:12:55 +08:00
%build
%py2_build
%py3_build
%install
%py2_install
%py3_install
%files -n python2-virtualenv
2020-06-23 16:22:45 +08:00
%license LICENSE
%doc docs/*rst PKG-INFO
%{python2_sitelib}/virtualenv*
%{_bindir}/virtualenv
2019-12-14 21:12:55 +08:00
%files -n python2-virtualenv-python26
2020-06-23 16:22:45 +08:00
%{python2_sitelib}/virtualenv/seed/embed/wheels/*.whl
2019-12-14 21:12:55 +08:00
%files -n python3-virtualenv
2020-06-23 16:22:45 +08:00
%license LICENSE
%doc docs/*rst PKG-INFO
%{python3_sitelib}/virtualenv*
2019-12-14 21:12:55 +08:00
%{_bindir}/virtualenv
%files -n python3-virtualenv-python26
2020-06-23 16:22:45 +08:00
%{python3_sitelib}/virtualenv/seed/embed/wheels/*.whl
2019-12-14 21:12:55 +08:00
%changelog
2020-06-23 16:22:45 +08:00
* Thu Jun 4 2020 chengzihan <chengzihan2@huawei.com> 20.0.21-0
- Upgrade package to version 20.0.21
2019-12-14 21:12:55 +08:00
* Mon Dec 9 2019 openEuler Buildteam <buildteam@openeuler.org> - 16.0.0-6
- Package init