Compare commits

..

No commits in common. "31168474d621edf83c9c5acffbe7c6b01f3f67fe" and "05b51cb486b52522631197140f3414a85f1e101a" have entirely different histories.

2 changed files with 35 additions and 42 deletions

View File

@ -1,20 +1,15 @@
%global pypi_name virtualenv
Name: python-%{pypi_name}
Version: 20.26.6
%global srcname virtualenv
Name: python-%{srcname}
Version: 20.4.2
Release: 1
Summary: A tool to create isolated Python environments
License: MIT
URL: http://pypi.python.org/pypi/virtualenv
Source0: %{pypi_source %{pypi_name}}
Source0: https://files.pythonhosted.org/packages/79/64/203241c2e2b5abfd5edca4e28242c21bf8a9e84490873e4a8a155a9658fc/virtualenv-20.4.2.tar.gz
BuildArch: noarch
BuildRequires: python3-distlib python3-filelock
BuildRequires: python3-devel python3-setuptools
BuildRequires: python3-pip
BuildRequires: python3-wheel
BuildRequires: python3-editables
BuildRequires: python3-hatch-vcs
BuildRequires: python3-hatchling
BuildRequires: python3-appdirs python3-distlib python3-filelock python3-six
BuildRequires: python3-devel python3-setuptools_scm python3-setuptools
%description
Virtualenv is a tool to create isolated Python environments. Since Python
@ -28,53 +23,51 @@ Python versions and some more advanced features.
%package -n python3-virtualenv
Summary: Tool to create isolated Python environments
Requires: python3-setuptools
Requires: python3-distlib python3-filelock
Requires: python3-setuptools python3-appdirs python3-virtualenv-python26
Requires: python3-distlib python3-filelock python3-six
%{?python_provide:%python_provide python3-virtualenv}
Provides: virtualenv = %{version}-%{release}
Requires: python-pip-wheel python-setuptools-wheel python-wheel-wheel
Requires: python3-distlib python3-filelock
Obsoletes: python3-virtualenv-python26 < %{version}-%{release}
Requires: python3-appdirs python3-distlib python3-filelock
%description -n python3-%{pypi_name}
%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
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
%description -n python3-virtualenv-python26
Tools that support for python2.6 virtual environments with python3.
%prep
%autosetup -n %{pypi_name}-%{version} -p1
%autosetup -n virtualenv-%{version} -p1
%build
%pyproject_build
%py3_build
%install
%pyproject_install
# revert the version.py content to origin sources
export ver_pyfile=$(find %{buildroot}%{python3_sitelib}/%{pypi_name} -name version.py)
sed -i "s/^version = /__version__ = version = /g" ${ver_pyfile}
sed -i "s/^version_tuple = /__version_tuple__ = version_tuple = /g" ${ver_pyfile}
%py3_install
%files -n python3-%{pypi_name}
%files -n python3-virtualenv
%license LICENSE
%doc README.md
%doc docs/*rst PKG-INFO
%{python3_sitelib}/virtualenv*
%{_bindir}/virtualenv
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}*.dist-info/
%files -n python3-virtualenv-python26
%{python3_sitelib}/virtualenv/seed/wheels/embed/*.whl
%changelog
* Wed Nov 27 2024 yaoxin <yao_xin001@hoperun.com> - 20.26.6-1
- Update to 20.26.6 for fix CVE-2024-53899
* Mon Jan 15 2024 xu_ping <707078654@qq.com.com> - 20.24.4-1
- update version to 20.24.4
* Sun Jun 4 2023 Dongxing Wang <dxwangk@isoftstone.com> - 20.23.0-1
- update version to 20.23.0
* Tue May 16 2023 shixuantong <shixuantong1@huawei.com> - 20.4.7-2
- remove python3-virtualenv-python26
* Thu Dec 09 2021 shixuantong <shixuantong@huawei.com> - 20.4.7-1
- update version to 20.4.7
* Thu Aug 05 2021 liusheng <liusheng2048@gmail.com> - 20.4.2-1
- Upgrade to version 20.4.2